diff options
| -rw-r--r-- | mlir/test/IR/attribute.mlir | 20 | ||||
| -rw-r--r-- | mlir/test/lib/Dialect/Test/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | mlir/test/lib/Dialect/Test/TestOps.td | 10 | ||||
| -rw-r--r-- | mlir/unittests/TableGen/CMakeLists.txt | 6 |
4 files changed, 4 insertions, 33 deletions
diff --git a/mlir/test/IR/attribute.mlir b/mlir/test/IR/attribute.mlir index feb2a93..1cdf772 100644 --- a/mlir/test/IR/attribute.mlir +++ b/mlir/test/IR/attribute.mlir @@ -639,26 +639,6 @@ func.func @wrong_shape_fail() { return } -//===----------------------------------------------------------------------===// -// Test StructAttr -//===----------------------------------------------------------------------===// - -// ----- - -func.func @missing_fields() { - // expected-error @+1 {{failed to satisfy constraint: DictionaryAttr with field(s): 'some_field', 'some_other_field' (each field having its own constraints)}} - "test.struct_attr"() {the_struct_attr = {}} : () -> () - return -} - -// ----- - -func.func @erroneous_fields() { - // expected-error @+1 {{failed to satisfy constraint: DictionaryAttr with field(s): 'some_field', 'some_other_field' (each field having its own constraints)}} - "test.struct_attr"() {the_struct_attr = {some_field = 1 : i8, some_other_field = 1}} : () -> () - return -} - // ----- // expected-error @+1 {{invalid dialect namespace '"string with space"'}} diff --git a/mlir/test/lib/Dialect/Test/CMakeLists.txt b/mlir/test/lib/Dialect/Test/CMakeLists.txt index 2df8718..22a16e4 100644 --- a/mlir/test/lib/Dialect/Test/CMakeLists.txt +++ b/mlir/test/lib/Dialect/Test/CMakeLists.txt @@ -23,7 +23,6 @@ mlir_tablegen(TestTypeDefs.h.inc -gen-typedef-decls -typedefs-dialect=test) mlir_tablegen(TestTypeDefs.cpp.inc -gen-typedef-defs -typedefs-dialect=test) add_public_tablegen_target(MLIRTestTypeDefIncGen) - set(LLVM_TARGET_DEFINITIONS TestOps.td) mlir_tablegen(TestOps.h.inc -gen-op-decls) mlir_tablegen(TestOps.cpp.inc -gen-op-defs) diff --git a/mlir/test/lib/Dialect/Test/TestOps.td b/mlir/test/lib/Dialect/Test/TestOps.td index 9ce9b21..c100aa2 100644 --- a/mlir/test/lib/Dialect/Test/TestOps.td +++ b/mlir/test/lib/Dialect/Test/TestOps.td @@ -215,16 +215,6 @@ def I64EnumAttrOp : TEST_Op<"i64_enum_attr"> { let results = (outs I32:$val); } -def SomeStructAttr : StructAttr<"SomeStructAttr", Test_Dialect, [ - StructFieldAttr<"some_field", I64Attr>, - StructFieldAttr<"some_other_field", I64Attr> -]> {} - -def StructAttrOp : TEST_Op<"struct_attr"> { - let arguments = (ins SomeStructAttr:$the_struct_attr); - let results = (outs); -} - def IntAttrOp : TEST_Op<"int_attrs"> { let arguments = (ins AnyI32Attr:$any_i32_attr, diff --git a/mlir/unittests/TableGen/CMakeLists.txt b/mlir/unittests/TableGen/CMakeLists.txt index 5e365f7..ebc7688 100644 --- a/mlir/unittests/TableGen/CMakeLists.txt +++ b/mlir/unittests/TableGen/CMakeLists.txt @@ -3,9 +3,11 @@ mlir_tablegen(EnumsGenTest.h.inc -gen-enum-decls) mlir_tablegen(EnumsGenTest.cpp.inc -gen-enum-defs) add_public_tablegen_target(MLIRTableGenEnumsIncGen) +# FIXME: This test is for deprecated feature being remove so warnings are +# disabled on it. set(LLVM_TARGET_DEFINITIONS structs.td) -mlir_tablegen(StructAttrGenTest.h.inc -gen-struct-attr-decls) -mlir_tablegen(StructAttrGenTest.cpp.inc -gen-struct-attr-defs) +mlir_tablegen(StructAttrGenTest.h.inc -gen-struct-attr-decls --on-deprecated=none) +mlir_tablegen(StructAttrGenTest.cpp.inc -gen-struct-attr-defs --on-deprecated=none) add_public_tablegen_target(MLIRTableGenStructAttrIncGen) set(LLVM_TARGET_DEFINITIONS passes.td) |
