mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 06:06:06 +00:00

When emitting bytecode, clients can specify a target dialect version to emit in `BytecodeWriterConfig`. This exposes a target dialect version to the DialectBytecodeWriter, which can be queried by name and used to back-deploy attributes, types, and properties.
15 lines
687 B
MLIR
15 lines
687 B
MLIR
// RUN: mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=3" | FileCheck %s --check-prefix=TEST_3
|
|
// RUN: mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=4" | FileCheck %s --check-prefix=TEST_4
|
|
|
|
"test.versionedC"() <{attribute = #test.attr_params<42, 24>}> : () -> ()
|
|
|
|
// TEST_3: Overriding TestAttrParamsAttr encoding...
|
|
// TEST_3: "test.versionedC"() <{attribute = dense<[42, 24]> : tensor<2xi32>}> : () -> ()
|
|
|
|
// -----
|
|
|
|
"test.versionedC"() <{attribute = dense<[42, 24]> : tensor<2xi32>}> : () -> ()
|
|
|
|
// TEST_4: Overriding parsing of TestAttrParamsAttr encoding...
|
|
// TEST_4: "test.versionedC"() <{attribute = #test.attr_params<42, 24>}> : () -> ()
|