mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
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! Note: I accidentally committed a bogus older version of this patch previously. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218787 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
2003-05-29-ArrayFail.ll | ||
2003-09-12-IncorrectPromote.ll | ||
2003-10-29-ArrayProblem.ll | ||
2006-11-07-InvalidArrayPromote.ll | ||
2007-05-29-MemcpyPreserve.ll | ||
2007-11-03-bigendian_apint.ll | ||
2008-01-29-PromoteBug.ll | ||
2008-02-28-SubElementExtractCrash.ll | ||
2008-06-05-loadstore-agg.ll | ||
2008-06-22-LargeArray.ll | ||
2008-08-22-out-of-range-array-promote.ll | ||
2008-09-22-vector-gep.ll | ||
2009-02-02-ScalarPromoteOutOfRange.ll | ||
2009-02-05-LoadFCA.ll | ||
2009-03-04-MemCpyAlign.ll | ||
2009-12-11-NeonTypes.ll | ||
2010-01-18-SelfCopy.ll | ||
2011-05-06-CapturedAlloca.ll | ||
2011-06-08-VectorExtractValue.ll | ||
2011-06-17-VectorPartialMemset.ll | ||
2011-09-22-PHISpeculateInvoke.ll | ||
2011-10-11-VectorMemset.ll | ||
2011-10-22-VectorCrash.ll | ||
2011-11-11-EmptyStruct.ll | ||
address-space.ll | ||
AggregatePromote.ll | ||
arraytest.ll | ||
badarray.ll | ||
basictest.ll | ||
bitfield-sroa.ll | ||
copy-aggregate.ll | ||
crash.ll | ||
debuginfo-preserved.ll | ||
DifferingTypes.ll | ||
inline-vector.ll | ||
lifetime.ll | ||
load-store-aggregate.ll | ||
memcpy-align.ll | ||
memset-aggregate-byte-leader.ll | ||
memset-aggregate.ll | ||
negative-memset.ll | ||
nonzero-first-index.ll | ||
not-a-vector.ll | ||
only-memcpy-uses.ll | ||
phi-cycle.ll | ||
phi-select.ll | ||
phinodepromote.ll | ||
select_promote.ll | ||
sroa_two.ll | ||
sroa-fca.ll | ||
union-fp-int.ll | ||
union-packed.ll | ||
union-pointer.ll | ||
vector_memcpy.ll | ||
vector_promote.ll | ||
vectors-with-mismatched-elements.ll | ||
volatile.ll |