[llvm-branch-commits] [llvm] [llvm] Add option to emit `callgraph` section (PR #87574)
Prabhu Rajasekaran via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 13 10:27:41 PDT 2025
================
@@ -0,0 +1,59 @@
+# Test MIR printer and parser for type id field in callSites. It is used
+# for propagating call site type identifiers to emit in the call graph section.
+
+# RUN: llc --call-graph-section %s -run-pass=none -o - | FileCheck %s
+# CHECK: name: main
+# CHECK: callSites:
+# CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: []
+# CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:
+# CHECK-NEXT: [ 1234567890 ] }
+
+--- |
+
+ declare !type !0 noundef i32 @_Z3addii(i32 noundef, i32 noundef)
+
+ declare !type !0 noundef i32 @_Z8multiplyii(i32 noundef, i32 noundef)
+
+ declare !type !1 noundef ptr @_Z13get_operationb(i1 noundef zeroext %is_addition)
+
+ define dso_local noundef i32 @main(i32 noundef %argc) !type !2 {
----------------
Prabhuk wrote:
Done. Thank you.
https://github.com/llvm/llvm-project/pull/87574
More information about the llvm-branch-commits
mailing list