llvm-project/llvm/docs/CommandGuide
Sean Eveson a6bcd53d52 [MC] Function stack size section.
Re applying after fixing issues in the diff, sorry for any painful conflicts/merges!

Original RFC: http://lists.llvm.org/pipermail/llvm-dev/2017-August/117028.html

This change adds a '.stack-size' section containing metadata on function stack sizes to output ELF files behind the new -stack-size-section flag. The section contains pairs of function symbol references (8 byte) and stack sizes (unsigned LEB128).

The contents of this section can be used to measure changes to stack sizes between different versions of the compiler or a source base. The advantage of having a section is that we can extract this information when examining binaries that we didn't build, and it allows users and tools easy access to that information just by referencing the binary.

There is a follow up change to add an option to clang.

Thanks.

Reviewers: hfinkel, MatzeB

Reviewed By: MatzeB

Subscribers: thegameg, asb, llvm-commits

Differential Revision: https://reviews.llvm.org/D39788

llvm-svn: 319430
2017-11-30 13:05:14 +00:00
..
FileCheck.rst Add a -D flag to FileCheck to define variables 2017-11-07 13:24:44 +00:00
bugpoint.rst bugpoint: add flag -verbose-errors 2016-07-15 23:15:06 +00:00
dsymutil.rst Canonicalize spelling of long-form-options in dsymutil.rst 2017-11-06 16:52:05 +00:00
index.rst [dsymutil][doc] Improve wording in manpage and rename file. 2017-11-02 18:44:54 +00:00
lit.rst Revert "lit.py: Add new %{shared_output(LABEL)} substitution" 2017-10-14 04:01:27 +00:00
llc.rst [MC] Function stack size section. 2017-11-30 13:05:14 +00:00
lli.rst [docs] Update code block for compatibility with Sphinx 1.5.1 2017-11-06 11:47:24 +00:00
llvm-ar.rst
llvm-as.rst
llvm-bcanalyzer.rst
llvm-build.rst
llvm-config.rst
llvm-cov.rst [docs] llvm-cov: Make docs for boolean options more consistent 2017-09-25 23:10:04 +00:00
llvm-diff.rst
llvm-dis.rst
llvm-dwarfdump.rst [dsymutil][doc] Improve wording in manpage and rename file. 2017-11-02 18:44:54 +00:00
llvm-extract.rst
llvm-lib.rst
llvm-link.rst
llvm-nm.rst llvm-nm: Add support for symbol demangling (-C/--demangle) 2017-06-29 18:29:05 +00:00
llvm-pdbutil.rst [docs] Update code block for compatibility with Sphinx 1.5.1 2017-11-06 11:47:24 +00:00
llvm-profdata.rst [ProfileData] Add new option to dump topn hottest functions 2017-07-11 20:30:43 +00:00
llvm-readobj.rst
llvm-stress.rst
llvm-symbolizer.rst
opt.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00:00
tblgen.rst