llvm-project/llvm/test/Transforms/SLPVectorizer/AArch64
Shiva Chen 2c864551df [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label.
In order to set breakpoints on labels and list source code around
labels, we need collect debug information for labels, i.e., label
name, the function label belong, line number in the file, and the
address label located. In order to keep these information in LLVM
IR and to allow backend to generate debug information correctly.
We create a new kind of metadata for labels, DILabel. The format
of DILabel is

!DILabel(scope: !1, name: "foo", file: !2, line: 3)

We hope to keep debug information as much as possible even the
code is optimized. So, we create a new kind of intrinsic for label
metadata to avoid the metadata is eliminated with basic block.
The intrinsic will keep existing if we keep it from optimized out.
The format of the intrinsic is

llvm.dbg.label(metadata !1)

It has only one argument, that is the DILabel metadata. The
intrinsic will follow the label immediately. Backend could get the
label metadata through the intrinsic's parameter.

We also create DIBuilder API for labels to be used by Frontend.
Frontend could use createLabel() to allocate DILabel objects, and use
insertLabel() to insert llvm.dbg.label intrinsic in LLVM IR.

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

Patch by Hsiangkai Wang.

llvm-svn: 331841
2018-05-09 02:40:45 +00:00
..
64-bit-vector.ll
commute.ll
ext-trunc.ll [SLP] Use getExtractWithExtendCost() to compute the scalar cost of extractelement/ext pair 2018-04-16 18:09:49 +00:00
gather-cost.ll [SLP] Stop counting cost of gather sequences with multiple uses 2018-03-23 14:18:27 +00:00
gather-reduce.ll [SLP] Add/update tests for SLP vectorizer, NFC. 2018-01-10 21:29:18 +00:00
gather-root.ll [SLP] Take user instructions cost into consideration in insertelement vectorization. 2018-02-12 14:54:48 +00:00
getelementptr.ll [SLP] Added more missed optimization remarks 2017-11-15 17:04:53 +00:00
horizontal.ll [AArch64] Implement getArithmeticReductionCost 2018-03-16 11:34:15 +00:00
lit.local.cfg
load-store-q.ll
matmul.ll [AArch64] fix IR names to not be 'tmp' because that gives the CHECK script problems 2018-02-21 20:48:14 +00:00
minimum-sizes.ll
mismatched-intrinsics.ll
nontemporal.ll
remarks.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
sdiv-pow2.ll
spillcost-di.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
transpose.ll [SLP] Add additional test for transposable binary operations with reuse 2018-05-01 15:59:26 +00:00
tsc-s352.ll [AArch64] add SLP test based on TSVC; NFC 2018-02-27 18:06:15 +00:00