xref: /llvm-project/mlir/test/Bytecode/bytecode_callback_with_custom_attribute.mlir (revision 7ad9e9dcf518431a8ecedcc06b09df6c799658ef)
1// RUN: mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=3" | FileCheck %s --check-prefix=TEST_3
2// RUN: mlir-opt %s -split-input-file --test-bytecode-roundtrip="test-kind=4" | FileCheck %s --check-prefix=TEST_4
3
4"test.versionedC"() <{attribute = #test.attr_params<42, 24>}> : () -> ()
5
6// TEST_3: Overriding TestAttrParamsAttr encoding...
7// TEST_3: "test.versionedC"() <{attribute = dense<[42, 24]> : tensor<2xi32>}> : () -> ()
8
9// -----
10
11"test.versionedC"() <{attribute = dense<[42, 24]> : tensor<2xi32>}> : () -> ()
12
13// TEST_4: Overriding parsing of TestAttrParamsAttr encoding...
14// TEST_4: "test.versionedC"() <{attribute = #test.attr_params<42, 24>}> : () -> ()
15