Skip to content

Commit 6e9000f

Browse files
committed
review feedback
1 parent 21b0885 commit 6e9000f

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
@@ -3014,8 +3014,8 @@ def IsGenericAddressSpace : CPred<"llvm::cast<LLVM::LLVMPointerType>($_self).get
30143014
def IsSharedAddressSpace : CPred<"llvm::cast<LLVM::LLVMPointerType>($_self).getAddressSpace() == 3">;
30153015
def IsSharedClusterAddressSpace : CPred<"llvm::cast<LLVM::LLVMPointerType>($_self).getAddressSpace() == 7">;
30163016

3017-
class NVVM_AddressSpaceMapping<string inputArg, string resultArg> :
3018-
PredOpTrait<"valid address space mapping for NVVM mapa operation",
3017+
class NVVM_MapaASCheck<string inputArg, string resultArg> :
3018+
PredOpTrait<"Valid address-space check(or mapping) for mapa Op",
30193019
Or<[
30203020
// Generic -> Generic
30213021
And<[
@@ -3030,7 +3030,7 @@ class NVVM_AddressSpaceMapping<string inputArg, string resultArg> :
30303030
]>>;
30313031

30323032
def NVVM_MapaOp: NVVM_Op<"mapa",
3033-
[NVVM_AddressSpaceMapping<"a", "res">, NVVMRequiresSM<90>]> {
3033+
[NVVM_MapaASCheck<"a", "res">, NVVMRequiresSM<90>]> {
30343034
let results = (outs AnyTypeOf<[LLVM_PointerGeneric, LLVM_PointerSharedCluster]>:$res);
30353035
let arguments = (ins AnyTypeOf<[LLVM_PointerGeneric, LLVM_PointerShared]>:$a, I32:$b);
30363036

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)