|
LLVM 22.0.0git
|
#include "llvm/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.h"
Public Member Functions | |
| DependencyGraph (AAResults &AA, Context &Ctx) | |
| This constructor also registers callbacks. | |
| ~DependencyGraph () | |
| DGNode * | getNode (Instruction *I) const |
| DGNode * | getNodeOrNull (Instruction *I) const |
Like getNode() but returns nullptr if I is nullptr. | |
| DGNode * | getOrCreateNode (Instruction *I) |
| LLVM_ABI Interval< Instruction > | extend (ArrayRef< Instruction * > Instrs) |
Build/extend the dependency graph such that it includes Instrs. | |
| Interval< Instruction > | getInterval () const |
| \Returns the range of instructions included in the DAG. | |
| void | clear () |
| bool | empty () const |
| \Returns true if the DAG's state is clear. Used in assertions. | |
| void | print (raw_ostream &OS) const |
| LLVM_DUMP_METHOD void | dump () const |
Definition at line 331 of file DependencyGraph.h.
This constructor also registers callbacks.
Definition at line 402 of file DependencyGraph.h.
References I.
|
inline |
Definition at line 415 of file DependencyGraph.h.
|
inline |
Definition at line 451 of file DependencyGraph.h.
| void llvm::sandboxir::DependencyGraph::dump | ( | ) | const |
Definition at line 659 of file DependencyGraph.cpp.
References llvm::dbgs(), and print().
|
inline |
\Returns true if the DAG's state is clear. Used in assertions.
Definition at line 457 of file DependencyGraph.h.
References assert().
| Interval< Instruction > llvm::sandboxir::DependencyGraph::extend | ( | ArrayRef< Instruction * > | Instrs | ) |
Build/extend the dependency graph such that it includes Instrs.
Returns the range of instructions added to the DAG.
Definition at line 540 of file DependencyGraph.cpp.
References llvm::drop_begin(), llvm::ArrayRef< T >::empty(), llvm::sandboxir::Interval< MemDGNode >, llvm_unreachable, and llvm::sandboxir::MemDGNodeIntervalBuilder::make().
|
inline |
\Returns the range of instructions included in the DAG.
Definition at line 450 of file DependencyGraph.h.
|
inline |
Definition at line 426 of file DependencyGraph.h.
References I.
Referenced by llvm::sandboxir::MemDGNodeIntervalBuilder::getBotMemDGNode(), getNodeOrNull(), and llvm::sandboxir::MemDGNodeIntervalBuilder::getTopMemDGNode().
|
inline |
Like getNode() but returns nullptr if I is nullptr.
Definition at line 431 of file DependencyGraph.h.
|
inline |
Definition at line 436 of file DependencyGraph.h.
References I, and llvm::sandboxir::DGNode::isMemDepNodeCandidate().
| void llvm::sandboxir::DependencyGraph::print | ( | raw_ostream & | OS | ) | const |
Definition at line 645 of file DependencyGraph.cpp.
References llvm::sandboxir::Instruction::comesBefore(), llvm::sandboxir::DGNode::getInstruction(), N, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SmallVectorImpl< T >::reserve(), and llvm::sort().
Referenced by dump().