[Mlir-commits] [mlir] [MLIR][NVVM] Update prefetch.tensormap Op (PR #153134)

Guray Ozen llvmlistbot at llvm.org
Thu Aug 14 03:19:50 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:

I feel we should unify NVVM_PrefetchOp and NVVM_PrefetchTensorMapOp.
We currently have many ops on the NVVM side, which suggests we are not leveraging MLIR’s TableGen capabilities effectively.

https://github.com/llvm/llvm-project/pull/153134


More information about the Mlir-commits mailing list