LLVM API Documentation
#include <Trace.h>
Collaboration diagram for llvm::Trace:
Definition at line 30 of file Trace.h.
typedef BasicBlockListType::const_iterator llvm::Trace::const_iterator |
typedef std::reverse_iterator<const_iterator> llvm::Trace::const_reverse_iterator |
typedef std::reverse_iterator<iterator> llvm::Trace::reverse_iterator |
llvm::Trace::Trace | ( | const std::vector< BasicBlock * > & | vBB | ) | [inline] |
const_iterator llvm::Trace::begin | ( | ) | const [inline] |
iterator llvm::Trace::begin | ( | ) | [inline] |
bool llvm::Trace::contains | ( | const BasicBlock * | X | ) | const [inline] |
contains - Returns true if this trace contains the given basic block.
Definition at line 72 of file Trace.h.
References getBlockIndex(), and llvm::X.
bool llvm::Trace::dominates | ( | const BasicBlock * | B1, | |
const BasicBlock * | B2 | |||
) | const [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 79 of file Trace.h.
References getBlockIndex().
void Trace::dump | ( | ) | const |
const_iterator llvm::Trace::end | ( | ) | const [inline] |
iterator llvm::Trace::end | ( | ) | [inline] |
BasicBlock* llvm::Trace::getBlock | ( | unsigned | i | ) | const [inline] |
int llvm::Trace::getBlockIndex | ( | const BasicBlock * | X | ) | const [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 62 of file Trace.h.
References llvm::X.
Referenced by contains(), and dominates().
BasicBlock* llvm::Trace::getEntryBasicBlock | ( | ) | const [inline] |
getEntryBasicBlock - Return the entry basic block (first block) of the trace.
Definition at line 44 of file Trace.h.
Referenced by getFunction().
Function * Trace::getFunction | ( | ) | const |
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().
Module * Trace::getModule | ( | ) | const |
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().
BasicBlock* llvm::Trace::operator[] | ( | unsigned | i | ) | const [inline] |
void Trace::print | ( | std::ostream & | O | ) | const |
print - Write trace to output stream.
Definition at line 36 of file Trace.cpp.
References begin(), end(), F, getFunction(), getModule(), and llvm::WriteAsOperand().
Referenced by dump().
const_reverse_iterator llvm::Trace::rbegin | ( | ) | const [inline] |
reverse_iterator llvm::Trace::rbegin | ( | ) | [inline] |
const_reverse_iterator llvm::Trace::rend | ( | ) | const [inline] |
reverse_iterator llvm::Trace::rend | ( | ) | [inline] |