mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add an isReachableFromEntry to MachineDominators, following the one
in Dominators. llvm-svn: 100454
This commit is contained in:
parent
899c498b79
commit
fab42b8e7b
@ -156,8 +156,13 @@ public:
|
||||
inline void splitBlock(MachineBasicBlock* NewBB) {
|
||||
DT->splitBlock(NewBB);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// isReachableFromEntry - Return true if A is dominated by the entry
|
||||
/// block of the function containing it.
|
||||
bool isReachableFromEntry(MachineBasicBlock *A) {
|
||||
return DT->isReachableFromEntry(A);
|
||||
}
|
||||
|
||||
virtual void releaseMemory();
|
||||
|
||||
virtual void print(raw_ostream &OS, const Module*) const;
|
||||
|
Loading…
Reference in New Issue
Block a user