LLVM API Documentation
#include <Trace.h>
Collaboration diagram for llvm::Trace:
Public Types | |
typedef BasicBlockListType::iterator | iterator |
typedef BasicBlockListType::const_iterator | const_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
typedef std::reverse_iterator< iterator > | reverse_iterator |
Public Member Functions | |
Trace (const std::vector< BasicBlock * > &vBB) | |
BasicBlock * | getEntryBasicBlock () const |
BasicBlock * | operator[] (unsigned i) const |
BasicBlock * | getBlock (unsigned i) const |
Function * | getFunction () const |
Module * | getModule () const |
int | getBlockIndex (const BasicBlock *X) const |
bool | contains (const BasicBlock *X) const |
bool | dominates (const BasicBlock *B1, const BasicBlock *B2) const |
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 (std::ostream &O) const |
void | dump () const |
Definition at line 30 of file Trace.h.
|
|
|
|
|
|
|
|
|
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. |
|
|
|
Definition at line 91 of file Trace.h. Referenced by llvm::CloneTraceInto(), and print(). |
|
contains - Returns true if this trace contains the given basic block. Definition at line 72 of file Trace.h. References getBlockIndex(). |
|
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 79 of file Trace.h. References getBlockIndex(). |
|
dump - Debugger convenience method; writes trace to standard error output stream. Definition at line 50 of file Trace.cpp. References print(). |
|
|
|
|
|
Definition at line 93 of file Trace.h. Referenced by llvm::CloneTraceInto(), and print(). |
|
|
|
|
|
|
|
getBlockIndex - Return the index of the specified basic block in the trace, or -1 if it is not in the trace. Definition at line 62 of file Trace.h. Referenced by contains(), and dominates(). |
|
getEntryBasicBlock - Return the entry basic block (first block) of the trace. Definition at line 44 of file Trace.h. Referenced by llvm::CloneTraceInto(), and getFunction(). |
|
getFunction - Return this trace's parent function. Definition at line 25 of file Trace.cpp. References getEntryBasicBlock(), and llvm::BasicBlock::getParent(). Referenced by getModule(), and print(). |
|
getModule - Return this Module that contains this trace's parent function. Definition at line 30 of file Trace.cpp. References getFunction(), and llvm::GlobalValue::getParent(). Referenced by print(). |
|
operator[]/getBlock - Return basic block N in the trace. |
|
print - Write trace to output stream. Definition at line 36 of file Trace.cpp. References begin(), end(), F, getFunction(), getModule(), llvm::Value::getName(), and llvm::WriteAsOperand(). Referenced by dump(). |
|
|
|
|
|
|
|
|
|
|