Skip to content

Commit 1ebeca7

Browse files
committed
review feedback
1 parent 8ed4b84 commit 1ebeca7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3020,8 +3020,8 @@ def IsGenericAddressSpace : CPred<"llvm::cast<LLVM::LLVMPointerType>($_self).get
30203020
def IsSharedAddressSpace : CPred<"llvm::cast<LLVM::LLVMPointerType>($_self).getAddressSpace() == 3">;
30213021
def IsSharedClusterAddressSpace : CPred<"llvm::cast<LLVM::LLVMPointerType>($_self).getAddressSpace() == 7">;
30223022

3023-
class NVVM_AddressSpaceMapping<string inputArg, string resultArg> :
3024-
PredOpTrait<"valid address space mapping for NVVM mapa operation",
3023+
class NVVM_MapaASCheck<string inputArg, string resultArg> :
3024+
PredOpTrait<"Valid address-space check(or mapping) for mapa Op",
30253025
Or<[
30263026
// Generic -> Generic
30273027
And<[
@@ -3036,7 +3036,7 @@ class NVVM_AddressSpaceMapping<string inputArg, string resultArg> :
30363036
]>>;
30373037

30383038
def NVVM_MapaOp: NVVM_Op<"mapa",
3039-
[NVVM_AddressSpaceMapping<"a", "res">, NVVMRequiresSM<90>]> {
3039+
[NVVM_MapaASCheck<"a", "res">, NVVMRequiresSM<90>]> {
30403040
let results = (outs AnyTypeOf<[LLVM_PointerGeneric, LLVM_PointerSharedCluster]>:$res);
30413041
let arguments = (ins AnyTypeOf<[LLVM_PointerGeneric, LLVM_PointerShared]>:$a, I32:$b);
30423042

mlir/test/Dialect/LLVMIR/invalid.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ func.func @cp_async(%arg0: !llvm.ptr<3>, %arg1: !llvm.ptr<1>) {
12011201
// -----
12021202

12031203
func.func @mapa(%a: !llvm.ptr, %b : i32) {
1204-
// expected-error @below {{'nvvm.mapa' op failed to verify that valid address space mapping for NVVM mapa operation}}
1204+
// expected-error @below {{'nvvm.mapa' op failed to verify that Valid address-space check(or mapping) for mapa Op}}
12051205
%0 = nvvm.mapa %a, %b: !llvm.ptr -> !llvm.ptr<7>
12061206
return
12071207
}

0 commit comments

Comments
 (0)