[llvm] [SPIR-V] Handle ASM with multiple outputs (PR #187128)
Alex Voicu via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 18:58:58 PDT 2026
================
@@ -592,9 +595,26 @@ SPIRVPrepareFunctions::removeAggregateTypesFromSignature(Function *F) {
return NewF;
}
-// Mutates indirect callsites iff if aggregate argument/return types are present
-// with the types replaced by i32 types. The change in types is noted in
-// 'spv.mutated_callsites' metadata for later restoration.
+static std::string fixMultiOutputConstraintString(StringRef Constraints) {
+ // We should only have one =r return for the made up ASM type.
+ SmallVector<StringRef> Tmp;
+ SplitString(Constraints, Tmp, ",");
+ std::string SafeConstraints("=r,");
----------------
AlexVlx wrote:
It is possible in general, but it would not end up processed here.
https://github.com/llvm/llvm-project/pull/187128
More information about the llvm-commits
mailing list