1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/DebugInfo/PDB
Reid Kleckner 0cdbf86cb4 [codeview] Decode and dump FP regs from S_FRAMEPROC records
Summary:
There are two registers encoded in the S_FRAMEPROC flags: one for locals
and one for parameters. The encoding is described by the
ExpandEncodedBasePointerReg function in cvinfo.h. Two bits are used to
indicate one of four possible values:

  0: no register - Used when there are no variables.
  1: SP / standard - Variables are stored relative to the standard SP
     for the ISA.
  2: FP - Variables are addressed relative to the ISA frame
     pointer, i.e. EBP on x86. If realignment is required, parameters
     use this. If a dynamic alloca is used, locals will be EBP relative.
  3: Alternative - Variables are stored relative to some alternative
     third callee-saved register. This is required to address highly
     aligned locals when there are dynamic stack adjustments. In this
     case, both the incoming SP saved in the standard FP and the current
     SP are at some dynamic offset from the locals. LLVM uses ESI in
     this case, MSVC uses EBX.

Most of the changes in this patch are to pass around the CPU so that we
can decode these into real, named architectural registers.

Subscribers: hiraditya

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

llvm-svn: 341999
2018-09-11 22:00:50 +00:00
..
DIA [codeview] Use push_macro to avoid conflicts instead of a prefix 2018-08-16 17:34:31 +00:00
Inputs
Native Fix some of the PDB tests. 2018-09-07 23:36:08 +00:00
dbi-bytes.test
dump-fpm.test
every-type.test
just-my-code.test
module-bytes.test
module-stats.test
obj-globalhash.test Resubmit [pdb] Change /DEBUG:GHASH to emit 8 byte hashes." 2018-05-17 22:55:15 +00:00
pdb-invalid-type.test [DebugInfo] Common behavior for error types 2018-08-31 17:41:58 +00:00
pdb-longname-truncation.test
pdb-minimal-construct.test
pdb-unknown-symbol.test
pdb-yaml-symbols.test
pdbdump-debug-subsections.test
pdbdump-globals-empty.test
pdbdump-headers.test [codeview] Decode and dump FP regs from S_FRAMEPROC records 2018-09-11 22:00:50 +00:00
pdbdump-merge-ids-and-types.test
pdbdump-mergeids.test
pdbdump-mergetypes.test
pdbdump-objfilename.yaml
pdbdump-raw-blocks.test
pdbdump-raw-bytes.test
pdbdump-raw-stream.test
pdbdump-readwrite.test
pdbdump-source-names.test
pdbdump-write.test
pdbdump-yaml-types.test
pdbdump-yaml.test
section-headers.test
tpi-bytes.test
udt-stats.test
using-namespace.test [CodeView] Minimal support for S_UNAMESPACE records 2018-07-31 19:15:50 +00:00
write-fpm.test [MSF] Default to FPM2, and always mark FPM pages allocated. 2018-03-29 18:34:15 +00:00