@@ -25,7 +25,7 @@ def FastmathFlagsInterface : OpInterface<"FastmathFlagsInterface"> {
25
25
let methods = [
26
26
InterfaceMethod<
27
27
/*desc=*/ "Returns a FastmathFlagsAttr attribute for the operation",
28
- /*returnType=*/ "FastmathFlagsAttr",
28
+ /*returnType=*/ "::mlir::LLVM:: FastmathFlagsAttr",
29
29
/*methodName=*/ "getFastmathAttr",
30
30
/*args=*/ (ins),
31
31
/*methodBody=*/ [{}],
@@ -37,7 +37,7 @@ def FastmathFlagsInterface : OpInterface<"FastmathFlagsInterface"> {
37
37
StaticInterfaceMethod<
38
38
/*desc=*/ [{Returns the name of the FastmathFlagsAttr attribute
39
39
for the operation}],
40
- /*returnType=*/ "StringRef",
40
+ /*returnType=*/ "::llvm:: StringRef",
41
41
/*methodName=*/ "getFastmathAttrName",
42
42
/*args=*/ (ins),
43
43
/*methodBody=*/ [{}],
@@ -100,7 +100,7 @@ def BranchWeightOpInterface : OpInterface<"BranchWeightOpInterface"> {
100
100
let methods = [
101
101
InterfaceMethod<
102
102
/*desc=*/ "Returns the branch weights attribute or nullptr",
103
- /*returnType=*/ "DenseI32ArrayAttr",
103
+ /*returnType=*/ "::mlir:: DenseI32ArrayAttr",
104
104
/*methodName=*/ "getBranchWeightsOrNull",
105
105
/*args=*/ (ins),
106
106
/*methodBody=*/ [{}],
@@ -113,7 +113,7 @@ def BranchWeightOpInterface : OpInterface<"BranchWeightOpInterface"> {
113
113
/*desc=*/ "Sets the branch weights attribute",
114
114
/*returnType=*/ "void",
115
115
/*methodName=*/ "setBranchWeights",
116
- /*args=*/ (ins "DenseI32ArrayAttr":$attr),
116
+ /*args=*/ (ins "::mlir:: DenseI32ArrayAttr":$attr),
117
117
/*methodBody=*/ [{}],
118
118
/*defaultImpl=*/ [{
119
119
auto op = cast<ConcreteOp>(this->getOperation());
@@ -137,7 +137,7 @@ def AccessGroupOpInterface : OpInterface<"AccessGroupOpInterface"> {
137
137
let methods = [
138
138
InterfaceMethod<
139
139
/*desc=*/ "Returns the access groups attribute or nullptr",
140
- /*returnType=*/ "ArrayAttr",
140
+ /*returnType=*/ "::mlir:: ArrayAttr",
141
141
/*methodName=*/ "getAccessGroupsOrNull",
142
142
/*args=*/ (ins),
143
143
/*methodBody=*/ [{}],
@@ -150,7 +150,7 @@ def AccessGroupOpInterface : OpInterface<"AccessGroupOpInterface"> {
150
150
/*desc=*/ "Sets the access groups attribute",
151
151
/*returnType=*/ "void",
152
152
/*methodName=*/ "setAccessGroups",
153
- /*args=*/ (ins "const ArrayAttr":$attr),
153
+ /*args=*/ (ins "const ::mlir:: ArrayAttr":$attr),
154
154
/*methodBody=*/ [{}],
155
155
/*defaultImpl=*/ [{
156
156
auto op = cast<ConcreteOp>(this->getOperation());
@@ -175,7 +175,7 @@ def AliasAnalysisOpInterface : OpInterface<"AliasAnalysisOpInterface"> {
175
175
let methods = [
176
176
InterfaceMethod<
177
177
/*desc=*/ "Returns the alias scopes attribute or nullptr",
178
- /*returnType=*/ "ArrayAttr",
178
+ /*returnType=*/ "::mlir:: ArrayAttr",
179
179
/*methodName=*/ "getAliasScopesOrNull",
180
180
/*args=*/ (ins),
181
181
/*methodBody=*/ [{}],
@@ -188,7 +188,7 @@ def AliasAnalysisOpInterface : OpInterface<"AliasAnalysisOpInterface"> {
188
188
/*desc=*/ "Sets the alias scopes attribute",
189
189
/*returnType=*/ "void",
190
190
/*methodName=*/ "setAliasScopes",
191
- /*args=*/ (ins "const ArrayAttr":$attr),
191
+ /*args=*/ (ins "const ::mlir:: ArrayAttr":$attr),
192
192
/*methodBody=*/ [{}],
193
193
/*defaultImpl=*/ [{
194
194
auto op = cast<ConcreteOp>(this->getOperation());
@@ -197,7 +197,7 @@ def AliasAnalysisOpInterface : OpInterface<"AliasAnalysisOpInterface"> {
197
197
>,
198
198
InterfaceMethod<
199
199
/*desc=*/ "Returns the noalias scopes attribute or nullptr",
200
- /*returnType=*/ "ArrayAttr",
200
+ /*returnType=*/ "::mlir:: ArrayAttr",
201
201
/*methodName=*/ "getNoAliasScopesOrNull",
202
202
/*args=*/ (ins),
203
203
/*methodBody=*/ [{}],
@@ -210,7 +210,7 @@ def AliasAnalysisOpInterface : OpInterface<"AliasAnalysisOpInterface"> {
210
210
/*desc=*/ "Sets the noalias scopes attribute",
211
211
/*returnType=*/ "void",
212
212
/*methodName=*/ "setNoAliasScopes",
213
- /*args=*/ (ins "const ArrayAttr":$attr),
213
+ /*args=*/ (ins "const ::mlir:: ArrayAttr":$attr),
214
214
/*methodBody=*/ [{}],
215
215
/*defaultImpl=*/ [{
216
216
auto op = cast<ConcreteOp>(this->getOperation());
@@ -219,7 +219,7 @@ def AliasAnalysisOpInterface : OpInterface<"AliasAnalysisOpInterface"> {
219
219
>,
220
220
InterfaceMethod<
221
221
/*desc=*/ "Returns the tbaa attribute or nullptr",
222
- /*returnType=*/ "ArrayAttr",
222
+ /*returnType=*/ "::mlir:: ArrayAttr",
223
223
/*methodName=*/ "getTBAATagsOrNull",
224
224
/*args=*/ (ins),
225
225
/*methodBody=*/ [{}],
@@ -232,7 +232,7 @@ def AliasAnalysisOpInterface : OpInterface<"AliasAnalysisOpInterface"> {
232
232
/*desc=*/ "Sets the tbaa attribute",
233
233
/*returnType=*/ "void",
234
234
/*methodName=*/ "setTBAATags",
235
- /*args=*/ (ins "const ArrayAttr":$attr),
235
+ /*args=*/ (ins "const ::mlir:: ArrayAttr":$attr),
236
236
/*methodBody=*/ [{}],
237
237
/*defaultImpl=*/ [{
238
238
auto op = cast<ConcreteOp>(this->getOperation());
@@ -249,29 +249,6 @@ def AliasAnalysisOpInterface : OpInterface<"AliasAnalysisOpInterface"> {
249
249
];
250
250
}
251
251
252
- def GetResultPtrElementType : OpInterface<"GetResultPtrElementType"> {
253
- let description = [{
254
- An interface for operations that yield an LLVMPointer. Allows the
255
- operation to provide the type of the element an LLVMPointer points to,
256
- if known. This is only a hint as to how to interpret a given pointer,
257
- translating how the current operation understands it.
258
- }];
259
-
260
- let cppNamespace = "::mlir::LLVM";
261
-
262
- let methods = [
263
- InterfaceMethod<
264
- /*desc=*/ [{Returns the the element type hint of the result
265
- LLVMPointer, if known. Returns nullptr if the
266
- requested result is not an LLVMPointer or if the
267
- element type is unknown.}],
268
- /*returnType=*/ "Type",
269
- /*methodName=*/ "getResultPtrElementType",
270
- /*args=*/ (ins)
271
- >
272
- ];
273
- }
274
-
275
252
def FPExceptionBehaviorOpInterface : OpInterface<"FPExceptionBehaviorOpInterface"> {
276
253
let description = [{
277
254
An interface for operations receiving an exception behavior attribute
@@ -283,7 +260,7 @@ def FPExceptionBehaviorOpInterface : OpInterface<"FPExceptionBehaviorOpInterface
283
260
let methods = [
284
261
InterfaceMethod<
285
262
/*desc=*/ "Returns a FPExceptionBehavior attribute for the operation",
286
- /*returnType=*/ "FPExceptionBehaviorAttr",
263
+ /*returnType=*/ "::mlir::LLVM:: FPExceptionBehaviorAttr",
287
264
/*methodName=*/ "getFPExceptionBehaviorAttr",
288
265
/*args=*/ (ins),
289
266
/*methodBody=*/ [{}],
@@ -295,7 +272,7 @@ def FPExceptionBehaviorOpInterface : OpInterface<"FPExceptionBehaviorOpInterface
295
272
StaticInterfaceMethod<
296
273
/*desc=*/ [{Returns the name of the FPExceptionBehaviorAttr
297
274
attribute for the operation}],
298
- /*returnType=*/ "StringRef",
275
+ /*returnType=*/ "::llvm:: StringRef",
299
276
/*methodName=*/ "getFPExceptionBehaviorAttrName",
300
277
/*args=*/ (ins),
301
278
/*methodBody=*/ [{}],
@@ -317,7 +294,7 @@ def RoundingModeOpInterface : OpInterface<"RoundingModeOpInterface"> {
317
294
let methods = [
318
295
InterfaceMethod<
319
296
/*desc=*/ "Returns a RoundingMode attribute for the operation",
320
- /*returnType=*/ "RoundingModeAttr",
297
+ /*returnType=*/ "::mlir::LLVM:: RoundingModeAttr",
321
298
/*methodName=*/ "getRoundingModeAttr",
322
299
/*args=*/ (ins),
323
300
/*methodBody=*/ [{}],
@@ -329,7 +306,7 @@ def RoundingModeOpInterface : OpInterface<"RoundingModeOpInterface"> {
329
306
StaticInterfaceMethod<
330
307
/*desc=*/ [{Returns the name of the RoundingModeAttr attribute
331
308
for the operation}],
332
- /*returnType=*/ "StringRef",
309
+ /*returnType=*/ "::llvm:: StringRef",
333
310
/*methodName=*/ "getRoundingModeAttrName",
334
311
/*args=*/ (ins),
335
312
/*methodBody=*/ [{}],
@@ -359,7 +336,7 @@ def LLVM_PointerElementTypeInterface
359
336
/*description=*/"Returns the size of the type in bytes.",
360
337
/*retTy=*/"unsigned",
361
338
/*methodName=*/"getSizeInBytes",
362
- /*args=*/(ins "const DataLayout &":$dataLayout),
339
+ /*args=*/(ins "const ::mlir:: DataLayout &":$dataLayout),
363
340
/*methodBody=*/"",
364
341
/*defaultImplementation=*/[{
365
342
return dataLayout.getTypeSize($_type);
0 commit comments