mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
add accessor, improve comment.
llvm-svn: 90792
This commit is contained in:
parent
433b8a8753
commit
9ed7e3ffb9
@ -47,6 +47,8 @@ public:
|
|||||||
InstInputs.push_back(I);
|
InstInputs.push_back(I);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Value *getAddr() const { return Addr; }
|
||||||
|
|
||||||
/// NeedsPHITranslationFromBlock - Return true if moving from the specified
|
/// NeedsPHITranslationFromBlock - Return true if moving from the specified
|
||||||
/// BasicBlock to its predecessors requires PHI translation.
|
/// BasicBlock to its predecessors requires PHI translation.
|
||||||
bool NeedsPHITranslationFromBlock(BasicBlock *BB) const {
|
bool NeedsPHITranslationFromBlock(BasicBlock *BB) const {
|
||||||
@ -65,7 +67,7 @@ public:
|
|||||||
|
|
||||||
/// PHITranslateValue - PHI translate the current address up the CFG from
|
/// PHITranslateValue - PHI translate the current address up the CFG from
|
||||||
/// CurBB to Pred, updating our state the reflect any needed changes. This
|
/// CurBB to Pred, updating our state the reflect any needed changes. This
|
||||||
/// returns true on failure.
|
/// returns true on failure and sets Addr to null.
|
||||||
bool PHITranslateValue(BasicBlock *CurBB, BasicBlock *PredBB);
|
bool PHITranslateValue(BasicBlock *CurBB, BasicBlock *PredBB);
|
||||||
|
|
||||||
/// PHITranslateWithInsertion - PHI translate this value into the specified
|
/// PHITranslateWithInsertion - PHI translate this value into the specified
|
||||||
|
@ -195,7 +195,7 @@ Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB,
|
|||||||
|
|
||||||
/// PHITranslateValue - PHI translate the current address up the CFG from
|
/// PHITranslateValue - PHI translate the current address up the CFG from
|
||||||
/// CurBB to Pred, updating our state the reflect any needed changes. This
|
/// CurBB to Pred, updating our state the reflect any needed changes. This
|
||||||
/// returns true on failure.
|
/// returns true on failure and sets Addr to null.
|
||||||
bool PHITransAddr::PHITranslateValue(BasicBlock *CurBB, BasicBlock *PredBB) {
|
bool PHITransAddr::PHITranslateValue(BasicBlock *CurBB, BasicBlock *PredBB) {
|
||||||
Addr = PHITranslateSubExpr(Addr, CurBB, PredBB);
|
Addr = PHITranslateSubExpr(Addr, CurBB, PredBB);
|
||||||
return Addr == 0;
|
return Addr == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user