2021-03-04 08:37:32 +08:00
|
|
|
// RUN: mlir-opt %s | mlir-opt -verify-diagnostics | FileCheck %s
|
|
|
|
|
|
|
|
// CHECK-LABEL: func private @compoundA()
|
|
|
|
// CHECK-SAME: #test.cmpnd_a<1, !test.smpla, [5, 6]>
|
2022-04-21 07:21:36 +08:00
|
|
|
func.func private @compoundA() attributes {foo = #test.cmpnd_a<1, !test.smpla, [5, 6]>}
|
2021-03-05 04:37:22 +08:00
|
|
|
|
2022-05-17 04:21:39 +08:00
|
|
|
// CHECK: test.result_has_same_type_as_attr #test.attr_with_self_type_param : i32 -> i32
|
|
|
|
%a = test.result_has_same_type_as_attr #test.attr_with_self_type_param : i32 -> i32
|
2021-03-05 04:37:22 +08:00
|
|
|
|
2022-07-06 07:20:30 +08:00
|
|
|
// CHECK: test.result_has_same_type_as_attr #test<attr_with_type_builder 10 : i16> : i16 -> i16
|
|
|
|
%b = test.result_has_same_type_as_attr #test<attr_with_type_builder 10 : i16> -> i16
|
2022-01-11 09:26:44 +08:00
|
|
|
|
|
|
|
// CHECK-LABEL: @qualifiedAttr()
|
|
|
|
// CHECK-SAME: #test.cmpnd_nested_outer_qual<i #test.cmpnd_nested_inner<42 <1, !test.smpla, [5, 6]>>>
|
2022-04-21 07:21:36 +08:00
|
|
|
func.func private @qualifiedAttr() attributes {foo = #test.cmpnd_nested_outer_qual<i #test.cmpnd_nested_inner<42 <1, !test.smpla, [5, 6]>>>}
|
2022-07-15 01:31:38 +08:00
|
|
|
|
|
|
|
// CHECK-LABEL: @overriddenAttr
|
|
|
|
// CHECK-SAME: foo = 5 : index
|
|
|
|
func.func private @overriddenAttr() attributes {
|
|
|
|
foo = #test.override_builder<5>
|
|
|
|
}
|