[all-commits] [llvm/llvm-project] a2620e: [Assignment Tracking][3/*] Add DIAssignID metadata...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Mon Nov 7 01:06:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2620e00ffa232a406de3a1d8634beeda86956fd
      https://github.com/llvm/llvm-project/commit/a2620e00ffa232a406de3a1d8634beeda86956fd
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M llvm/include/llvm-c/DebugInfo.h
    M llvm/include/llvm/Bitcode/LLVMBitCodes.h
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/include/llvm/IR/FixedMetadataKinds.def
    M llvm/include/llvm/IR/Metadata.def
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/MetadataLoader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/lib/IR/DebugInfo.cpp
    M llvm/lib/IR/DebugInfoMetadata.cpp
    M llvm/lib/IR/Verifier.cpp
    A llvm/test/DebugInfo/Generic/assignment-tracking/parse-and-verify/distinct.ll
    A llvm/test/DebugInfo/Generic/assignment-tracking/parse-and-verify/instruction-type.ll
    A llvm/test/DebugInfo/Generic/assignment-tracking/parse-and-verify/operands.ll
    A llvm/test/DebugInfo/Generic/assignment-tracking/parse-and-verify/roundtrip.ll

  Log Message:
  -----------
  [Assignment Tracking][3/*] Add DIAssignID metadata boilerplate

The Assignment Tracking debug-info feature is outlined in this RFC:

https://discourse.llvm.org/t/
rfc-assignment-tracking-a-better-way-of-specifying-variable-locations-in-ir

Add the DIAssignID metadata attachment boilerplate. Includes a textual-bitcode
roundtrip test and tests that the verifier and parser catch badly formed IR.

This piece of metadata links together stores (used as an attachment) and the
yet-to-be-added llvm.dbg.assign debug intrinsic (used as an operand).

Reviewed By: jmorse

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




More information about the All-commits mailing list