66//
77// ===----------------------------------------------------------------------===//
88
9- #ifndef MLIR_CIR_OP_INTERFACES
10- #define MLIR_CIR_OP_INTERFACES
9+ #ifndef CLANG_CIR_INTERFACES_CIROPINTERFACES_TD
10+ #define CLANG_CIR_INTERFACES_CIROPINTERFACES_TD
1111
1212include " mlir/IR/OpBase.td"
1313
1414let cppNamespace = " ::cir" in {
15- def CIRGlobalValueInterface
16- : OpInterface<" CIRGlobalValueInterface" > {
15+ def CIRGlobalValueInterface : OpInterface<" CIRGlobalValueInterface" > {
1716
18- let methods = [
19- InterfaceMethod<" " ,
20- " bool" , " hasAvailableExternallyLinkage" , (ins), [{}],
21- /* defaultImplementation=*/ [{ return false ; }]
22- >,
23- InterfaceMethod<" " ,
24- " bool" , " hasLocalLinkage" , (ins), [{}],
25- /* defaultImplementation=*/ [{
17+ let methods =
18+ [InterfaceMethod<" " , " bool" , " hasAvailableExternallyLinkage" , (ins),
19+ [{}],
20+ /* defaultImplementation=*/ [{ return false ; }]>,
21+ InterfaceMethod<" " , " bool" , " hasLocalLinkage" , (ins), [{}],
22+ /* defaultImplementation=*/ [{
2623 return cir::isLocalLinkage ($_op.getLinkage ());
27- }]
28- >,
29- InterfaceMethod<" " ,
30- " bool" , " hasExternalWeakLinkage" , (ins), [{}],
31- /* defaultImplementation=*/ [{
24+ }]>,
25+ InterfaceMethod<" " , " bool" , " hasExternalWeakLinkage" , (ins), [{}],
26+ /* defaultImplementation=*/ [{
3227 return cir::isExternalWeakLinkage ($_op.getLinkage ());
33- }]
34- >,
35- InterfaceMethod<" " ,
36- " bool" , " isExternalLinkage" , (ins), [{}],
37- /* defaultImplementation=*/ [{
28+ }]>,
29+ InterfaceMethod<" " , " bool" , " isExternalLinkage" , (ins), [{}],
30+ /* defaultImplementation=*/ [{
3831 return cir::isExternalLinkage ($_op.getLinkage ());
39- }]
40- >,
41- InterfaceMethod<" " ,
42- " bool" , " isDeclarationForLinker" , (ins), [{}],
43- /* defaultImplementation=*/ [{
32+ }]>,
33+ InterfaceMethod<" " , " bool" , " isDeclarationForLinker" , (ins), [{}],
34+ /* defaultImplementation=*/ [{
4435 if ($_op.hasAvailableExternallyLinkage ())
4536 return true ;
4637 return $_op.isDeclaration ();
47- }]
48- >,
49- InterfaceMethod<" " ,
50- " void" , " setDSOLocal" , (ins " bool" :$val), [{}],
51- /* defaultImplementation=*/ [{
38+ }]>,
39+ InterfaceMethod<" " , " void" , " setDSOLocal" , (ins " bool" :$val), [{}],
40+ /* defaultImplementation=*/ [{
5241 $_op.setDsolocal (val);
53- }]
54- >,
42+ }]>,
5543 ];
5644 let extraClassDeclaration = [{
5745 bool canBenefitFromLocalAlias ();
@@ -60,4 +48,4 @@ let cppNamespace = "::cir" in {
6048
6149} // namespace cir
6250
63- #endif // MLIR_CIR_OP_INTERFACES
51+ #endif // CLANG_CIR_INTERFACES_CIROPINTERFACES_TD
0 commit comments