LLVM 23.0.0git
llvm::MachineIDFSSAUpdater Class Reference

#include "llvm/CodeGen/MachineIDFSSAUpdater.h"

Public Member Functions

 MachineIDFSSAUpdater (MachineDominatorTree &DT, MachineFunction &MF, const MachineRegisterInfo::VRegAttrs &RegAttr)
 MachineIDFSSAUpdater (MachineDominatorTree &DT, MachineFunction &MF, Register Reg)
void addAvailableValue (MachineBasicBlock *BB, Register V)
 Indicate that a rewritten value is available in the specified block with the specified value.
void addUseBlock (MachineBasicBlock *BB)
 Record a basic block that uses the value.
void calculate ()
 Calculate and insert necessary PHI nodes for SSA form.
Register getValueInMiddleOfBlock (MachineBasicBlock *BB)
 See SSAUpdater::GetValueInMiddleOfBlock description.

Detailed Description

Definition at line 28 of file MachineIDFSSAUpdater.h.

Constructor & Destructor Documentation

◆ MachineIDFSSAUpdater() [1/2]

llvm::MachineIDFSSAUpdater::MachineIDFSSAUpdater ( MachineDominatorTree & DT,
MachineFunction & MF,
const MachineRegisterInfo::VRegAttrs & RegAttr )
inline

Definition at line 51 of file MachineIDFSSAUpdater.h.

Referenced by MachineIDFSSAUpdater().

◆ MachineIDFSSAUpdater() [2/2]

llvm::MachineIDFSSAUpdater::MachineIDFSSAUpdater ( MachineDominatorTree & DT,
MachineFunction & MF,
Register Reg )
inline

Definition at line 56 of file MachineIDFSSAUpdater.h.

References MachineIDFSSAUpdater(), and Reg.

Member Function Documentation

◆ addAvailableValue()

void llvm::MachineIDFSSAUpdater::addAvailableValue ( MachineBasicBlock * BB,
Register V )
inline

Indicate that a rewritten value is available in the specified block with the specified value.

Must be called before invoking Calculate().

Definition at line 62 of file MachineIDFSSAUpdater.h.

◆ addUseBlock()

void llvm::MachineIDFSSAUpdater::addUseBlock ( MachineBasicBlock * BB)
inline

Record a basic block that uses the value.

This method should be called for every basic block where the value will be used. Must be called before invoking Calculate().

Definition at line 69 of file MachineIDFSSAUpdater.h.

◆ calculate()

◆ getValueInMiddleOfBlock()

Register MachineIDFSSAUpdater::getValueInMiddleOfBlock ( MachineBasicBlock * BB)

See SSAUpdater::GetValueInMiddleOfBlock description.

Definition at line 184 of file MachineIDFSSAUpdater.cpp.


The documentation for this class was generated from the following files: