[PATCH] D45024: [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label.
Hsiangkai Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 11 07:17:28 PDT 2018
HsiangKai updated this revision to Diff 142000.
HsiangKai added a comment.
Add DILabel list to DISubprogram. The new DISubprogram will be
DISubprogram(..., variables: !7, labels: !8)
To maintain all local entities of the function in one list is not trivial modification. I think it should not relate to label debugging. The refactoring of these lists into one should be another patch.
So, to enable label debugging, I use a separate list to maintain labels in the function. I add a test case in https://reviews.llvm.org/D45045 under Clang repo.
Repository:
rL LLVM
https://reviews.llvm.org/D45024
Files:
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/IR/DIBuilder.h
include/llvm/IR/DebugInfoMetadata.h
include/llvm/IR/InstVisitor.h
include/llvm/IR/IntrinsicInst.h
include/llvm/IR/Intrinsics.td
include/llvm/IR/Metadata.def
lib/Analysis/ObjCARCInstKind.cpp
lib/Analysis/ValueTracking.cpp
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/MetadataLoader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/CodeGen/IntrinsicLowering.cpp
lib/IR/AsmWriter.cpp
lib/IR/DIBuilder.cpp
lib/IR/DebugInfoMetadata.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Verifier.cpp
lib/Transforms/Utils/Local.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
test/DebugInfo/Generic/debug-label-bitcode.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45024.142000.patch
Type: text/x-patch
Size: 42396 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180411/b6cbfa22/attachment.bin>
More information about the llvm-commits
mailing list