@@ -35,8 +35,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
35
35
This method checks if it's valid to load a value from the memory space
36
36
with a specific type, alignment, and atomic ordering.
37
37
If `emitError` is non-null then the method is allowed to emit errors.
38
+ Furthermore, if `emitError` is non-null and the result is `false` an
39
+ error must have been emitted.
38
40
}],
39
- /*returnType=*/ "::mlir::LogicalResult ",
41
+ /*returnType=*/ "bool ",
40
42
/*methodName=*/ "isValidLoad",
41
43
/*args=*/ (ins "::mlir::Type":$type,
42
44
"::mlir::ptr::AtomicOrdering":$ordering,
@@ -48,8 +50,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
48
50
This method checks if it's valid to store a value in the memory space
49
51
with a specific type, alignment, and atomic ordering.
50
52
If `emitError` is non-null then the method is allowed to emit errors.
53
+ Furthermore, if `emitError` is non-null and the result is `false` an
54
+ error must have been emitted.
51
55
}],
52
- /*returnType=*/ "::mlir::LogicalResult ",
56
+ /*returnType=*/ "bool ",
53
57
/*methodName=*/ "isValidStore",
54
58
/*args=*/ (ins "::mlir::Type":$type,
55
59
"::mlir::ptr::AtomicOrdering":$ordering,
@@ -61,8 +65,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
61
65
This method checks if it's valid to perform an atomic operation in the
62
66
memory space with a specific type, alignment, and atomic ordering.
63
67
If `emitError` is non-null then the method is allowed to emit errors.
68
+ Furthermore, if `emitError` is non-null and the result is `false` an
69
+ error must have been emitted.
64
70
}],
65
- /*returnType=*/ "::mlir::LogicalResult ",
71
+ /*returnType=*/ "bool ",
66
72
/*methodName=*/ "isValidAtomicOp",
67
73
/*args=*/ (ins "::mlir::ptr::AtomicBinOp":$op,
68
74
"::mlir::Type":$type,
@@ -76,8 +82,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
76
82
in the memory space with a specific type, alignment, and atomic
77
83
orderings.
78
84
If `emitError` is non-null then the method is allowed to emit errors.
85
+ Furthermore, if `emitError` is non-null and the result is `false` an
86
+ error must have been emitted.
79
87
}],
80
- /*returnType=*/ "::mlir::LogicalResult ",
88
+ /*returnType=*/ "bool ",
81
89
/*methodName=*/ "isValidAtomicXchg",
82
90
/*args=*/ (ins "::mlir::Type":$type,
83
91
"::mlir::ptr::AtomicOrdering":$successOrdering,
@@ -90,8 +98,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
90
98
This method checks if it's valid to perform an `addrspacecast` op
91
99
in the memory space.
92
100
If `emitError` is non-null then the method is allowed to emit errors.
101
+ Furthermore, if `emitError` is non-null and the result is `false` an
102
+ error must have been emitted.
93
103
}],
94
- /*returnType=*/ "::mlir::LogicalResult ",
104
+ /*returnType=*/ "bool ",
95
105
/*methodName=*/ "isValidAddrSpaceCast",
96
106
/*args=*/ (ins "::mlir::Type":$tgt,
97
107
"::mlir::Type":$src,
@@ -101,11 +111,13 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
101
111
/*desc=*/ [{
102
112
This method checks if it's valid to perform a `ptrtoint` or `inttoptr`
103
113
op in the memory space.
104
- The first type is expected to be integer-like, while the second must be a
105
- ptr-like type.
114
+ The first type is expected to be integer-like, while the second must be
115
+ a ptr-like type.
106
116
If `emitError` is non-null then the method is allowed to emit errors.
117
+ Furthermore, if `emitError` is non-null and the result is `false` an
118
+ error must have been emitted.
107
119
}],
108
- /*returnType=*/ "::mlir::LogicalResult ",
120
+ /*returnType=*/ "bool ",
109
121
/*methodName=*/ "isValidPtrIntCast",
110
122
/*args=*/ (ins "::mlir::Type":$intLikeTy,
111
123
"::mlir::Type":$ptrLikeTy,
0 commit comments