LLVM 22.0.0git
MachineSSAUpdater.cpp File Reference

Go to the source code of this file.

Classes

class  llvm::SSAUpdaterTraits< MachineSSAUpdater >
 SSAUpdaterTraits<MachineSSAUpdater> - Traits for the SSAUpdaterImpl template, specialized for MachineSSAUpdater. More...
class  llvm::SSAUpdaterTraits< MachineSSAUpdater >::PHI_iterator
 Iterator for PHI operands. More...

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Macros

#define DEBUG_TYPE   "machine-ssaupdater"

Typedefs

using AvailableValsTy = DenseMap<MachineBasicBlock *, Register>

Functions

static AvailableValsTygetAvailableVals (void *AV)
static Register LookForIdenticalPHI (MachineBasicBlock *BB, SmallVectorImpl< std::pair< MachineBasicBlock *, Register > > &PredValues)
static MachineInstrBuilder InsertNewDef (unsigned Opcode, MachineBasicBlock *BB, MachineBasicBlock::iterator I, MachineRegisterInfo::VRegAttrs RegAttrs, MachineRegisterInfo *MRI, const TargetInstrInfo *TII)
 InsertNewDef - Insert an empty PHI or IMPLICIT_DEF instruction which define a value of the given register class at the start of the specified basic block.
static MachineBasicBlockfindCorrespondingPred (const MachineInstr *MI, MachineOperand *U)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "machine-ssaupdater"

Definition at line 35 of file MachineSSAUpdater.cpp.

Typedef Documentation

◆ AvailableValsTy

Function Documentation

◆ findCorrespondingPred()

MachineBasicBlock * findCorrespondingPred ( const MachineInstr * MI,
MachineOperand * U )
static

Definition at line 217 of file MachineSSAUpdater.cpp.

References llvm_unreachable, and MI.

Referenced by llvm::MachineSSAUpdater::RewriteUse().

◆ getAvailableVals()

◆ InsertNewDef()

InsertNewDef - Insert an empty PHI or IMPLICIT_DEF instruction which define a value of the given register class at the start of the specified basic block.

It returns the virtual register defined by the instruction.

Definition at line 114 of file MachineSSAUpdater.cpp.

References llvm::BuildMI(), llvm::dwarf_linker::DebugLoc, I, MRI, and TII.

Referenced by llvm::SSAUpdaterTraits< MachineSSAUpdater >::CreateEmptyPHI(), llvm::SSAUpdaterTraits< MachineSSAUpdater >::GetPoisonVal(), llvm::MachineSSAUpdater::GetValueInMiddleOfBlock(), and llvm::MachineSSAUpdater::RewriteUse().

◆ LookForIdenticalPHI()