[Mlir-commits] [mlir] [MLIR][NVVM] Improve inline_ptx, add readwrite support (PR #154358)
Durgadoss R
llvmlistbot at llvm.org
Wed Aug 20 05:08:27 PDT 2025
================
@@ -108,38 +128,225 @@ void PtxBuilder::insertValue(Value v, PTXRegisterMod itype) {
}
/// Check if the operation needs to pack and unpack results.
-static bool needsPackUnpack(BasicPtxBuilderInterface interfaceOp) {
- return interfaceOp->getNumResults() > 1;
+static bool
+needsPackUnpack(BasicPtxBuilderInterface interfaceOp,
+ bool needsManualRegisterMapping,
+ SmallVectorImpl<PTXRegisterMod> ®isterModifiers) {
+ if (needsManualRegisterMapping)
+ return false;
+ const unsigned writeOnly = interfaceOp->getNumResults();
----------------
durga4github wrote:
Let us name it writeOnlyVals or writeOnlyResults ?
https://github.com/llvm/llvm-project/pull/154358
More information about the Mlir-commits
mailing list