[Mlir-commits] [mlir] [mlir][NVVM] Add memory clobber support to inline_ptx and BasicPtxBui… (PR #212937)
Siyi Xu
llvmlistbot at llvm.org
Thu Jul 30 01:13:44 PDT 2026
================
@@ -416,22 +422,24 @@ def NVVM_InlinePtxOp : NVVM_Op<"inline_ptx",
```
}];
- let arguments = (ins Variadic<AnyType>:$readOnlyArgs,
- Variadic<AnyType>:$readWriteArgs,
+ let arguments = (ins Variadic<AnyType>:$readOnlyArgs,
+ Variadic<AnyType>:$readWriteArgs,
StrAttr:$ptxCode,
- PtxPredicate:$predicate);
-
+ PtxPredicate:$predicate,
+ UnitAttr:$memoryClobber);
----------------
siyix-ace wrote:
Done — changed to DefaultValuedAttr<BoolAttr, "false">. The assembly syntax is now `memory_clobber = true`, matching the `predicate = ...` style. Tests and the op documentation are updated accordingly. Thanks!
https://github.com/llvm/llvm-project/pull/212937
More information about the Mlir-commits
mailing list