@@ -36,10 +36,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
36
36
Returns the default memory space as an attribute.
37
37
}],
38
38
/*returnType=*/ "::mlir::ptr::MemorySpaceAttrInterface",
39
- /*methodName=*/ "getDefaultMemorySpace",
40
- /*args=*/ (ins),
41
- /*methodBody=*/ [{}],
42
- /*defaultImpl=*/ [{}]
39
+ /*methodName=*/ "getDefaultMemorySpace"
43
40
>,
44
41
InterfaceMethod<
45
42
/*desc=*/ [{
@@ -52,9 +49,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
52
49
/*args=*/ (ins "::mlir::Type":$type,
53
50
"::mlir::ptr::AtomicOrdering":$ordering,
54
51
"::mlir::IntegerAttr":$alignment,
55
- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
56
- /*methodBody=*/ [{}],
57
- /*defaultImpl=*/ [{}]
52
+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
58
53
>,
59
54
InterfaceMethod<
60
55
/*desc=*/ [{
@@ -67,9 +62,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
67
62
/*args=*/ (ins "::mlir::Type":$type,
68
63
"::mlir::ptr::AtomicOrdering":$ordering,
69
64
"::mlir::IntegerAttr":$alignment,
70
- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
71
- /*methodBody=*/ [{}],
72
- /*defaultImpl=*/ [{}]
65
+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
73
66
>,
74
67
InterfaceMethod<
75
68
/*desc=*/ [{
@@ -83,9 +76,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
83
76
"::mlir::Type":$type,
84
77
"::mlir::ptr::AtomicOrdering":$ordering,
85
78
"::mlir::IntegerAttr":$alignment,
86
- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
87
- /*methodBody=*/ [{}],
88
- /*defaultImpl=*/ [{}]
79
+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
89
80
>,
90
81
InterfaceMethod<
91
82
/*desc=*/ [{
@@ -100,9 +91,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
100
91
"::mlir::ptr::AtomicOrdering":$successOrdering,
101
92
"::mlir::ptr::AtomicOrdering":$failureOrdering,
102
93
"::mlir::IntegerAttr":$alignment,
103
- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
104
- /*methodBody=*/ [{}],
105
- /*defaultImpl=*/ [{}]
94
+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
106
95
>,
107
96
InterfaceMethod<
108
97
/*desc=*/ [{
@@ -116,16 +105,12 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
116
105
/*methodName=*/ "isValidAddrSpaceCast",
117
106
/*args=*/ (ins "::mlir::Type":$tgt,
118
107
"::mlir::Type":$src,
119
- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
120
- /*methodBody=*/ [{}],
121
- /*defaultImpl=*/ [{}]
108
+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
122
109
>,
123
110
InterfaceMethod<
124
111
/*desc=*/ [{
125
112
This method checks if it's valid to perform a `ptrtoint` or `inttoptr`
126
- op in the memory space. `CastValidity::InvalidSourceType` always refers
127
- to the 'ptr-like' type and `CastValidity::InvalidTargetType` always
128
- refers to the `int-like` type.
113
+ op in the memory space.
129
114
The first type is expected to be integer-like, while the second must be a
130
115
ptr-like type.
131
116
If `emitError` is non-null then the method is allowed to emit errors.
@@ -134,9 +119,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
134
119
/*methodName=*/ "isValidPtrIntCast",
135
120
/*args=*/ (ins "::mlir::Type":$intLikeTy,
136
121
"::mlir::Type":$ptrLikeTy,
137
- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
138
- /*methodBody=*/ [{}],
139
- /*defaultImpl=*/ [{}]
122
+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
140
123
>,
141
124
];
142
125
}
@@ -152,10 +135,7 @@ def MemorySpaceOpInterface : OpInterface<"MemorySpaceOpInterface"> {
152
135
InterfaceMethod<
153
136
/*desc=*/ "Returns the memory space of the op.",
154
137
/*returnType=*/ "::mlir::ptr::MemorySpaceAttrInterface",
155
- /*methodName=*/ "getMemorySpace",
156
- /*args=*/ (ins),
157
- /*methodBody=*/ [{}],
158
- /*defaultImpl=*/ [{}]
138
+ /*methodName=*/ "getMemorySpace"
159
139
>,
160
140
];
161
141
}
0 commit comments