Hi, guys, what is the interface for finding the immediate dominator of a machine basic block in LLVM 2.1? I found some methods to check if a node dominates other in llvm::MachineDominatorTree, but I was looking for something like: MachineBasicBlock * mbb = ... MachineBasicBlock * iDom = XXX->getImmediateDominator(mbb); is there something similar? best, Fernando
On Dec 9, 2007, at 9:08 PM, Fernando Magno Quintao Pereira wrote:> > Hi, guys, > > what is the interface for finding the immediate dominator of a > machine > basic block in LLVM 2.1? I found some methods to check if a node > dominates > other in llvm::MachineDominatorTree, but I was looking for something > like: > MachineBasicBlock * mbb = ... > MachineBasicBlock * iDom = XXX->getImmediateDominator(mbb); > > is there something similar?Hi Fernando, The MachineDominator and MachineLoopInfo classes are new to SVN head. Please try that instead of LLVM 2.1 -Chris
Reasonably Related Threads
- [LLVMdev] Find all backedges of CFG by MachineDominatorTree. please look at my jpg.
- [LLVMdev] Find all backedges of CFG by MachineDominatorTree. please look at my jpg.
- [LLVMdev] Find all backedges of CFG by MachineDominatorTree. please look at my jpg.
- [LLVMdev] Find all backedges of CFG by MachineDominatorTree. please look at my jpg.
- [LLVMdev] About MachineDominatorTree Pass.