llvm-project/llvm/test/Instrumentation/AddressSanitizer
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
..
X86 Remove ASan asm instrumentation. 2019-03-11 21:50:10 +00:00
adaptive_global_redzones.ll
asan-masked-load-store.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
asan-vs-gvn.ll
asan_address_space_attr.ll
basic-msvc64.ll
basic-myriad.ll
basic.ll [NewPM] Second attempt at porting ASan 2019-02-13 22:22:48 +00:00
debug-info-global-var.ll
debug_info.ll
debug_info_noninstrumented_alloca.ll
debug_info_noninstrumented_alloca2.ll
do-not-instrument-globals-darwin.ll
do-not-instrument-globals-linux.ll
do-not-instrument-internal-globals.ll
do-not-instrument-profiling-globals.ll Rename __asan_gen_* symbols to ___asan_gen_*. 2018-07-18 22:23:14 +00:00
do-not-instrument-promotable-allocas.ll
do-not-instrument-sanitizers.ll
do-not-touch-comdat-global.ll
do-not-touch-odr-global.ll [asan] Don't check ODR violations for particular types of globals 2018-12-13 09:47:39 +00:00
do-not-touch-threadlocal.ll
experiment-call.ll
experiment.ll
force-dynamic-shadow.ll
freebsd.ll [ASAN] Use the correct shadow offset for ASAN on FreeBSD/mips64. 2018-08-01 22:51:13 +00:00
global_cstring_darwin.ll [asan] Prevent folding of globals with redzones 2018-12-20 00:30:18 +00:00
global_lto_merge.ll
global_metadata.ll [asan] Prevent folding of globals with redzones 2018-12-20 00:30:18 +00:00
global_metadata_array.ll [asan] Prevent folding of globals with redzones 2018-12-20 00:30:18 +00:00
global_metadata_bitcasts.ll [asan] In llvm.asan.globals, allow entries to be non-GlobalVariable and skip over them 2018-12-18 21:20:17 +00:00
global_metadata_darwin.ll
global_metadata_external_comdat.ll Fix global_metadata_external_comdat.ll test 2018-08-21 00:03:21 +00:00
global_metadata_windows.ll [asan] Prevent folding of globals with redzones 2018-12-20 00:30:18 +00:00
instrument-dynamic-allocas.ll
instrument-no-return.ll [Sanitizers] UBSan unreachable incompatible with Kernel ASan 2019-02-04 23:37:50 +00:00
instrument-stack.ll
instrument_global.ll Rename __asan_gen_* symbols to ___asan_gen_*. 2018-07-18 22:23:14 +00:00
instrument_initializer_metadata.ll
instrument_load_then_store.ll
instrumentation-with-call-threshold.ll
keep_going.ll
lifetime-throw.ll
lifetime-uar-uas.ll
lifetime.ll
local_alias.ll [asan] Don't check ODR violations for particular types of globals 2018-12-13 09:47:39 +00:00
local_stack_base.ll
localescape.ll [EH] Rename llvm.x86.seh.recoverfp intrinsic to llvm.eh.recoverfp 2019-01-16 00:37:13 +00:00
no-globals.ll
odr-check-ignore.ll [asan] Restore ODR-violation detection on vtables 2018-12-18 22:23:30 +00:00
ps4.ll
scale-offset.ll
stack-poisoning-and-lifetime-be.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
stack-poisoning-and-lifetime.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
stack-poisoning-byval-args.ll
stack-poisoning.ll
stack_dynamic_alloca.ll IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
stack_layout.ll
str-nobuiltin.ll
test64.ll
twice.ll
ubsan.ll
win-sorted-sections.ll [WinASan] Don't instrument globals in sections containing '$' 2018-06-13 20:47:21 +00:00
win-string-literal.ll [asan] Undo special treatment of linkonce_odr and weak_odr 2018-12-20 00:30:27 +00:00
with-ifunc.ll