[llvm] [AMDGPU] SplitModule: Better handling of aliases & inline assembly (PR #106528)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 07:00:53 PDT 2024


================
@@ -486,6 +486,27 @@ void SplitGraph::Node::visitAllDependencies(
   }
 }
 
+/// Checks if \p I has MD_callees and if it does, parse it and put the function
+/// in \p Callees.
+///
+/// \returns true if there was metadata and it was parsed correctly. false if
+/// there was no MD or if it contained unknown entries.
+static bool handleCalleesMD(const Instruction &I,
+                            SmallVector<Function *> &Callees) {
----------------
Pierre-vh wrote:

I thought of this patch more as a general improvement on the CallsExternal case in the CG.
Is it okay if I retitle the patch, or do you want me to split this into 2 or 3 patches ?

https://github.com/llvm/llvm-project/pull/106528


More information about the llvm-commits mailing list