[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-03-15 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-03-12 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-02-11 Thread Matt Arsenault via llvm-branch-commits
@@ -1642,6 +1642,102 @@ void AsmPrinter::emitStackUsage(const MachineFunction &MF) { *StackUsageStream << "static\n"; } +/// Extracts a generalized numeric type identifier of a Function's type from +/// type metadata. Returns null if metadata cannot be found. +static Cons

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-02-11 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-02-11 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-02-05 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-02-05 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-02-01 Thread Fangrui Song via llvm-branch-commits
@@ -0,0 +1,73 @@ +; Tests that we store the type identifiers in .callgraph section of the binary. + +; RUN: llc --call-graph-section -filetype=obj -o - < %s | \ +; RUN: llvm-readelf -x .callgraph - | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" MaskR

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-02-01 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2025-02-01 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Matt Arsenault via llvm-branch-commits
@@ -1629,6 +1629,102 @@ void AsmPrinter::emitStackUsage(const MachineFunction &MF) { *StackUsageStream << "static\n"; } +/// Extracts a generalized numeric type identifier of a Function's type from +/// type metadata. Returns null if metadata cannot be found. +static Cons

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
@@ -173,6 +173,32 @@ class AsmPrinter : public MachineFunctionPass { /// Emit comments in assembly output if this is true. bool VerboseAsm; + /// Store symbols and type identifiers used to create call graph section + /// entries related to a function. + struct FunctionI

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi commented: I think this is mostly OK, modulo some minor issues, and minimizing the test a bit more. But I'd like to be sure we have feedback from someone who works in this space more heavily than I do. https://github.com/llvm/llvm-project/pull/87576

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,73 @@ +; Tests that we store the type identifiers in .callgraph section of the binary. + +; RUN: llc --call-graph-section -filetype=obj -o - < %s | \ +; RUN: llvm-readelf -x .callgraph - | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" + +define dso_local vo

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,73 @@ +; Tests that we store the type identifiers in .callgraph section of the binary. + +; RUN: llc --call-graph-section -filetype=obj -o - < %s | \ +; RUN: llvm-readelf -x .callgraph - | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" + +define dso_local vo

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,73 @@ +; Tests that we store the type identifiers in .callgraph section of the binary. + +; RUN: llc --call-graph-section -filetype=obj -o - < %s | \ +; RUN: llvm-readelf -x .callgraph - | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" + +define dso_local vo

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,73 @@ +; Tests that we store the type identifiers in .callgraph section of the binary. + +; RUN: llc --call-graph-section -filetype=obj -o - < %s | \ +; RUN: llvm-readelf -x .callgraph - | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" + +define dso_local vo

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,73 @@ +; Tests that we store the type identifiers in .callgraph section of the binary. + +; RUN: llc --call-graph-section -filetype=obj -o - < %s | \ +; RUN: llvm-readelf -x .callgraph - | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" ilove

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-11 Thread Paul Kirth via llvm-branch-commits
@@ -0,0 +1,73 @@ +; Tests that we store the type identifiers in .callgraph section of the binary. + +; RUN: llc --call-graph-section -filetype=obj -o - < %s | \ +; RUN: llvm-readelf -x .callgraph - | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" + +define dso_local vo

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-10 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-10 Thread via llvm-branch-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)

2024-12-10 Thread via llvm-branch-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/87576 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits