llvm-project/llvm/test/CodeGen
Sanjoy Das 23f06e53d8 [Stackmap] Added callsite counts to emitted function information.
Summary:
It was previously not possible for tools to use solely the stackmap
information emitted to reconstruct the return addresses of callsites in
the map, which is necessary to use the information to walk a stack. This
patch adds per-function callsite counts when emitting the stackmap
section in order to resolve the problem. Note that this slightly alters
the stackmap format, so external tools parsing these maps will need to
be updated.

**Problem Details:**
Records only store their offset from the beginning of the function they
belong to. While these records and the functions are output in program
order, it is not possible to determine where the end of one function's
records are without the callsite count when processing the records to
compute return addresses.

Patch by Kavon Farvardin!

Reviewers: atrick, ributzka, sanjoy

Subscribers: nemanjai

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

llvm-svn: 281532
2016-09-14 20:22:03 +00:00
..
AArch64 [Stackmap] Added callsite counts to emitted function information. 2016-09-14 20:22:03 +00:00
AMDGPU Revert "AMDGPU: Use SOPK compare instructions" 2016-09-14 18:04:42 +00:00
ARM Revert "[ARM] Promote small global constants to constant pools" 2016-09-14 20:02:30 +00:00
BPF
Generic CodeGen: Remove MachineFunctionAnalysis => Enable (Machine)ModulePasses 2016-08-24 01:52:46 +00:00
Hexagon This reapplies r281304. The issue was that I had missed 2016-09-14 08:20:03 +00:00
Inputs
Lanai Add a REQUIRES: assert on a Lanai test that uses a -debug-only flag 2016-07-29 19:35:22 +00:00
MIR [AArch64] Simplify patchpoint/stackmap size test (r281301). NFC. 2016-09-13 22:16:40 +00:00
MSP430 Revert r279242 - it's failing the tests 2016-08-19 14:18:34 +00:00
Mips Revert "[mips] Fix c.<cc>.<fmt> instruction definition." 2016-09-09 11:06:01 +00:00
NVPTX DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
PowerPC [Stackmap] Added callsite counts to emitted function information. 2016-09-14 20:22:03 +00:00
SPARC [Myriad]: set LeonCASA processor feature 2016-09-13 17:51:41 +00:00
SystemZ [SystemZ] Use valid base/index regs for inline asm 2016-08-18 21:44:15 +00:00
Thumb Revert "[Thumb] Teach ISel how to lower compares of AND bitmasks efficiently" 2016-09-14 09:45:28 +00:00
Thumb2 Revert "[Thumb] Teach ISel how to lower compares of AND bitmasks efficiently" 2016-09-14 09:45:28 +00:00
WebAssembly [WebAssembly] Trying to fix broken tests in CodeGen/WebAssembly caused by r281285. 2016-09-13 10:05:44 +00:00
WinEH Revert EH-specific checks in BranchFolding that were causing blow ups in compile time. 2016-07-27 17:55:33 +00:00
X86 [Stackmap] Added callsite counts to emitted function information. 2016-09-14 20:22:03 +00:00
XCore IR: Introduce Module::global_objects(). 2016-06-22 20:29:42 +00:00