[Mlir-commits] [mlir] [MLIR][NVVM] Update prefetch.tensormap Op (PR #153134)
Guray Ozen
llvmlistbot at llvm.org
Sun Aug 17 23:37:34 PDT 2025
================
@@ -2464,15 +2466,30 @@ def NVVM_PrefetchOp : NVVM_Op<"prefetch"> {
}];
}
-def NVVM_PrefetchTensorMapOp : NVVM_Op<"prefetch.tensormap",
- [DeclareOpInterfaceMethods<BasicPtxBuilderOpInterface>]>,
- Arguments<(ins LLVM_AnyPointer:$tmaDescriptor, PtxPredicate:$predicate)> {
- let assemblyFormat = "$tmaDescriptor (`,` `predicate` `=` $predicate^)? attr-dict `:` type(operands)";
+def NVVM_PrefetchTensorMapOp : NVVM_Op<"prefetch.tensormap",
+ [DeclareOpInterfaceMethods<BasicPtxBuilderOpInterface>, NVVMRequiresSM<90>]> {
----------------
grypp wrote:
The ops differ slightly from each other. As you can see in the PTX guide, `tensormap` is a trait, not a new ISA instruction. I think we can reduce the op set if we leverage MLIR’s ODS effectively.
https://github.com/llvm/llvm-project/pull/153134
More information about the Mlir-commits
mailing list