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

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Thu Nov 3 04:24:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e53c4c6d8617145c4dd8d428bf47544ba4110eb5
      https://github.com/llvm/llvm-project/commit/e53c4c6d8617145c4dd8d428bf47544ba4110eb5
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2022-11-03 (Thu, 03 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