1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/lib/CodeGen/AsmPrinter
Pengxuan Zheng 3d401a1bf6 Support GCC's -fstack-usage flag
This patch adds support for GCC's -fstack-usage flag. With this flag, a stack
usage file (i.e., .su file) is generated for each input source file. The format
of the stack usage file is also similar to what is used by GCC. For each
function defined in the source file, a line with the following information is
produced in the .su file.

<source_file>:<line_number>:<function_name> <size_in_byte> <static/dynamic>

"Static" means that the function's frame size is static and the size info is an
accurate reflection of the frame size. While "dynamic" means the function's
frame size can only be determined at run-time because the function manipulates
the stack dynamically (e.g., due to variable size objects). The size info only
reflects the size of the fixed size frame objects in this case and therefore is
not a reliable measure of the total frame size.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D100509
2021-05-15 10:22:49 -07:00
..
AccelTable.cpp [debug-info] refactor emitDwarfUnitLength 2021-02-25 21:00:25 -05:00
AddressPool.cpp [debug-info] refactor emitDwarfUnitLength 2021-02-25 21:00:25 -05:00
AddressPool.h
AIXException.cpp [XCOFF] Handle the case when personality routine is an alias 2021-04-29 22:03:30 +00:00
ARMException.cpp [NFC] Refactor how CFI section types are represented in AsmPrinter 2021-04-28 09:04:04 +05:30
AsmPrinter.cpp Support GCC's -fstack-usage flag 2021-05-15 10:22:49 -07:00
AsmPrinterDwarf.cpp [debug-info] refactor emitDwarfUnitLength 2021-02-25 21:00:25 -05:00
AsmPrinterInlineAsm.cpp [llvm][AsmPrinter] Restore source location to register clobber warning 2021-05-14 08:22:57 +00:00
ByteStreamer.h
CMakeLists.txt [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
CodeViewDebug.cpp [Debug-Info] change Tag type to dwarf::Tag for createAndAddDIE; NFC 2021-05-13 21:15:06 -04:00
CodeViewDebug.h
DbgEntityHistoryCalculator.cpp Reapply "[DebugInfo] Add DWARF emission for DBG_VALUE_LIST" 2021-03-10 15:59:24 +00:00
DebugHandlerBase.cpp [Debug-Info] make fortran CHARACTER(1) type as valid unsigned type 2021-04-11 23:17:01 -04:00
DebugLocEntry.h Revert "Re-reapply "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands"" 2021-04-30 20:23:21 -07:00
DebugLocStream.cpp
DebugLocStream.h
DIE.cpp DebugInfo: Add a DWARF FORM extension for addrx+offset references to reduce relocations 2021-01-28 10:20:02 -08:00
DIEHash.cpp DebugInfo: Add a DWARF FORM extension for addrx+offset references to reduce relocations 2021-01-28 10:20:02 -08:00
DIEHash.h
DIEHashAttributes.def
DwarfCFIException.cpp [MCAsmInfo] Support UsesCFIForDebug for targets with no exception handling 2021-05-06 04:53:45 +05:30
DwarfCompileUnit.cpp [Debug-Info][NFC] add a wrapper for Die.addValue 2021-05-07 07:24:09 +00:00
DwarfCompileUnit.h
DwarfDebug.cpp [DebugInfo][AIX] Set target debugger-tune default to dbx 2021-04-26 01:38:44 +00:00
DwarfDebug.h [DebuggerTuning] Move a comment to a more useful place. 2021-05-03 11:08:04 -07:00
DwarfException.h [NFC] Delete the redundant member 'shouldEmitMoves' from DwarfCFIException class 2021-04-24 06:35:39 +05:30
DwarfExpression.cpp Fix unused lambda capture in a non-asserts build 2021-03-11 00:22:18 -08:00
DwarfExpression.h Fix unused lambda capture in a non-asserts build 2021-03-11 00:22:18 -08:00
DwarfFile.cpp
DwarfFile.h
DwarfStringPool.cpp
DwarfStringPool.h
DwarfUnit.cpp [Debug-Info] change Tag type to dwarf::Tag for createAndAddDIE; NFC 2021-05-13 21:15:06 -04:00
DwarfUnit.h [Debug-Info] change Tag type to dwarf::Tag for createAndAddDIE; NFC 2021-05-13 21:15:06 -04:00
EHStreamer.cpp [AsmPrinter] Use range-based for loops (NFC) 2021-02-10 20:01:22 -08:00
EHStreamer.h
ErlangGCPrinter.cpp [GC][NFC] Move GCStrategy from CodeGen to IR 2021-05-13 12:31:59 +07:00
OcamlGCPrinter.cpp [GC][NFC] Move GCStrategy from CodeGen to IR 2021-05-13 12:31:59 +07:00
PseudoProbePrinter.cpp [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
PseudoProbePrinter.h [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
WasmException.cpp [WebAssembly] Remove exnref and br_on_exn 2021-01-09 02:02:54 -08:00
WasmException.h
WinCFGuard.cpp [CodeGen] Use llvm::append_range (NFC) 2020-12-28 19:55:16 -08:00
WinCFGuard.h
WinException.cpp Add ehcont section support 2021-02-15 14:27:12 +08:00
WinException.h Add ehcont section support 2021-02-15 14:27:12 +08:00