================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits