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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 05:27:26 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) {
----------------
arsenm wrote:

I would expect the CallGraph analysis to parse this metadata for you. Also this would be a separate patch from "aliases and inline asm" 

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


More information about the llvm-commits mailing list