33 for (
auto *DBI : DbgValues)
34 DBI->getOperand(0).setReg(Reg);
44 MBB->
insert(Insert, Clone);
49 for (
auto *DBI : DbgValues) {
void collectDebugValues(SmallVectorImpl< MachineInstr *> &DbgValues)
Scan instructions immediately following MI and collect any matching DBG_VALUEs.
This class represents lattice values for constants.
void updateReg(unsigned Reg)
This file contains the entry points for global functions defined in the LLVM WebAssembly back-end...
void replaceWithLocal(unsigned LocalId)
WebAssemblyDebugValueManager(MachineInstr *Instr)
auto reverse(ContainerTy &&C, typename std::enable_if< has_rbegin< ContainerTy >::value >::type *=nullptr) -> decltype(make_range(C.rbegin(), C.rend()))
void setReg(Register Reg)
Change the register this operand corresponds to.
instr_iterator insert(instr_iterator I, MachineInstr *M)
Insert MI into the instruction list before I, possibly inside a bundle.
MachineInstr * CloneMachineInstr(const MachineInstr *Orig)
Create a new MachineInstr which is a copy of Orig, identical in all ways except the instruction has n...
MachineOperand class - Representation of each machine instruction operand.
const MachineBasicBlock * getParent() const
Representation of each machine instruction.
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
void splice(iterator Where, MachineBasicBlock *Other, iterator From)
Take an instruction from MBB 'Other' at the position From, and insert it into this MBB right before '...
This file declares WebAssembly-specific per-machine-function information.
void ChangeToTargetIndex(unsigned Idx, int64_t Offset, unsigned TargetFlags=0)
Replace this operand with a target index.
void move(MachineInstr *Insert)
This file contains the declaration of the WebAssembly-specific manager for DebugValues associated wit...
const MachineOperand & getOperand(unsigned i) const
void clone(MachineInstr *Insert, unsigned NewReg)