llvm/test/DebugInfo/Generic
Adrian Prantl 460dd60c1a [DIExpression] Introduce a dedicated DW_OP_LLVM_fragment operation
so we can stop using DW_OP_bit_piece with the wrong semantics.

The entire back story can be found here:
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20161114/405934.html

The gist is that in LLVM we've been misinterpreting DW_OP_bit_piece's
offset field to mean the offset into the source variable rather than
the offset into the location at the top the DWARF expression stack. In
order to be able to fix this in a subsequent patch, this patch
introduces a dedicated DW_OP_LLVM_fragment operation with the
semantics that we used to apply to DW_OP_bit_piece, which is what we
actually need while inside of LLVM. This patch is complete with a
bitcode upgrade for expressions using the old format. It does not yet
fix the DWARF backend to use DW_OP_bit_piece correctly.

Implementation note: We discussed several options for implementing
this, including reserving a dedicated field in DIExpression for the
fragment size and offset, but using an custom operator at the end of
the expression works just fine and is more efficient because we then
only pay for it when we need it.

Differential Revision: https://reviews.llvm.org/D27361
rdar://problem/29335809

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288683 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-05 18:04:47 +00:00
..
2009-10-16-Phi.ll
2009-11-03-InsertExtractValue.ll
2009-11-05-DeadGlobalVariable.ll
2009-11-06-NamelessGlobalVariable.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
2009-11-10-CurrentFn.ll
2010-01-05-DbgScope.ll
2010-03-12-llc-crash.ll
2010-03-19-DbgDeclare.ll
2010-03-24-MemberFn.ll
2010-04-06-NestedFnDbgInfo.ll
2010-04-19-FramePtr.ll
2010-05-03-DisableFramePtr.ll
2010-05-03-OriginDIE.ll
2010-05-10-MultipleCU.ll
2010-06-29-InlinedFnLocalVar.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
2010-10-01-crash.ll
accel-table-hash-collisions.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
array.ll
block-asan.ll
bug_null_debuginfo.ll
constant-pointers.ll
constant-sdnodes-have-dbg-location.ll
constantfp-sdnodes-have-dbg-location.ll
cross-cu-inlining.ll
cross-cu-linkonce-distinct.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
cross-cu-linkonce.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
cu-range-hole.ll
cu-ranges.ll
dbg-at-specficiation.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
dead-argument-order.ll
debug-info-always-inline.ll
debug-info-qualifiers.ll
debuginfofinder-forward-declaration.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
debuginfofinder-multiple-cu.ll
def-line.ll
discriminator.ll
dwarf-public-names.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
empty.ll Reverting back r285355: "Update .debug_line section version information to match DWARF version", while I'm investigating a test failure. 2016-10-27 23:20:19 +00:00
enum-types.ll
enum.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
global.ll
gmlt.test
gvn.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
incorrect-variable-debugloc1.ll
incorrect-variable-debugloc.ll
indvar-discriminator.ll [IndVarSimplify][DebugLoc] When widening the exit loop condition, correctly reuse the debug location of the original comparison. 2016-10-26 10:28:32 +00:00
inheritance.ll
inline-debug-info-multiret.ll
inline-debug-info.ll
inline-no-debug-info.ll
inline-scopes.ll
inlined-arguments.ll
inlined-vars.ll
linkage-name-abstract.ll [DWARF] Put linkage-name on abstract origin even when there's a declaration. 2016-12-02 01:55:17 +00:00
lit.local.cfg
location-verifier.ll
lto-comp-dir.ll
mainsubprogram.ll [DebugInfo] Add support for DW_AT_main_subprogram on subprograms 2016-11-28 21:32:19 +00:00
member-order.ll
member-pointers.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
missing-abstract-variable.ll
multiline.ll
namespace_function_definition.ll
namespace_inline_function_definition.ll
namespace.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
nodebug.ll
piece-verifier.ll [DIExpression] Introduce a dedicated DW_OP_LLVM_fragment operation 2016-12-05 18:04:47 +00:00
PR20038.ll
ptrsize.ll
recursive_inlining.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
restrict.ll
skeletoncu.ll
sugared-constants.ll
sunk-compare.ll Preserve the debug location when CodeGenPrepare sinks a compare instruction into the 2016-10-06 21:43:45 +00:00
template-recursive-void.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
tu-composite.ll
tu-member-pointer.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
two-cus-from-same-file.ll
typedef.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
unconditional-branch.ll
varargs.ll
version.ll
virtual-index.ll