1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/MC/COFF
Duncan P. N. Exon Smith 9c5542c040 IR: Make metadata typeless in assembly
Now that `Metadata` is typeless, reflect that in the assembly.  These
are the matching assembly changes for the metadata/value split in
r223802.

  - Only use the `metadata` type when referencing metadata from a call
    intrinsic -- i.e., only when it's used as a `Value`.

  - Stop pretending that `ValueAsMetadata` is wrapped in an `MDNode`
    when referencing it from call intrinsics.

So, assembly like this:

    define @foo(i32 %v) {
      call void @llvm.foo(metadata !{i32 %v}, metadata !0)
      call void @llvm.foo(metadata !{i32 7}, metadata !0)
      call void @llvm.foo(metadata !1, metadata !0)
      call void @llvm.foo(metadata !3, metadata !0)
      call void @llvm.foo(metadata !{metadata !3}, metadata !0)
      ret void, !bar !2
    }
    !0 = metadata !{metadata !2}
    !1 = metadata !{i32* @global}
    !2 = metadata !{metadata !3}
    !3 = metadata !{}

turns into this:

    define @foo(i32 %v) {
      call void @llvm.foo(metadata i32 %v, metadata !0)
      call void @llvm.foo(metadata i32 7, metadata !0)
      call void @llvm.foo(metadata i32* @global, metadata !0)
      call void @llvm.foo(metadata !3, metadata !0)
      call void @llvm.foo(metadata !{!3}, metadata !0)
      ret void, !bar !2
    }
    !0 = !{!2}
    !1 = !{i32* @global}
    !2 = !{!3}
    !3 = !{}

I wrote an upgrade script that handled almost all of the tests in llvm
and many of the tests in cfe (even handling many `CHECK` lines).  I've
attached it (or will attach it in a moment if you're speedy) to PR21532
to help everyone update their out-of-tree testcases.

This is part of PR21532.

llvm-svn: 224257
2014-12-15 19:07:53 +00:00
..
alias.s llvm-readobj: pretty-print special COFF section names 2014-09-20 00:25:06 +00:00
align-nops.s
bad-expr.s
basic-coff-64.s llvm-readobj: pretty-print special COFF section names 2014-09-20 00:25:06 +00:00
basic-coff.s llvm-readobj: pretty-print special COFF section names 2014-09-20 00:25:06 +00:00
bigobj.py MC, COFF: Make bigobj test compatible with python3 2014-10-14 22:35:11 +00:00
bss_section.ll Update tests which broke from r218189 2014-09-20 21:18:43 +00:00
bss.s
comm-align.s COFF: Don't oversize COMMON symbols when targeting BFD ld 2014-10-08 06:38:53 +00:00
comm.ll MC: Support aligned COMMON symbols for COFF 2014-09-21 09:18:07 +00:00
comm.s MC: Support aligned COMMON symbols for COFF 2014-09-21 09:18:07 +00:00
const-gv-with-rel-init.ll MC: ReadOnlyWithRel section kinds should map to rdata in COFF 2014-09-22 20:39:23 +00:00
diff.s
directive-section-characteristics.ll
early-dce.s
eh-frame.s
feat00.s llvm-readobj: pretty-print special COFF section names 2014-09-20 00:25:06 +00:00
file.s llvm-readobj: pretty-print special COFF section names 2014-09-20 00:25:06 +00:00
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 MC: Use @IMGREL instead of @IMGREL32, which we can't parse 2014-09-25 02:09:18 +00:00
linker-options.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
linkonce-invalid.s
linkonce.s
lit.local.cfg
lset0.s
module-asm.ll
offset.s
rdata.ll
relocation-imgrel.s
secidx-diagnostic.s
secidx.s Fix COFF section index relocation should be 16 bits, not 32 2014-10-08 18:01:49 +00:00
secrel32.s
secrel-variant.s
section-comdat-conflict2.s
section-comdat-conflict.s
section-comdat.s
section-invalid-flags.s MC: Diagnose an unexpected token in COFF .section instead of asserting 2014-08-11 18:34:43 +00:00
section-name-encoding.s WinCOFFObjectWriter: optimize the string table for common suffices 2014-09-29 22:43:20 +00:00
section-passthru-flags.s MC: Fix MCSectionCOFF::PrintSwitchToSection 2014-09-20 20:40:50 +00:00
section.s
seh-align1.s
seh-align2.s
seh-align3.s
seh-linkonce.s MC Win64: Put unwind info for COMDAT code into the same COMDAT group 2014-09-04 17:42:03 +00:00
seh-section.s
seh-stackalloc-zero.s
seh.s
simple-fixups.s MC, COFF: Use relocations for function references inside the section 2014-11-11 08:43:57 +00:00
switch-relocations.ll
symbol-alias.s
symbol-fragment-offset-64.s llvm-readobj: pretty-print special COFF section names 2014-09-20 00:25:06 +00:00
symbol-fragment-offset.s llvm-readobj: pretty-print special COFF section names 2014-09-20 00:25:06 +00:00
symbol-mangling.ll
timestamp.s
tricky-names.ll
weak-symbol.ll
weak.s llvm-readobj: pretty-print special COFF section names 2014-09-20 00:25:06 +00:00