aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorSnehasish Kumar <snehasishk@google.com>2020-05-04 19:02:57 +0000
committerSnehasish Kumar <snehasishk@google.com>2020-05-04 19:06:43 +0000
commitc8ac29ab1d798f16999541cd9f08d58ebaa1b4c1 (patch)
treef104d2b0d8ef79ffe071537d355f26013d52f657 /clang/lib/CodeGen/CodeGenFunction.h
parent6fec2c4402ce34edc5c27202422007b12bb25797 (diff)
downloadllvm-c8ac29ab1d798f16999541cd9f08d58ebaa1b4c1.zip
llvm-c8ac29ab1d798f16999541cd9f08d58ebaa1b4c1.tar.gz
llvm-c8ac29ab1d798f16999541cd9f08d58ebaa1b4c1.tar.bz2
Descriptive symbol names for machine basic block sections.
Today symbol names generated for machine basic block sections use a unary encoding to reduce bloat. This is essential when every basic block in the binary is assigned a symbol however with basic block clusters (rG05192e585ce175b55f2a26b83b4ed7882785c8e6) when we only need to generate a few non-temporary symbols we can assign more descriptive names making them more user friendly. With this change - Cold cluster section for function foo is named "foo.cold" Exception cluster section for function foo is named "foo.eh" Other cluster sections identified by their ids are named "foo.ID" Using this format works well with existing tools. It will demangle as expected and works with existing symbolizers, profilers and debuggers out of the box. $ c++filt _Z3foov.cold foo() [clone .cold] $ c++filt _Z3foov.eh foo() [clone .eh] $c++filt _Z3foov.1234 foo() [clone 1234] Tests for basicblock-sections are updated with some cleanup where appropriate. Differential Revision: https://reviews.llvm.org/D79221
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions