LLVM  3.7.0
Public Member Functions | List of all members
llvm::CriticalAntiDepBreaker Class Reference

#include <CriticalAntiDepBreaker.h>

Inheritance diagram for llvm::CriticalAntiDepBreaker:
[legend]
Collaboration diagram for llvm::CriticalAntiDepBreaker:
[legend]

Public Member Functions

 CriticalAntiDepBreaker (MachineFunction &MFi, const RegisterClassInfo &)
 
 ~CriticalAntiDepBreaker () override
 
void StartBlock (MachineBasicBlock *BB) override
 Initialize anti-dep breaking for a new basic block. More...
 
unsigned BreakAntiDependencies (const std::vector< SUnit > &SUnits, MachineBasicBlock::iterator Begin, MachineBasicBlock::iterator End, unsigned InsertPosIndex, DbgValueVector &DbgValues) override
 Identifiy anti-dependencies along the critical path of the ScheduleDAG and break them by renaming registers. More...
 
void Observe (MachineInstr *MI, unsigned Count, unsigned InsertPosIndex) override
 Update liveness information to account for the current instruction, which will not be scheduled. More...
 
void FinishBlock () override
 Finish anti-dep breaking for a basic block. More...
 
- Public Member Functions inherited from llvm::AntiDepBreaker
virtual ~AntiDepBreaker ()
 
void UpdateDbgValue (MachineInstr *MI, unsigned OldReg, unsigned NewReg)
 Update DBG_VALUE if dependency breaker is updating other machine instruction to use NewReg. More...
 

Additional Inherited Members

- Public Types inherited from llvm::AntiDepBreaker
typedef std::vector< std::pair
< MachineInstr *, MachineInstr * > > 
DbgValueVector
 

Detailed Description

Definition at line 34 of file CriticalAntiDepBreaker.h.

Constructor & Destructor Documentation

CriticalAntiDepBreaker::CriticalAntiDepBreaker ( MachineFunction MFi,
const RegisterClassInfo RCI 
)

Definition at line 30 of file CriticalAntiDepBreaker.cpp.

CriticalAntiDepBreaker::~CriticalAntiDepBreaker ( )
override

Definition at line 38 of file CriticalAntiDepBreaker.cpp.

Member Function Documentation

unsigned CriticalAntiDepBreaker::BreakAntiDependencies ( const std::vector< SUnit > &  SUnits,
MachineBasicBlock::iterator  Begin,
MachineBasicBlock::iterator  End,
unsigned  InsertPosIndex,
DbgValueVector DbgValues 
)
overridevirtual
void CriticalAntiDepBreaker::FinishBlock ( )
overridevirtual

Finish anti-dep breaking for a basic block.

Implements llvm::AntiDepBreaker.

Definition at line 86 of file CriticalAntiDepBreaker.cpp.

References llvm::BitVector::reset().

void CriticalAntiDepBreaker::Observe ( MachineInstr MI,
unsigned  Count,
unsigned  InsertPosIndex 
)
overridevirtual

Update liveness information to account for the current instruction, which will not be scheduled.

Implements llvm::AntiDepBreaker.

Definition at line 91 of file CriticalAntiDepBreaker.cpp.

References llvm::MCRegisterInfo::getNumRegs(), llvm::MachineInstr::isDebugValue(), and llvm::MachineInstr::isKill().

void CriticalAntiDepBreaker::StartBlock ( MachineBasicBlock BB)
overridevirtual

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