Skip to content

Commit cf6764b

Browse files
committed
create InputAddressIsCombinationOf
1 parent 50d6536 commit cf6764b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,11 +3015,10 @@ def NVVM_GriddepcontrolLaunchDependentsOp
30153015
// NVVM Mapa Op
30163016
//===----------------------------------------------------------------------===//
30173017

3018-
def NVVM_MapaASCheck : PredOpTrait<"Valid address-space check(or mapping) for mapa Op",
3019-
Or<[InputMatchesTypes<["a", "res"], [LLVM_PointerShared, LLVM_PointerSharedCluster]>.predicate,
3020-
InputMatchesTypes<["a", "res"], [LLVM_PointerGeneric, LLVM_PointerGeneric]>.predicate]>>;
3021-
3022-
def NVVM_MapaOp: NVVM_Op<"mapa", [NVVM_MapaASCheck, NVVMRequiresSM<90>]> {
3018+
def NVVM_MapaOp: NVVM_Op<"mapa",
3019+
[InputAddressIsCombinationOf<["a", "res"],
3020+
[[LLVM_PointerShared, LLVM_PointerSharedCluster], [LLVM_PointerGeneric, LLVM_PointerGeneric]],
3021+
"Valid address-space check(or mapping) for mapa Op">, NVVMRequiresSM<90>]> {
30233022
let results = (outs AnyTypeOf<[LLVM_PointerGeneric, LLVM_PointerSharedCluster]>:$res);
30243023
let arguments = (ins AnyTypeOf<[LLVM_PointerGeneric, LLVM_PointerShared]>:$a, I32:$b);
30253024

0 commit comments

Comments
 (0)