[all-commits] [llvm/llvm-project] af9e52: [DebugInfo][NFC] Add RawLocationWrapper to wrap lo...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Thu Mar 16 02:56:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af9e52208d76fa9ddcf68564ab5371f6434c62e5
      https://github.com/llvm/llvm-project/commit/af9e52208d76fa9ddcf68564ab5371f6434c62e5
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicInst.h
    M llvm/lib/IR/IntrinsicInst.cpp

  Log Message:
  -----------
  [DebugInfo][NFC] Add RawLocationWrapper to wrap location operand metadata [1/x]

RawLocationWrapper wraps the location operand of a debug intrinsic which may be
either (wrapped in MetadataAsValue) a DIArgList, ValueAsMetadata, or an empty
MDTuple. This class lets us avoid duplicating location handling code in a later
patch in this stack.

Reviewed By: StephenTozer

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


  Commit: 7d894374551f6d5787db0aef2da8dd6aefa616fb
      https://github.com/llvm/llvm-project/commit/7d894374551f6d5787db0aef2da8dd6aefa616fb
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/AssignmentTrackingAnalysis.h
    M llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

  Log Message:
  -----------
  [Assignment Tracking][NFC] Use RawLocationWrapper in VarLocInfo [2/x]

Use RawLocationWrapper rather than a Value to represent the location operand(s)
so that it's possible to represent multiple location
operands. AssignmentTrackingAnalysis still converts variadic debug intrinsics
to kill locations so this patch is NFC.

Reviewed By: StephenTozer

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


  Commit: 47b99b7fc095753104b17f51fe54e4adf07acd45
      https://github.com/llvm/llvm-project/commit/47b99b7fc095753104b17f51fe54e4adf07acd45
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
    M llvm/test/DebugInfo/X86/debug_value_list_selectiondag.ll

  Log Message:
  -----------
  [Assignment Tracking] Do not convert variadic locations to kill locations [3/x]

Reviewed By: StephenTozer

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


  Commit: 44e03d64881730430c83aee9bff95f1d855660f8
      https://github.com/llvm/llvm-project/commit/44e03d64881730430c83aee9bff95f1d855660f8
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/test/DebugInfo/Generic/assignment-tracking/salvage-value.ll

  Log Message:
  -----------
  [Assignment Tracking] Allow salvaging with variadic expressions [4/x]

Allow the value-component of a dbg.assign to be salvaged using a variadic
DIExpression.

Reviewed By: StephenTozer

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


Compare: https://github.com/llvm/llvm-project/compare/d4320cb2a5ef...44e03d648817


More information about the All-commits mailing list