14 #ifndef LLVM_CODEGEN_MACHINEPOSTDOMINATORS_H 15 #define LLVM_CODEGEN_MACHINEPOSTDOMINATORS_H 29 std::unique_ptr<PostDomTreeT> PDT;
39 return PDT->getRoots();
45 return PDT->getNode(BB);
49 return PDT->getNode(BB);
54 return PDT->dominates(A, B);
58 return PDT->dominates(A, B);
63 return PDT->properlyDominates(A, B);
68 return PDT->properlyDominates(A, B);
72 return PDT->isVirtualRoot(Node);
77 return PDT->findNearestCommonDominator(A, B);
void print(llvm::raw_ostream &OS, const Module *M=nullptr) const override
print - Print out the internal state of the pass.
const SmallVectorImpl< MachineBasicBlock * > & getRoots() const
bool dominates(const MachineDomTreeNode *A, const MachineDomTreeNode *B) const
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
MachineDomTreeNode * operator[](MachineBasicBlock *BB) const
MachineDomTreeNode * getNode(MachineBasicBlock *BB) const
FunctionPass * createMachinePostDominatorTreePass()
void verifyAnalysis() const override
verifyAnalysis() - This member can be implemented by a analysis pass to check state of analysis infor...
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Base class for the actual dominator tree node.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
MachineBasicBlock * findNearestCommonDominator(MachineBasicBlock *A, MachineBasicBlock *B) const
bool dominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const
Core dominator tree base class.
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
bool properlyDominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
MachinePostDominatorTree()
MachineDomTreeNode * getRootNode() const
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
bool runOnMachineFunction(MachineFunction &MF) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
bool properlyDominates(const MachineDomTreeNode *A, const MachineDomTreeNode *B) const
MachinePostDominatorTree - an analysis pass wrapper for DominatorTree used to compute the post-domina...
This class implements an extremely fast bulk output stream that can only output to a stream...
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
bool isVirtualRoot(const MachineDomTreeNode *Node) const