[PATCH] D37075: Parse and print DIExpressions inline to ease IR and MIR testing

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 23 11:55:22 PDT 2017


rnk created this revision.
Herald added subscribers: hiraditya, eraman, javed.absar, qcolombet.

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.


https://reviews.llvm.org/D37075

Files:
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/CodeGen/MIRParser/MILexer.cpp
  llvm/lib/CodeGen/MIRParser/MILexer.h
  llvm/lib/CodeGen/MIRParser/MIParser.cpp
  llvm/lib/IR/AsmWriter.cpp
  llvm/test/Assembler/DIGlobalVariableExpression.ll
  llvm/test/Assembler/diexpression.ll
  llvm/test/Assembler/invalid-diexpression-verify.ll
  llvm/test/Bitcode/DIExpression-aggresult.ll
  llvm/test/Bitcode/DIGlobalVariableExpression.ll
  llvm/test/Bitcode/diglobalvariable-3.8.ll
  llvm/test/Bitcode/upgrade-dbg-value.ll
  llvm/test/CodeGen/AArch64/GlobalISel/debug-insts.ll
  llvm/test/CodeGen/AArch64/GlobalISel/regbankselect-dbg-value.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir
  llvm/test/CodeGen/MIR/X86/instructions-debug-location.mir
  llvm/test/CodeGen/MIR/X86/metadata-operands.mir
  llvm/test/CodeGen/MIR/X86/stack-object-debug-info.mir
  llvm/test/CodeGen/X86/lea-opt-with-debug.mir
  llvm/test/CodeGen/X86/post-ra-sched-with-debug.mir
  llvm/test/DebugInfo/ARM/sroa-complex.ll
  llvm/test/DebugInfo/Generic/global-sra-array.ll
  llvm/test/DebugInfo/Generic/global-sra-struct.ll
  llvm/test/DebugInfo/MIR/X86/live-debug-values-3preds.mir
  llvm/test/DebugInfo/MIR/X86/live-debug-values-spill.mir
  llvm/test/DebugInfo/MIR/X86/live-debug-values.mir
  llvm/test/DebugInfo/MIR/X86/livedebugvalues-limit.mir
  llvm/test/DebugInfo/MSP430/sdagsplit-1.ll
  llvm/test/DebugInfo/X86/array2.ll
  llvm/test/DebugInfo/X86/bbjoin.ll
  llvm/test/DebugInfo/X86/safestack-byval.ll
  llvm/test/DebugInfo/X86/sdagsplit-1.ll
  llvm/test/DebugInfo/X86/sroasplit-1.ll
  llvm/test/DebugInfo/X86/sroasplit-2.ll
  llvm/test/DebugInfo/X86/sroasplit-3.ll
  llvm/test/DebugInfo/X86/sroasplit-4.ll
  llvm/test/Instrumentation/AddressSanitizer/debug_info.ll
  llvm/test/Transforms/GlobalMerge/debug-info.ll
  llvm/test/Transforms/Inline/inline_dbg_declare.ll
  llvm/test/Transforms/InstCombine/debuginfo-dce.ll
  llvm/test/Transforms/LoopRotate/phi-dbgvalue.ll
  llvm/test/Transforms/Mem2Reg/debug-alloca-phi.ll
  llvm/test/Transforms/MergeFunc/mergefunc-preserve-debug-info.ll
  llvm/test/Transforms/SROA/dbg-single-piece.ll
  llvm/test/Transforms/SafeStack/X86/debug-loc-dynamic.ll
  llvm/test/Transforms/SafeStack/X86/debug-loc.ll
  llvm/test/Transforms/SafeStack/X86/debug-loc2.ll
  llvm/test/Transforms/Util/split-bit-piece.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37075.112415.patch
Type: text/x-patch
Size: 77179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170823/eaf442b4/attachment.bin>


More information about the llvm-commits mailing list