[llvm] [SPIRV] Add support for pointers to functions with aggregate args/returns as global variables / constant initialisers (PR #169595)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 02:53:57 PST 2025
================
@@ -469,6 +471,23 @@ bool SPIRVPrepareFunctions::substituteIntrinsicCalls(Function *F) {
return Changed;
}
+static void addFunctionTypeMutation(
+ NamedMDNode *NMD,
+ SmallVector<std::pair<int, Type *>> ChangedTys, StringRef Name) {
----------------
jmmartinez wrote:
What's the interest of passing `ChangedTys` by doing an `std::move` in here vs a `const&` ? (maybe the explanation is in the follow-up PR ?)
https://github.com/llvm/llvm-project/pull/169595
More information about the llvm-commits
mailing list