llvm-project/llvm/test/LTO/Resolution/X86
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
..
Inputs [ThinLTO] - Stop internalizing and drop non-prevailing symbols. 2018-01-29 08:03:30 +00:00
alias.ll
asm-output.ll
cache-dso-local.ll LTO: Include dso-local bit in ThinLTO cache key. 2018-02-05 17:17:51 +00:00
cache-dso-local2.ll LTO: Also include dso-local bit for calls in ThinLTO cache key. 2018-02-05 23:46:32 +00:00
cache-prevailing.ll LTO: Include live bit in ThinLTO cache key. 2018-02-09 05:58:55 +00:00
comdat-mixed-lto.ll [LTO][ThinLTO] Use the linker resolutions to mark global values as dso_local. 2017-11-04 17:04:39 +00:00
comdat.ll Make internal/private GVs implicitly dso_local. 2018-01-11 22:15:05 +00:00
common2.ll [ThinLTO] Disallow multiple prevailing defs 2017-12-15 16:27:33 +00:00
commons.ll [LTO][ThinLTO] Use the linker resolutions to mark global values as dso_local. 2017-11-04 17:04:39 +00:00
dead-strip-alias.ll [LTO] Make processing of combined module more consistent 2017-12-16 02:10:00 +00:00
dead-strip-fulllto.ll [ThinLTO] Disallow multiple prevailing defs 2017-12-15 16:27:33 +00:00
diagnostic-handler-remarks-with-hotness.ll [LTO] Allow pass remarks with hotness to be set when emitting to stderr 2018-05-04 23:59:34 +00:00
diagnostic-handler-remarks.ll [ThinLTO] Add support for optimization remarks to thinBackend 2018-05-03 20:24:12 +00:00
empty-bitcode.test
export-jumptable.ll LTO: Export functions referenced by the CFI jump table. 2017-07-19 18:18:19 +00:00
function-alias-non-prevailing.ll Linker: Create a function declaration when moving a non-prevailing alias of function type. 2017-08-10 01:07:44 +00:00
ifunc.ll [LTO] Make processing of combined module more consistent 2017-12-16 02:10:00 +00:00
intrinsic.ll
link-odr-availextern.ll
linker-redef-thin.ll [LTO] Make processing of combined module more consistent 2017-12-16 02:10:00 +00:00
linker-redef.ll Symbols re-defined with -wrap and -defsym need to be excluded from inter- 2017-06-05 16:24:25 +00:00
linkonce.ll [LTO] Make processing of combined module more consistent 2017-12-16 02:10:00 +00:00
lit.local.cfg
load-sample-prof-icp.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
load-sample-prof.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
lowertypetests.ll Reland r313157, "ThinLTO: Correctly follow aliasee references when dead stripping." which was reverted in r313222. 2017-09-14 05:02:59 +00:00
mixed_lto.ll
mod-asm-used.ll [LTO] Make processing of combined module more consistent 2017-12-16 02:10:00 +00:00
multi-thinlto.ll
not-prevailing-alias.ll [ThinLTO] Convert dead alias to declarations 2018-02-05 15:44:27 +00:00
not-prevailing-variables.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
not-prevailing.ll LTO: Drop comdats when converting definitions to declarations. 2018-01-31 02:51:03 +00:00
setting-dso-local.ll Don't drop dso_local in LTO. 2018-01-18 05:38:43 +00:00
symtab-elf.ll IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata. 2017-06-12 20:10:48 +00:00
symtab.ll Object: Improve COFF irsymtab comdat representation. 2017-11-21 22:06:20 +00:00
type-checked-load.ll