10 #ifndef LLVM_CODEGEN_MACHINEDOMINANCEFRONTIER_H
11 #define LLVM_CODEGEN_MACHINEDOMINANCEFRONTIER_H
42 inline const std::vector<MachineBasicBlock *> &
getRoots()
const {
43 return Base.getRoots();
47 return Base.getRoot();
51 return Base.isPostDominator();
79 return Base.addBasicBlock(BB, frontier);
83 return Base.removeBlock(BB);
87 return Base.addToFrontier(I, Node);
91 return Base.removeFromFrontier(I, Node);
95 return Base.compareDomSet(DS1, DS2);
99 return Base.compare(Other);
111 #endif // LLVM_CODEGEN_MACHINEDOMINANCEFRONTIER_H
const_iterator find(MachineBasicBlock *B) const
MachineBasicBlock * getRoot() const
DomSetMapType::const_iterator const_iterator
bool isPostDominator() const
const std::vector< MachineBasicBlock * > & getRoots() const
DomSetMapType::iterator iterator
DominanceFrontierBase - Common base class for computing forward and inverse dominance frontiers for a...
DominanceFrontierBase< MachineBasicBlock, false > & getBase()
bool compare(DominanceFrontierBase< MachineBasicBlock, false > &Other) const
const_iterator end() const
DominanceFrontierBase< MachineBasicBlock, false >::const_iterator const_iterator
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
Base class for the actual dominator tree node.
Core dominator tree base class.
std::set< BlockT * > DomSetType
Represent the analysis usage information of a pass.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
DominanceFrontierBase< MachineBasicBlock, false >::iterator iterator
MachineDominanceFrontier()
iterator find(MachineBasicBlock *B)
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
bool compareDomSet(DomSetType &DS1, const DomSetType &DS2) const
MachineDominanceFrontier & operator=(const MachineDominanceFrontier &)=delete
DominanceFrontierBase< MachineBasicBlock, false >::DomSetType DomSetType
bool runOnMachineFunction(MachineFunction &F) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
void removeFromFrontier(iterator I, MachineBasicBlock *Node)
void removeBlock(MachineBasicBlock *BB)
const_iterator begin() const
This file defines a set of templates that efficiently compute a dominator tree over a generic graph...
void addToFrontier(iterator I, MachineBasicBlock *Node)
iterator addBasicBlock(MachineBasicBlock *BB, const DomSetType &frontier)
DominanceFrontier Class - Concrete subclass of DominanceFrontierBase that is used to compute a forwar...