1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/MC/WebAssembly
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
..
array-fill.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
basic-assembly.s [WebAssembly] Enabled -triple=wasm32-unknown-unknown-wasm path using ELF directive parser. 2018-04-19 22:00:53 +00:00
blockaddress.ll [WebAssembly] MC: Don't litter test directory. 2018-05-03 08:25:14 +00:00
bss.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
comdat.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
custom-code-section.ll [WebAssembly] MC: Use inline triple in test bitcode files 2018-01-23 23:03:47 +00:00
custom-sections.ll [WebAssembly] libObject: Don't include the name the size of custom sections 2018-04-12 20:31:12 +00:00
debug-info.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
dwarfdump.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
explicit-sections.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
external-data.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
external-func-address.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:19:48 +00:00
file-headers.ll
func-address.ll [WebAssembly] llvm-readobj: display symbols names in relocations 2018-05-01 16:35:16 +00:00
global-ctor-dtor.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
libcall.ll [WebAssembly] Avoid cast ExprType to wasm::ValType 2018-03-02 21:33:14 +00:00
lit.local.cfg
offset.ll [WebAssembly] Only write 32-bits for WebAssembly::OPERAND_OFFSET32 2018-04-04 22:27:58 +00:00
reloc-code.ll [WebAssembly] llvm-readobj: display symbols names in relocations 2018-05-01 16:35:16 +00:00
reloc-data.ll [WebAssembly] llvm-readobj: display symbols names in relocations 2018-05-01 16:35:16 +00:00
sections.ll [WebAssembly] Add first claass symbol table to wasm objects 2018-02-23 05:08:34 +00:00
stack-ptr.ll [WebAssembly] MC: Use inline triple in test bitcode files 2018-01-23 23:03:47 +00:00
unnamed-data.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
visibility.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
weak-alias.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
weak.ll [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00