llvm-project/llvm/test/Instrumentation/MemorySanitizer
James Y Knight c0e6b8ac3a IR: Support parsing numeric block ids, and emit them in textual output.
Just as as llvm IR supports explicitly specifying numeric value ids
for instructions, and emits them by default in textual output, now do
the same for blocks.

This is a slightly incompatible change in the textual IR format.

Previously, llvm would parse numeric labels as string names. E.g.
  define void @f() {
    br label %"55"
  55:
    ret void
  }
defined a label *named* "55", even without needing to be quoted, while
the reference required quoting. Now, if you intend a block label which
looks like a value number to be a name, you must quote it in the
definition too (e.g. `"55":`).

Previously, llvm would print nameless blocks only as a comment, and
would omit it if there was no predecessor. This could cause confusion
for readers of the IR, just as unnamed instructions did prior to the
addition of "%5 = " syntax, back in 2008 (PR2480).

Now, it will always print a label for an unnamed block, with the
exception of the entry block. (IMO it may be better to print it for
the entry-block as well. However, that requires updating many more
tests.)

Thus, the following is supported, and is the canonical printing:
  define i32 @f(i32, i32) {
    %3 = add i32 %0, %1
    br label %4

  4:
    ret i32 %3
  }

New test cases covering this behavior are added, and other tests
updated as required.

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

llvm-svn: 356789
2019-03-22 18:27:13 +00:00
..
AArch64 [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
Mips [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
PowerPC [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
X86 [NewPM][MSan] Add Options Handling 2019-02-04 21:02:49 +00:00
alloca.ll [NewPM][MSan] Add Options Handling 2019-02-04 21:02:49 +00:00
array_types.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
atomics.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
bmi.ll [msan] Instrument x86 BMI intrinsics. 2019-03-04 22:58:20 +00:00
byval-alignment.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
check-constant-shadow.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
check_access_address.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
csr.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
global_ctors_2to3.ll [MSan] Apply the ctor creation scheme of TSan 2019-01-16 11:14:07 +00:00
instrumentation-with-call-threshold.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
manual-shadow.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
masked-store-load.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
missing_origin.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
msan_asm_conservative.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
msan_basic.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
msan_kernel_basic.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
msan_llvm_is_constant.ll [MSan] Apply the ctor creation scheme of TSan 2019-01-16 11:14:07 +00:00
msan_x86_bts_asm.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
msan_x86intrinsics.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
mul_by_constant.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
nosanitize.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
origin-alignment.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
origin-array.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
pr32842.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
return_from_main.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
store-long-origin.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
store-origin.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
str-nobuiltin.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
unreachable.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
unsized_type.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_arith.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_cmp.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_cvt.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_pack.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
vector_shift.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00
with-call-type-size.ll [NewPM] Port Msan 2019-01-03 13:42:44 +00:00