llvm-6502/test/CodeGen/XCore
Duncan P. N. Exon Smith 1ef70ff39b 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224257 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-15 19:07:53 +00:00
..
2008-11-17-Shl64.ll
2009-01-08-Crash.ll
2009-01-14-Remat-Crash.ll
2009-03-27-v2f64-param.ll
2009-07-15-store192.ll
2010-02-25-LSR-Crash.ll
2011-01-31-DAGCombineBug.ll
2011-08-01-DynamicAllocBug.ll
addsub64.ll
aliases.ll
align.ll [XCore] Prefer to word align functions. 2014-02-25 16:37:15 +00:00
alignment.ll
ashr.ll
atomic.ll Erase fence insertion from SelectionDAGBuilder.cpp (NFC) 2014-10-16 20:34:57 +00:00
basictest.ll
bigstructret.ll [XCore] Support functions returning more than 4 words. 2014-02-27 17:47:54 +00:00
byVal.ll [XCore] Target optimized library function __memcpy_4() 2014-02-27 13:39:07 +00:00
call.ll [XCore] Fix call of absolute address. 2014-03-04 16:50:30 +00:00
codemodel.ll XCore target: fix const section handling 2014-02-11 10:36:26 +00:00
constants.ll
DbgValueOtherTargets.test
dwarf_debug.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
epilogue_prologue.ll [XCore] Don't create invalid MKMSK instructions inside loadImmediate(). 2014-04-14 12:30:35 +00:00
events.ll
exception.ll Fix a bit of confusion about .set and produce more readable assembly. 2014-10-21 01:17:30 +00:00
float-intrinsics.ll
fneg.ll
getid.ll
globals.ll XCore target: fix const section handling 2014-02-11 10:36:26 +00:00
indirectbr.ll
inline-asm.ll [XCore] Add support for the "m" inline asm constraint. 2014-03-06 16:37:48 +00:00
ladd_lsub_combine.ll
licm-ldwcp.ll
linkage.ll XCore target: Handle common linkage 2014-02-18 11:21:59 +00:00
lit.local.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
llvm-intrinsics.ll Reapply "blockfreq: Rewrite BlockFrequencyInfoImpl" 2014-04-21 17:57:07 +00:00
load.ll XCore target: fix const section handling 2014-02-11 10:36:26 +00:00
memcpy.ll [XCore] Target optimized library function __memcpy_4() 2014-02-27 13:39:07 +00:00
misc-intrinsics.ll
mkmsk.ll
mul64.ll
offset_folding.ll
private.ll
ps-intrinsics.ll
resources_combine.ll [XCore] Add dag combines for instructions that ignore some input bits. 2014-02-27 13:20:11 +00:00
resources.ll [XCore] Add intrinsic for CLRPT (clear port time) instruction. 2014-02-25 17:31:15 +00:00
scavenging.ll
sext.ll
shedulingPreference.ll
sr-intrinsics.ll
store.ll
switch_long.ll
switch.ll
threads.ll
tls.ll
trampoline.ll
trap.ll
unaligned_load.ll
unaligned_store_combine.ll
unaligned_store.ll
varargs.ll
zext.ll
zextfree.ll