llvm/test/Instrumentation/MemorySanitizer
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
..
X86 [msan] A no-op implementation of VarArg handling. 2013-05-21 12:27:47 +00:00
array_types.ll [msan] Fix handling of array types. 2014-07-31 11:02:27 +00:00
atomics.ll IR: add "cmpxchg weak" variant to support permitted failure. 2014-06-13 14:24:07 +00:00
byval-alignment.ll [msan] Fix handling of byval arguments with large alignment. 2014-10-17 23:29:44 +00:00
check_access_address.ll Use multiple filecheck prefixes in msan instrumentation tests. 2013-11-21 11:37:16 +00:00
check-constant-shadow.ll [msan] Make -msan-check-constant-shadow a bit stronger. 2014-10-24 23:34:15 +00:00
instrumentation-with-call-threshold.ll [msan] Fix bad interaction between with-calls mode and chained origin tracking. 2014-06-25 14:41:57 +00:00
missing_origin.ll [msan] Fix origin propagation for select of floats. 2014-11-28 11:17:58 +00:00
msan_basic.ll Revert r215415 which causse MSan to crash on a great deal of C++ code. 2014-08-13 09:19:39 +00:00
mul_by_constant.ll [msan] Fix handling of multiplication by a constant with a number of trailing zeroes. 2014-06-17 09:23:12 +00:00
origin-alignment.ll [msan] Avoid extra origin address realignment. 2014-12-05 14:34:03 +00:00
return_from_main.ll [msan] Check return value of main(). 2013-09-16 13:24:32 +00:00
store-origin.ll IR: Make metadata typeless in assembly 2014-12-15 19:07:53 +00:00
unreachable.ll Fix llvm::removeUnreachableBlocks to handle unreachable loops. 2013-03-22 08:43:04 +00:00
vector_arith.ll [msan] Handle X86 *.psad.* and *.pmadd.* intrinsics. 2014-06-18 12:02:29 +00:00
vector_cvt.ll [msan] Instrument x86.*_cvt* intrinsics. 2013-10-14 15:16:25 +00:00
vector_pack.ll [msan] Fix vector pack intrinsic handling. 2014-06-09 08:40:16 +00:00
vector_shift.ll [msan] Add missing attributes in MemorySanitizer tests. 2014-07-03 11:49:50 +00:00