[llvm] [memprof] Teach extractCallsFromIR to recognize heap allocation functions (PR #115938)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 14:31:48 PST 2024


================
@@ -795,8 +795,8 @@ struct AllocMatchInfo {
   bool Matched = false;
 };
 
-DenseMap<uint64_t, SmallVector<CallEdgeTy, 0>>
-memprof::extractCallsFromIR(Module &M) {
+DenseMap<uint64_t, SmallVector<CallEdgeTy, 0>> memprof::extractCallsFromIR(
+    Module &M, function_ref<const TargetLibraryInfo &(Function &)> GetTLI) {
----------------
kazutakahirata wrote:

Thanks!  I've incorporated `TargetLibraryInfoWrapperPass` in the latest revision.

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


More information about the llvm-commits mailing list