mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
Add a getSDep() access function to SUnitIterator to return the
current SDep. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61064 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e7c1c660ad
commit
c3df7a8884
@ -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…
Reference in New Issue
Block a user