[Mlir-commits] [mlir] [MLIR][NVVM] Add support for multiple return values in `inline_ptx` (PR #153774)
Durgadoss R
llvmlistbot at llvm.org
Fri Aug 15 08:50:39 PDT 2025
================
@@ -107,11 +107,28 @@ void PtxBuilder::insertValue(Value v, PTXRegisterMod itype) {
ss << getModifier() << getRegisterType(v) << ",";
}
+static bool needsPackUnpack(BasicPtxBuilderInterface interfaceOp) {
+ return interfaceOp->getNumResults() > 1;
+}
+
+static SmallVector<Type>
+coalesceResultTypes(MLIRContext *ctx, BasicPtxBuilderInterface interfaceOp) {
----------------
durga4github wrote:
Can we name it more explicit?
PackResultsAsStruct ? (or) AggregateResultTypes? (since `structs` are aggregate types in LLVM IR)
https://github.com/llvm/llvm-project/pull/153774
More information about the Mlir-commits
mailing list