1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/MC/COFF
Reid Kleckner c7b264dacb [codeview] Implement FPO data assembler directives
Summary:
This adds a set of new directives that describe 32-bit x86 prologues.
The directives are limited and do not expose the full complexity of
codeview FPO data. They are merely a convenience for the compiler to
generate more readable assembly so we don't need to generate tons of
labels in CodeGen. If our prologue emission changes in the future, we
can change the set of available directives to suit our needs. These are
modelled after the .seh_ directives, which use a different format that
interacts with exception handling.

The directives are:
  .cv_fpo_proc _foo
  .cv_fpo_pushreg ebp/ebx/etc
  .cv_fpo_setframe ebp/esi/etc
  .cv_fpo_stackalloc 200
  .cv_fpo_endprologue
  .cv_fpo_endproc
  .cv_fpo_data _foo

I tried to follow the implementation of ARM EHABI CFI directives by
sinking most directives out of MCStreamer and into X86TargetStreamer.
This helps avoid polluting non-X86 code with WinCOFF specific logic.

I used cdb to confirm that this can show locals in parent CSRs in a few
cases, most importantly the one where we use ESI as a frame pointer,
i.e. the one in http://crbug.com/756153#c28

Once we have cdb integration in debuginfo-tests, we can add integration
tests there.

Reviewers: majnemer, hans

Subscribers: aemerson, mgorny, kristof.beyls, llvm-commits, hiraditya

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

llvm-svn: 315513
2017-10-11 21:24:33 +00:00
..
ARM
alias.s
align-nops.s
bad-expr.s Use @LINE in two more tests. 2017-07-06 21:33:23 +00:00
basic-coff-64.s
basic-coff.s
bigobj.py
bss_section.ll
bss.s
comm-align.s
comm.ll
comm.s
const-gv-with-rel-init.ll
cross-section-relative-err.s COFF: Produce an error on invalid pcrel relocs. 2017-06-23 04:07:44 +00:00
cross-section-relative.ll
cross-section-relative.s COFF: Produce an error on invalid pcrel relocs. 2017-06-23 04:07:44 +00:00
cv-compiler-info.ll IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata. 2017-06-12 20:10:48 +00:00
cv-def-range-gap.s CodeView symbol dumper: use symbolic names for registers 2017-10-02 17:44:47 +00:00
cv-def-range.s [codeview] Change readobj symbol dumping format 2017-07-11 23:41:41 +00:00
cv-empty-file-table.s
cv-empty-linetable.s [codeview] Add new directives to record inlined call site line info 2016-09-07 16:15:31 +00:00
cv-errors.s Give an x86 assembler test a triple 2016-09-08 15:40:43 +00:00
cv-fpo-csrs.s [codeview] Implement FPO data assembler directives 2017-10-11 21:24:33 +00:00
cv-fpo-errors.s [codeview] Implement FPO data assembler directives 2017-10-11 21:24:33 +00:00
cv-fpo-setframe.s [codeview] Implement FPO data assembler directives 2017-10-11 21:24:33 +00:00
cv-inline-linetable-infloop.s [codeview] Change readobj symbol dumping format 2017-07-11 23:41:41 +00:00
cv-inline-linetable-unlikely.s [codeview] Change readobj symbol dumping format 2017-07-11 23:41:41 +00:00
cv-inline-linetable-unreachable.s [codeview] Change readobj symbol dumping format 2017-07-11 23:41:41 +00:00
cv-inline-linetable.s [codeview] Change readobj symbol dumping format 2017-07-11 23:41:41 +00:00
cv-loc-cross-section.s Let test pass for builds that support X86, but do not default to it 2016-10-11 16:34:49 +00:00
cv-loc.s [codeview] Add new directives to record inlined call site line info 2016-09-07 16:15:31 +00:00
diff.s Change creation of relative relocations on COFF. 2017-06-22 21:57:04 +00:00
directive-section-characteristics.ll
early-dce.s
eh-frame.s
feat00.s
file.s
global_ctors_dtors.ll
initialised-data.ll
invalid-def.s
invalid-endef.s
invalid-scl-range.s
invalid-scl.s
invalid-type-range.s
invalid-type.s
ir-to-imgrel.ll
label-undefined.s
linker-options.ll IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata. 2017-06-12 20:10:48 +00:00
linkonce-invalid.s
linkonce.s
lit.local.cfg
lset0.s
module-asm.ll
offset.s
pr23025.s
pr28462.s
rdata.ll
relax-reloc.s
relocation-imgrel.s
safeseh.s
secidx.s
secrel32-undef.s [MC] Allow assembling .secidx and .secrel32 for undefined symbols 2017-06-22 21:02:14 +00:00
secrel32.s
secrel-variant.s
section-comdat-conflict2.s
section-comdat-conflict.s
section-comdat.s MC/COFF: Do not emit forward associative section referenceds. 2017-02-17 17:32:54 +00:00
section-invalid-flags.s
section-name-encoding.s
section-passthru-flags.s
section.s [MC] Handle discardable COFF sections in assembly 2016-09-14 22:41:50 +00:00
seh-align1.s
seh-align2.s
seh-align3.s
seh-linkonce.s
seh-section-2.s
seh-section.s
seh-stackalloc-zero.s [SEH] Use reportError instead of report_fatal_error for bad directives 2017-10-10 01:26:25 +00:00
seh.s
simple-fixups.s
stdin.s
switch-relocations.ll
symbol-alias.s
symbol-fragment-offset-64.s
symbol-fragment-offset.s
symbol-mangling.ll
temporary-alias.s
timestamp.s
tricky-names.ll
weak-alias-local.s
weak-val.s
weak.s