diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-12-17 20:41:09 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-12-17 20:41:09 +0000 |
commit | 312c0ed19cc5276a17bacf2120097bec4515b0f1 (patch) | |
tree | e6e4a4163840b73ba54bb0d3b70ee4899e4b7434 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h | |
parent | b1c73532ee8997fe5dfbeb7d223027bdf99758a0 (diff) | |
download | src-312c0ed19cc5276a17bacf2120097bec4515b0f1.tar.gz src-312c0ed19cc5276a17bacf2120097bec4515b0f1.zip |
Vendor import of llvm-project main llvmorg-18-init-15088-gd14ee76181fb.vendor/llvm-project/llvmorg-18-init-15088-gd14ee76181fb
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h index 5e94962f9d7e..d6dbb1feda3e 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h @@ -205,11 +205,11 @@ namespace LiveDebugValues { using namespace llvm; /// Type for a table of values in a block. -using ValueTable = std::unique_ptr<ValueIDNum[]>; +using ValueTable = SmallVector<ValueIDNum, 0>; /// Type for a table-of-table-of-values, i.e., the collection of either /// live-in or live-out values for each block in the function. -using FuncValueTable = std::unique_ptr<ValueTable[]>; +using FuncValueTable = SmallVector<ValueTable, 0>; /// Thin wrapper around an integer -- designed to give more type safety to /// spill location numbers. @@ -1200,12 +1200,12 @@ private: /// exists, otherwise returns std::nullopt. std::optional<ValueIDNum> getValueForInstrRef(unsigned InstNo, unsigned OpNo, MachineInstr &MI, - const ValueTable *MLiveOuts, - const ValueTable *MLiveIns); + const FuncValueTable *MLiveOuts, + const FuncValueTable *MLiveIns); /// Observe a single instruction while stepping through a block. - void process(MachineInstr &MI, const ValueTable *MLiveOuts, - const ValueTable *MLiveIns); + void process(MachineInstr &MI, const FuncValueTable *MLiveOuts, + const FuncValueTable *MLiveIns); /// Examines whether \p MI is a DBG_VALUE and notifies trackers. /// \returns true if MI was recognized and processed. @@ -1213,8 +1213,8 @@ private: /// Examines whether \p MI is a DBG_INSTR_REF and notifies trackers. /// \returns true if MI was recognized and processed. - bool transferDebugInstrRef(MachineInstr &MI, const ValueTable *MLiveOuts, - const ValueTable *MLiveIns); + bool transferDebugInstrRef(MachineInstr &MI, const FuncValueTable *MLiveOuts, + const FuncValueTable *MLiveIns); /// Stores value-information about where this PHI occurred, and what /// instruction number is associated with it. @@ -1246,14 +1246,14 @@ private: /// \p InstrNum Debug instruction number defined by DBG_PHI instructions. /// \returns The machine value number at position Here, or std::nullopt. std::optional<ValueIDNum> resolveDbgPHIs(MachineFunction &MF, - const ValueTable *MLiveOuts, - const ValueTable *MLiveIns, + const FuncValueTable &MLiveOuts, + const FuncValueTable &MLiveIns, MachineInstr &Here, uint64_t InstrNum); std::optional<ValueIDNum> resolveDbgPHIsImpl(MachineFunction &MF, - const ValueTable *MLiveOuts, - const ValueTable *MLiveIns, + const FuncValueTable &MLiveOuts, + const FuncValueTable &MLiveIns, MachineInstr &Here, uint64_t InstrNum); |