OSDN Git Service

Remove the obsolete offset parameter from @llvm.dbg.value
authorAdrian Prantl <aprantl@apple.com>
Fri, 28 Jul 2017 20:21:02 +0000 (20:21 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 28 Jul 2017 20:21:02 +0000 (20:21 +0000)
commit5d0334a48ca57a6d1fe799f120629ea06563239c
tree702c37b002e5b3ab9e39ea72e2203906df4cf8a4
parent2976ab9c15e4bf2274442f42a0a1094a41e294d5
Remove the obsolete offset parameter from @llvm.dbg.value

There is no situation where this rarely-used argument cannot be
substituted with a DIExpression and removing it allows us to simplify
the DWARF backend. Note that this patch does not yet remove any of
the newly dead code.

rdar://problem/33580047
Differential Revision: https://reviews.llvm.org/D35951

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309426 91177308-0d34-0410-b5e6-96231b3b80d8
173 files changed:
docs/LangRef.rst
docs/SourceLevelDebugging.rst
include/llvm/IR/DIBuilder.h
include/llvm/IR/IntrinsicInst.h
include/llvm/IR/Intrinsics.td
lib/CodeGen/GlobalISel/IRTranslator.cpp
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/IR/AutoUpgrade.cpp
lib/IR/DIBuilder.cpp
lib/Transforms/Utils/Local.cpp
test/Bitcode/upgrade-dbg-value.ll [new file with mode: 0644]
test/Bitcode/upgrade-dbg-value.ll.bc [new file with mode: 0644]
test/CodeGen/ARM/2010-04-15-ScavengerDebugValue.ll
test/CodeGen/ARM/2010-06-25-Thumb2ITInvalidIterator.ll
test/CodeGen/ARM/2010-08-04-StackVariable.ll
test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll
test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll
test/CodeGen/ARM/2016-08-24-ARM-LDST-dbginfo-bug.ll
test/CodeGen/ARM/coalesce-dbgvalue.ll
test/CodeGen/ARM/debug-info-arg.ll
test/CodeGen/ARM/debug-info-blocks.ll
test/CodeGen/ARM/debug-info-branch-folding.ll
test/CodeGen/ARM/debug-info-d16-reg.ll
test/CodeGen/ARM/debug-info-qreg.ll
test/CodeGen/ARM/debug-info-s16-reg.ll
test/CodeGen/ARM/debug-info-sreg2.ll
test/DebugInfo/AArch64/cfi-eof-prologue.ll
test/DebugInfo/AArch64/coalescing.ll
test/DebugInfo/AArch64/frameindices.ll
test/DebugInfo/AMDGPU/dbg-value-sched-crash.ll
test/DebugInfo/ARM/PR16736.ll
test/DebugInfo/ARM/PR26163.ll
test/DebugInfo/ARM/cfi-eof-prologue.ll
test/DebugInfo/ARM/float-args.ll
test/DebugInfo/ARM/lowerbdgdeclare_vla.ll
test/DebugInfo/ARM/partial-subreg.ll
test/DebugInfo/ARM/s-super-register.ll
test/DebugInfo/ARM/split-complex.ll
test/DebugInfo/ARM/sroa-complex.ll
test/DebugInfo/COFF/comdat.ll
test/DebugInfo/COFF/fp-stack.ll
test/DebugInfo/COFF/local-constant.ll
test/DebugInfo/COFF/local-variable-gap.ll
test/DebugInfo/COFF/pieces.ll
test/DebugInfo/COFF/register-variables.ll
test/DebugInfo/COFF/types-calling-conv.ll
test/DebugInfo/Generic/2009-11-10-CurrentFn.ll
test/DebugInfo/Generic/2010-05-03-OriginDIE.ll
test/DebugInfo/Generic/2010-06-29-InlinedFnLocalVar.ll
test/DebugInfo/Generic/dead-argument-order.ll
test/DebugInfo/Generic/gvn.ll
test/DebugInfo/Generic/incorrect-variable-debugloc.ll
test/DebugInfo/Generic/incorrect-variable-debugloc1.ll
test/DebugInfo/Generic/inlined-arguments.ll
test/DebugInfo/Generic/inlined-vars.ll
test/DebugInfo/Generic/missing-abstract-variable.ll
test/DebugInfo/Generic/piece-verifier.ll
test/DebugInfo/Generic/recursive_inlining.ll
test/DebugInfo/Generic/sugared-constants.ll
test/DebugInfo/Generic/two-cus-from-same-file.ll
test/DebugInfo/Mips/InlinedFnLocalVar.ll
test/DebugInfo/Mips/delay-slot.ll
test/DebugInfo/Mips/dsr-fixed-objects.ll
test/DebugInfo/X86/DW_AT_calling-convention.ll
test/DebugInfo/X86/DW_AT_location-reference.ll
test/DebugInfo/X86/InlinedFnLocalVar.ll
test/DebugInfo/X86/PR26148.ll
test/DebugInfo/X86/array.ll
test/DebugInfo/X86/array2.ll
test/DebugInfo/X86/bbjoin.ll
test/DebugInfo/X86/block-capture.ll
test/DebugInfo/X86/constant-aggregate.ll
test/DebugInfo/X86/constant-loclist.ll
test/DebugInfo/X86/dbg-const-int.ll
test/DebugInfo/X86/dbg-const.ll
test/DebugInfo/X86/dbg-i128-const.ll
test/DebugInfo/X86/dbg-merge-loc-entry.ll
test/DebugInfo/X86/dbg-value-const-byref.ll
test/DebugInfo/X86/dbg-value-dag-combine.ll
test/DebugInfo/X86/dbg-value-frame-index.ll
test/DebugInfo/X86/dbg-value-g-gmlt.ll
test/DebugInfo/X86/dbg-value-inlined-parameter.ll
test/DebugInfo/X86/dbg-value-isel.ll
test/DebugInfo/X86/dbg-value-location.ll
test/DebugInfo/X86/dbg-value-range.ll
test/DebugInfo/X86/dbg-value-regmask-clobber.ll
test/DebugInfo/X86/dbg-value-terminator.ll
test/DebugInfo/X86/debug-info-blocks.ll
test/DebugInfo/X86/debug-loc-frame.ll
test/DebugInfo/X86/debug-ranges-offset.ll
test/DebugInfo/X86/deleted-bit-piece.ll
test/DebugInfo/X86/dw_op_minus_direct.ll
test/DebugInfo/X86/dwarf-aranges-no-dwarf-labels.ll
test/DebugInfo/X86/earlydup-crash.ll
test/DebugInfo/X86/elf-names.ll
test/DebugInfo/X86/fission-ranges.ll
test/DebugInfo/X86/float_const.ll
test/DebugInfo/X86/float_const_loclist.ll
test/DebugInfo/X86/formal_parameter.ll
test/DebugInfo/X86/ghost-sdnode-dbgvalues.ll
test/DebugInfo/X86/inlined-formal-parameter.ll
test/DebugInfo/X86/live-debug-values.ll
test/DebugInfo/X86/mi-print.ll
test/DebugInfo/X86/misched-dbg-value.ll
test/DebugInfo/X86/multiple-at-const-val.ll
test/DebugInfo/X86/nodebug_with_debug_loc.ll
test/DebugInfo/X86/nophysreg.ll
test/DebugInfo/X86/partial-constant.ll
test/DebugInfo/X86/pieces-1.ll
test/DebugInfo/X86/pieces-2.ll
test/DebugInfo/X86/pieces-3.ll
test/DebugInfo/X86/pieces-4.ll
test/DebugInfo/X86/pr28270.ll
test/DebugInfo/X86/reference-argument.ll
test/DebugInfo/X86/rematerialize.ll
test/DebugInfo/X86/safestack-byval.ll
test/DebugInfo/X86/single-dbg_value.ll
test/DebugInfo/X86/sroasplit-1.ll
test/DebugInfo/X86/sroasplit-2.ll
test/DebugInfo/X86/sroasplit-3.ll
test/DebugInfo/X86/sroasplit-4.ll
test/DebugInfo/X86/stack-value-dwarf2.ll
test/DebugInfo/X86/stack-value-piece.ll
test/DebugInfo/X86/subreg.ll
test/DebugInfo/X86/subregisters.ll
test/DebugInfo/X86/this-stack_value.ll
test/DebugInfo/X86/union-const.ll
test/Transforms/ADCE/debug-info-intrinsic.ll
test/Transforms/ArgumentPromotion/pr33641_remove_arg_dbgvalue.ll
test/Transforms/BDCE/dbg-multipleuses.ll
test/Transforms/BDCE/pr26587.ll
test/Transforms/Coroutines/coro-split-dbg.ll
test/Transforms/DeadArgElim/2010-04-30-DbgInfo.ll
test/Transforms/DeadArgElim/dbginfo.ll
test/Transforms/DeadStoreElimination/inst-limits.ll
test/Transforms/GlobalOpt/2009-03-05-dbg.ll
test/Transforms/GlobalOpt/localize-constexpr-debuginfo.ll
test/Transforms/Inline/alloca-dbgdeclare.ll
test/Transforms/Inline/ignore-debug-info.ll
test/Transforms/Inline/local-as-metadata-undominated-use.ll
test/Transforms/InstCombine/debuginfo-dce.ll
test/Transforms/InstCombine/debuginfo-skip.ll
test/Transforms/LICM/debug-value.ll
test/Transforms/LoopIdiom/debug-line.ll
test/Transforms/LoopReroll/reroll_with_dbg.ll
test/Transforms/LoopRotate/dbgvalue.ll
test/Transforms/LoopRotate/phi-dbgvalue.ll
test/Transforms/LoopSimplify/dbg-loc.ll
test/Transforms/LoopStrengthReduce/pr12018.ll
test/Transforms/LoopVectorize/dbg.value.ll
test/Transforms/LoopVectorize/debugloc.ll
test/Transforms/Mem2Reg/ConvertDebugInfo.ll
test/Transforms/Mem2Reg/debug-alloca-phi.ll
test/Transforms/MergeFunc/mergefunc-preserve-debug-info.ll
test/Transforms/ObjCARC/allocas.ll
test/Transforms/ObjCARC/basic.ll
test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll
test/Transforms/SROA/dbg-single-piece.ll
test/Transforms/SafeStack/X86/debug-loc-dynamic.ll
test/Transforms/SafeStack/X86/debug-loc2.ll
test/Transforms/Scalarizer/dbginfo.ll
test/Transforms/SimplifyCFG/PR27615-simplify-cond-br.ll
test/Transforms/SimplifyCFG/branch-fold-dbg.ll
test/Transforms/SimplifyCFG/hoist-dbgvalue.ll
test/Transforms/SimplifyCFG/sink-common-code.ll
test/Transforms/StripSymbols/2010-06-30-StripDebug.ll
test/Transforms/StripSymbols/strip-dead-debug-info.ll
test/Transforms/Util/simplify-dbg-declare-load.ll
test/Transforms/Util/split-bit-piece.ll
test/Transforms/Util/strip-nonlinetable-debuginfo-loops.ll
test/Verifier/llvm.dbg.intrinsic-dbg-attachment.ll
unittests/Transforms/Utils/Cloning.cpp