[PATCH] D116404: [IR] Add DICallSiteParam and new params field to DILocation

Milica Lazarevic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 30 05:03:54 PST 2021


milica-lazarevic created this revision.
milica-lazarevic added reviewers: Orlando, jmorse, djtodoro, aprantl.
Herald added a reviewer: deadalnix.
Herald added subscribers: dexonsmith, hiraditya.
milica-lazarevic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

New kind of MDNode - DICallSiteParam has been added. DICallSiteParam should describe function arguments at call site, whenever it's posible. It coresponds to DWARF tag DW_TAG_call_site_parameter.

New params field has been added to DILocation type. Params field represents an array of DICallSiteParam elements. It should be attached to call instructions and describe values that has being passed to function. Later in pipeline, we're trying to interpret those caller site values as DWARF tag DW_TAG_call_site_parameter.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116404

Files:
  llvm/include/llvm-c/DebugInfo.h
  llvm/include/llvm/Bitcode/LLVMBitCodes.h
  llvm/include/llvm/IR/DebugInfoMetadata.h
  llvm/include/llvm/IR/Metadata.def
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/Bitcode/Reader/MetadataLoader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/lib/IR/LLVMContextImpl.h
  llvm/lib/IR/Verifier.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116404.396648.patch
Type: text/x-patch
Size: 20056 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211230/5b042dcc/attachment.bin>


More information about the llvm-commits mailing list