File tree Expand file tree Collapse file tree 4 files changed +4
-33
lines changed Expand file tree Collapse file tree 4 files changed +4
-33
lines changed Original file line number Diff line number Diff line change @@ -639,26 +639,6 @@ func.func @wrong_shape_fail() {
639
639
return
640
640
}
641
641
642
- //===----------------------------------------------------------------------===//
643
- // Test StructAttr
644
- //===----------------------------------------------------------------------===//
645
-
646
- // -----
647
-
648
- func.func @missing_fields () {
649
- // expected-error @+1 {{failed to satisfy constraint: DictionaryAttr with field(s): 'some_field', 'some_other_field' (each field having its own constraints)}}
650
- " test.struct_attr" () {the_struct_attr = {}} : () -> ()
651
- return
652
- }
653
-
654
- // -----
655
-
656
- func.func @erroneous_fields () {
657
- // expected-error @+1 {{failed to satisfy constraint: DictionaryAttr with field(s): 'some_field', 'some_other_field' (each field having its own constraints)}}
658
- " test.struct_attr" () {the_struct_attr = {some_field = 1 : i8 , some_other_field = 1 }} : () -> ()
659
- return
660
- }
661
-
662
642
// -----
663
643
664
644
// expected-error @+1 {{invalid dialect namespace '"string with space"'}}
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ mlir_tablegen(TestTypeDefs.h.inc -gen-typedef-decls -typedefs-dialect=test)
23
23
mlir_tablegen (TestTypeDefs.cpp.inc -gen-typedef-defs -typedefs-dialect=test )
24
24
add_public_tablegen_target (MLIRTestTypeDefIncGen )
25
25
26
-
27
26
set (LLVM_TARGET_DEFINITIONS TestOps.td )
28
27
mlir_tablegen (TestOps.h.inc -gen-op-decls )
29
28
mlir_tablegen (TestOps.cpp.inc -gen-op-defs )
Original file line number Diff line number Diff line change @@ -215,16 +215,6 @@ def I64EnumAttrOp : TEST_Op<"i64_enum_attr"> {
215
215
let results = (outs I32:$val);
216
216
}
217
217
218
- def SomeStructAttr : StructAttr<"SomeStructAttr", Test_Dialect, [
219
- StructFieldAttr<"some_field", I64Attr>,
220
- StructFieldAttr<"some_other_field", I64Attr>
221
- ]> {}
222
-
223
- def StructAttrOp : TEST_Op<"struct_attr"> {
224
- let arguments = (ins SomeStructAttr:$the_struct_attr);
225
- let results = (outs);
226
- }
227
-
228
218
def IntAttrOp : TEST_Op<"int_attrs"> {
229
219
let arguments = (ins
230
220
AnyI32Attr:$any_i32_attr,
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ mlir_tablegen(EnumsGenTest.h.inc -gen-enum-decls)
3
3
mlir_tablegen (EnumsGenTest.cpp.inc -gen-enum-defs )
4
4
add_public_tablegen_target (MLIRTableGenEnumsIncGen )
5
5
6
+ # FIXME: This test is for deprecated feature being remove so warnings are
7
+ # disabled on it.
6
8
set (LLVM_TARGET_DEFINITIONS structs.td )
7
- mlir_tablegen (StructAttrGenTest.h.inc -gen-struct-attr-decls )
8
- mlir_tablegen (StructAttrGenTest.cpp.inc -gen-struct-attr-defs )
9
+ mlir_tablegen (StructAttrGenTest.h.inc -gen-struct-attr-decls --on-deprecated=none )
10
+ mlir_tablegen (StructAttrGenTest.cpp.inc -gen-struct-attr-defs --on-deprecated=none )
9
11
add_public_tablegen_target (MLIRTableGenStructAttrIncGen )
10
12
11
13
set (LLVM_TARGET_DEFINITIONS passes.td )
You can’t perform that action at this time.
0 commit comments