@@ -35,8 +35,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
3535 This method checks if it's valid to load a value from the memory space
3636 with a specific type, alignment, and atomic ordering.
3737 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.
3840 }],
39- /*returnType=*/ "::mlir::LogicalResult ",
41+ /*returnType=*/ "bool ",
4042 /*methodName=*/ "isValidLoad",
4143 /*args=*/ (ins "::mlir::Type":$type,
4244 "::mlir::ptr::AtomicOrdering":$ordering,
@@ -48,8 +50,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
4850 This method checks if it's valid to store a value in the memory space
4951 with a specific type, alignment, and atomic ordering.
5052 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.
5155 }],
52- /*returnType=*/ "::mlir::LogicalResult ",
56+ /*returnType=*/ "bool ",
5357 /*methodName=*/ "isValidStore",
5458 /*args=*/ (ins "::mlir::Type":$type,
5559 "::mlir::ptr::AtomicOrdering":$ordering,
@@ -61,8 +65,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
6165 This method checks if it's valid to perform an atomic operation in the
6266 memory space with a specific type, alignment, and atomic ordering.
6367 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.
6470 }],
65- /*returnType=*/ "::mlir::LogicalResult ",
71+ /*returnType=*/ "bool ",
6672 /*methodName=*/ "isValidAtomicOp",
6773 /*args=*/ (ins "::mlir::ptr::AtomicBinOp":$op,
6874 "::mlir::Type":$type,
@@ -76,8 +82,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
7682 in the memory space with a specific type, alignment, and atomic
7783 orderings.
7884 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.
7987 }],
80- /*returnType=*/ "::mlir::LogicalResult ",
88+ /*returnType=*/ "bool ",
8189 /*methodName=*/ "isValidAtomicXchg",
8290 /*args=*/ (ins "::mlir::Type":$type,
8391 "::mlir::ptr::AtomicOrdering":$successOrdering,
@@ -90,8 +98,10 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
9098 This method checks if it's valid to perform an `addrspacecast` op
9199 in the memory space.
92100 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.
93103 }],
94- /*returnType=*/ "::mlir::LogicalResult ",
104+ /*returnType=*/ "bool ",
95105 /*methodName=*/ "isValidAddrSpaceCast",
96106 /*args=*/ (ins "::mlir::Type":$tgt,
97107 "::mlir::Type":$src,
@@ -101,11 +111,13 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
101111 /*desc=*/ [{
102112 This method checks if it's valid to perform a `ptrtoint` or `inttoptr`
103113 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.
106116 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.
107119 }],
108- /*returnType=*/ "::mlir::LogicalResult ",
120+ /*returnType=*/ "bool ",
109121 /*methodName=*/ "isValidPtrIntCast",
110122 /*args=*/ (ins "::mlir::Type":$intLikeTy,
111123 "::mlir::Type":$ptrLikeTy,
0 commit comments