llvm-6502/test/DebugInfo/X86
Adrian Prantl 076fd5dfc1 Move the complex address expression out of DIVariable and into an extra
argument of the llvm.dbg.declare/llvm.dbg.value intrinsics.

Previously, DIVariable was a variable-length field that has an optional
reference to a Metadata array consisting of a variable number of
complex address expressions. In the case of OpPiece expressions this is
wasting a lot of storage in IR, because when an aggregate type is, e.g.,
SROA'd into all of its n individual members, the IR will contain n copies
of the DIVariable, all alike, only differing in the complex address
reference at the end.

By making the complex address into an extra argument of the
dbg.value/dbg.declare intrinsics, all of the pieces can reference the
same variable and the complex address expressions can be uniqued across
the CU, too.
Down the road, this will allow us to move other flags, such as
"indirection" out of the DIVariable, too.

The new intrinsics look like this:
declare void @llvm.dbg.declare(metadata %storage, metadata %var, metadata %expr)
declare void @llvm.dbg.value(metadata %storage, i64 %offset, metadata %var, metadata %expr)

This patch adds a new LLVM-local tag to DIExpressions, so we can detect
and pretty-print DIExpression metadata nodes.

What this patch doesn't do:

This patch does not touch the "Indirect" field in DIVariable; but moving
that into the expression would be a natural next step.

http://reviews.llvm.org/D4919
rdar://problem/17994491

Thanks to dblaikie and dexonsmith for reviewing this patch!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218778 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-01 17:55:39 +00:00
..
2010-04-13-PubType.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
2010-08-10-DbgConstant.ll
2011-09-26-GlobalVarContext.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
2011-12-16-BadStructRef.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
aligned_stack_var.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
arange.ll
arguments.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
array2.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
array.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
block-capture.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
byvalstruct.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
c-type-units.ll
coff_debug_info_type.ll Update tests which broke from r218189 2014-09-20 21:18:43 +00:00
coff_relative_names.ll
concrete_out_of_line.ll DebugInfo: Elide lexical scopes which only contain other (inline or lexical) scopes. 2014-08-31 21:26:22 +00:00
cu-ranges-odr.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
cu-ranges.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
data_member_location.ll
dbg_value_direct.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-asm.s MC: correct DWARF line info for PE/COFF 2014-09-06 19:57:48 +00:00
dbg-at-specficiation.ll DebugInfo: Assert that a CU's subprogram list contains only subprograms. 2014-05-14 21:52:37 +00:00
dbg-byval-parameter.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-const-int.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-const.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-declare-arg.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-declare.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-file-name.ll
dbg-i128-const.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-merge-loc-entry.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-prolog-end.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-subrange.ll Implement DW_TAG_subrange_type with DW_AT_count rather than DW_AT_upper_bound 2014-10-01 00:56:55 +00:00
dbg-value-const-byref.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-value-dag-combine.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-value-inlined-parameter.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-value-isel.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-value-location.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-value-range.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dbg-value-terminator.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
debug_frame.ll
debug-dead-local-var.ll Add a comment here. 2014-05-21 00:02:50 +00:00
debug-info-access.ll [ dwarfdump ] Add symbolic dump of known DWARF attribute values. 2014-09-04 19:39:20 +00:00
debug-info-block-captured-self.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
debug-info-blocks.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
debug-info-static-member.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
debug-loc-asan.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
debug-loc-offset.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
debug-ranges-offset.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
decl-derived-member.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
discriminator.ll Use DILexicalBlockFile, rather than DILexicalBlock, to track discriminator changes to ensure discriminator changes don't introduce new DWARF DW_TAG_lexical_blocks. 2014-08-21 22:45:21 +00:00
DW_AT_byte_size.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
DW_AT_linkage_name.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
DW_AT_location-reference.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
DW_AT_object_pointer.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
DW_AT_specification.ll Fix up scoping in a few tests (and delete one that validates unnecessary behavior). 2014-06-24 20:10:27 +00:00
DW_AT_stmt_list_sec_offset.ll
DW_TAG_friend.ll
dwarf-aranges-no-dwarf-labels.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dwarf-aranges.ll
dwarf-public-names.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
dwarf-pubnames-split.ll
earlydup-crash.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
elf-names.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
empty-and-one-elem-array.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
empty-array.ll [ dwarfdump ] Add symbolic dump of known DWARF attribute values. 2014-09-04 19:39:20 +00:00
ending-run.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
enum-class.ll
enum-fwd-decl.ll
fission-cu.ll [dwarfdump] Dump DW_AT_(decl|call)_line attribute values as decimal values. 2014-09-05 07:21:50 +00:00
fission-hash.ll
fission-ranges.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
formal_parameter.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
generate-odr-hash.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
gmlt.test llvm/test/DebugInfo/X86/gmlt.test: Get rid of %llc_dwarf. It should not be used with -mtriple. 2014-10-01 00:29:16 +00:00
gnu-public-names-empty.ll
gnu-public-names.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
inline-member-function.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
inline-seldag-test.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
instcombine-instrinsics.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
lexical_block.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
line-info.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
linkage-name.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
lit.local.cfg Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
low-pc-cu.ll Remove unnecessary regex in test pattern per dblaikie suggestion. 2014-08-29 15:32:15 +00:00
main-file-name.s
misched-dbg-value.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
multiple-aranges.ll
multiple-at-const-val.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
nodebug_with_debug_loc.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
nondefault-subrange-array.ll Implement DW_TAG_subrange_type with DW_AT_count rather than DW_AT_upper_bound 2014-10-01 00:56:55 +00:00
objc-fwd-decl.ll
objc-property-void.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
op_deref.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
parameters.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
pieces-1.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
pieces-2.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
pieces-3.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
pointer-type-size.ll
pr11300.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
pr12831.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
pr13303.ll
pr19307.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
prologue-stack.ll
recursive_inlining.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
ref_addr_relocation.ll
reference-argument.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
rvalue-ref.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
sret.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
stmt-list-multiple-compile-units.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
stmt-list.ll
stringpool.ll
struct-loc.ll
subrange-type.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
subreg.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
subregisters.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
template.ll
tls.ll
type_units_with_addresses.ll Include C++ source for debug info test case committed in r207323 2014-04-26 18:25:07 +00:00
union-template.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00
vector.ll
vla.ll Move the complex address expression out of DIVariable and into an extra 2014-10-01 17:55:39 +00:00