|
LLVM 22.0.0git
|
#include "llvm/Analysis/Trace.h"
Public Types | |
| using | iterator = BasicBlockListType::iterator |
| using | const_iterator = BasicBlockListType::const_iterator |
| using | reverse_iterator = std::reverse_iterator<iterator> |
| using | const_reverse_iterator = std::reverse_iterator<const_iterator> |
Public Member Functions | |
| Trace (const std::vector< BasicBlock * > &vBB) | |
| Trace ctor - Make a new trace from a vector of basic blocks, residing in the function which is the parent of the first basic block in the vector. | |
| BasicBlock * | getEntryBasicBlock () const |
| getEntryBasicBlock - Return the entry basic block (first block) of the trace. | |
| BasicBlock * | operator[] (unsigned i) const |
| operator[]/getBlock - Return basic block N in the trace. | |
| BasicBlock * | getBlock (unsigned i) const |
| Function * | getFunction () const |
| getFunction - Return this trace's parent function. | |
| Module * | getModule () const |
| getModule - Return this Module that contains this trace's parent function. | |
| int | getBlockIndex (const BasicBlock *X) const |
| getBlockIndex - Return the index of the specified basic block in the trace, or -1 if it is not in the trace. | |
| bool | contains (const BasicBlock *X) const |
| contains - Returns true if this trace contains the given basic block. | |
| bool | dominates (const BasicBlock *B1, const BasicBlock *B2) const |
| Returns true if B1 occurs before B2 in the trace, or if it is the same block as B2. | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| unsigned | size () const |
| bool | empty () const |
| iterator | erase (iterator q) |
| iterator | erase (iterator q1, iterator q2) |
| void | print (raw_ostream &O) const |
| print - Write trace to output stream. | |
| void | dump () const |
| dump - Debugger convenience method; writes trace to standard error output stream. | |
| using llvm::Trace::const_reverse_iterator = std::reverse_iterator<const_iterator> |
| using llvm::Trace::reverse_iterator = std::reverse_iterator<iterator> |
|
inline |
|
inline |
Definition at line 85 of file Trace.h.
Referenced by loadYAMLLog(), and print().
|
inline |
|
inline |
contains - Returns true if this trace contains the given basic block.
Definition at line 67 of file Trace.h.
References getBlockIndex(), and X.
|
inline |
Returns true if B1 occurs before B2 in the trace, or if it is the same block as B2.
. Both blocks must be in the trace.
Definition at line 73 of file Trace.h.
References assert(), and getBlockIndex().
| LLVM_DUMP_METHOD void Trace::dump | ( | ) | const |
dump - Debugger convenience method; writes trace to standard error output stream.
Definition at line 50 of file Trace.cpp.
References llvm::dbgs(), LLVM_DUMP_METHOD, and print().
|
inline |
Definition at line 87 of file Trace.h.
Referenced by loadYAMLLog(), and print().
|
inline |
|
inline |
|
inline |
getBlockIndex - Return the index of the specified basic block in the trace, or -1 if it is not in the trace.
Definition at line 58 of file Trace.h.
References X.
Referenced by contains(), and dominates().
|
inline |
getEntryBasicBlock - Return the entry basic block (first block) of the trace.
Definition at line 43 of file Trace.h.
Referenced by getFunction().
| Function * Trace::getFunction | ( | ) | const |
getFunction - Return this trace's parent function.
Definition at line 27 of file Trace.cpp.
References getEntryBasicBlock(), and llvm::BasicBlock::getParent().
Referenced by getModule(), and print().
| Module * Trace::getModule | ( | ) | const |
getModule - Return this Module that contains this trace's parent function.
Definition at line 31 of file Trace.cpp.
References getFunction(), and llvm::GlobalValue::getParent().
Referenced by print().
|
inline |
| void Trace::print | ( | raw_ostream & | O | ) | const |
print - Write trace to output stream.
Definition at line 36 of file Trace.cpp.
References begin(), end(), F, getFunction(), and getModule().
Referenced by dump().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 95 of file Trace.h.
Referenced by llvm::InstrProfWriter::addTemporalProfileTraces(), llvm::TemporalProfTraceTy::createBPFunctionNodes(), and llvm::longestCommonSequence().