1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/LTO/Resolution/X86
Shiva Chen a2029fa58e [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-local2.ll LTO: Also include dso-local bit for calls in ThinLTO cache key. 2018-02-05 23:46:32 +00:00
cache-dso-local.ll LTO: Include dso-local bit in ThinLTO cache key. 2018-02-05 17:17:51 +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
function-alias-non-prevailing.ll
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
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
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
symtab.ll Object: Improve COFF irsymtab comdat representation. 2017-11-21 22:06:20 +00:00
type-checked-load.ll