mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Add a getSDep() access function to SUnitIterator to return the
current SDep. llvm-svn: 61064
This commit is contained in:
parent
b697738ee4
commit
399e0b540e
@ -549,10 +549,13 @@ namespace llvm {
|
||||
const SUnit *getNode() const { return Node; }
|
||||
/// isCtrlDep - Test if this is not an SDep::Data dependence.
|
||||
bool isCtrlDep() const {
|
||||
return Node->Preds[Operand].isCtrl();
|
||||
return getSDep().isCtrl();
|
||||
}
|
||||
bool isArtificialDep() const {
|
||||
return Node->Preds[Operand].isArtificial();
|
||||
return getSDep().isArtificial();
|
||||
}
|
||||
const SDep &getSDep() const {
|
||||
return Node->Preds[Operand];
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user