]> granicus.if.org Git - llvm/commit
Parse and print DIExpressions inline to ease IR and MIR testing
authorReid Kleckner <rnk@google.com>
Wed, 23 Aug 2017 20:31:27 +0000 (20:31 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 23 Aug 2017 20:31:27 +0000 (20:31 +0000)
commita5b2af0eae4529b17c52b45d6f8071bb80ede86d
tree9fc54036c76de7bbcbc00850472b314cd928cfc1
parent35d604386eca9880ec063a79a8c124489278bd1a
Parse and print DIExpressions inline to ease IR and MIR testing

Summary:
Most DIExpressions are empty or very simple. When they are complex, they
tend to be unique, so checking them inline is reasonable.

This also avoids the need for CodeGen passes to append to the
llvm.dbg.mir named md node.

See also PR22780, for making DIExpression not be an MDNode.

Reviewers: aprantl, dexonsmith, dblaikie

Subscribers: qcolombet, javed.absar, eraman, hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D37075

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311594 91177308-0d34-0410-b5e6-96231b3b80d8
48 files changed:
lib/AsmParser/LLParser.cpp
lib/CodeGen/MIRParser/MILexer.cpp
lib/CodeGen/MIRParser/MILexer.h
lib/CodeGen/MIRParser/MIParser.cpp
lib/IR/AsmWriter.cpp
test/Assembler/DIGlobalVariableExpression.ll
test/Assembler/diexpression.ll
test/Assembler/invalid-diexpression-verify.ll
test/Bitcode/DIExpression-aggresult.ll
test/Bitcode/DIGlobalVariableExpression.ll
test/Bitcode/diglobalvariable-3.8.ll
test/Bitcode/upgrade-dbg-value.ll
test/CodeGen/AArch64/GlobalISel/debug-insts.ll
test/CodeGen/AArch64/GlobalISel/regbankselect-dbg-value.mir
test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir
test/CodeGen/MIR/X86/instructions-debug-location.mir
test/CodeGen/MIR/X86/metadata-operands.mir
test/CodeGen/MIR/X86/stack-object-debug-info.mir
test/CodeGen/X86/lea-opt-with-debug.mir
test/CodeGen/X86/post-ra-sched-with-debug.mir
test/DebugInfo/ARM/sroa-complex.ll
test/DebugInfo/Generic/global-sra-array.ll
test/DebugInfo/Generic/global-sra-struct.ll
test/DebugInfo/MIR/X86/live-debug-values-3preds.mir
test/DebugInfo/MIR/X86/live-debug-values-spill.mir
test/DebugInfo/MIR/X86/live-debug-values.mir
test/DebugInfo/MIR/X86/livedebugvalues-limit.mir
test/DebugInfo/MSP430/sdagsplit-1.ll
test/DebugInfo/X86/array2.ll
test/DebugInfo/X86/bbjoin.ll
test/DebugInfo/X86/safestack-byval.ll
test/DebugInfo/X86/sdagsplit-1.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/Instrumentation/AddressSanitizer/debug_info.ll
test/Transforms/GlobalMerge/debug-info.ll
test/Transforms/Inline/inline_dbg_declare.ll
test/Transforms/InstCombine/debuginfo-dce.ll
test/Transforms/LoopRotate/phi-dbgvalue.ll
test/Transforms/Mem2Reg/debug-alloca-phi.ll
test/Transforms/MergeFunc/mergefunc-preserve-debug-info.ll
test/Transforms/SROA/dbg-single-piece.ll
test/Transforms/SafeStack/X86/debug-loc-dynamic.ll
test/Transforms/SafeStack/X86/debug-loc.ll
test/Transforms/SafeStack/X86/debug-loc2.ll
test/Transforms/Util/split-bit-piece.ll