We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf271d commit 45cc743Copy full SHA for 45cc743
llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.h
@@ -122,6 +122,10 @@ class DGNode {
122
iterator preds_end(DependencyGraph &DAG) const {
123
return const_cast<DGNode *>(this)->preds_end(DAG);
124
}
125
+ /// \Returns a range of DAG predecessors nodes. If this is a MemDGNode then
126
+ /// this will also include the memory dependency predecessors.
127
+ /// Please note that this can include the same node more than once, if for
128
+ /// example it's both a use-def predecessor and a mem dep predecessor.
129
iterator_range<iterator> preds(DependencyGraph &DAG) const {
130
return make_range(preds_begin(DAG), preds_end(DAG));
131
0 commit comments