|
LLVM 22.0.0git
|
The data structure for the dependency graph. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Types | |
| using | DepTy = AADepGraphNode::DepTy |
| using | iterator |
Public Member Functions | |
| AADepGraph ()=default | |
| ~AADepGraph ()=default | |
| AADepGraphNode * | GetEntryNode () |
| iterator | begin () |
| iterator | end () |
| LLVM_ABI void | viewGraph () |
| LLVM_ABI void | dumpGraph () |
| Dump graph to file. | |
| LLVM_ABI void | print () |
| Print dependency graph. | |
Static Public Member Functions | |
| static AADepGraphNode * | DepGetVal (const DepTy &DT) |
Public Attributes | |
| AADepGraphNode | SyntheticRoot |
| There is no root node for the dependency graph. | |
The data structure for the dependency graph.
Note that in this graph if there is an edge from A to B (A -> B), then it means that B depends on A, and when the state of A is updated, node B should also be updated
Definition at line 557 of file Attributor.h.
Definition at line 561 of file Attributor.h.
Definition at line 563 of file Attributor.h.
|
default |
|
default |
|
inline |
Definition at line 572 of file Attributor.h.
References SyntheticRoot.
Referenced by llvm::GraphTraits< AADepGraph * >::nodes_begin().
|
inlinestatic |
Definition at line 562 of file Attributor.h.
References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::getPointer().
| void AADepGraph::dumpGraph | ( | ) |
Dump graph to file.
Definition at line 3992 of file Attributor.cpp.
References DepGraphDotFileNamePrefix, llvm::sys::fs::OF_TextWithCRLF, llvm::outs(), and llvm::WriteGraph().
|
inline |
Definition at line 573 of file Attributor.h.
References SyntheticRoot.
Referenced by llvm::GraphTraits< AADepGraph * >::nodes_end().
|
inline |
Definition at line 570 of file Attributor.h.
References SyntheticRoot.
Referenced by llvm::GraphTraits< AADepGraph * >::getEntryNode().
| void AADepGraph::print | ( | ) |
Print dependency graph.
Definition at line 4014 of file Attributor.cpp.
References llvm::cast(), llvm::outs(), and SyntheticRoot.
| void AADepGraph::viewGraph | ( | ) |
Definition at line 3990 of file Attributor.cpp.
References llvm::ViewGraph().
| AADepGraphNode llvm::AADepGraph::SyntheticRoot |
There is no root node for the dependency graph.
But the SCCIterator requires a single entry point, so we maintain a fake("synthetic") root node that depends on every node.
Definition at line 569 of file Attributor.h.
Referenced by begin(), end(), GetEntryNode(), and print().