LLVM API Documentation
#include <SlotCalculator.h>
Collaboration diagram for llvm::SlotCalculator:
Public Types | |
typedef std::vector< const ConstantArray * >::const_iterator | string_iterator |
Public Member Functions | |
SlotCalculator (const Module *M) | |
SlotCalculator (const Function *F) | |
int | getSlot (const Value *V) const |
int | getSlot (const Type *T) const |
unsigned | getGlobalSlot (const Value *V) const |
unsigned | getGlobalSlot (const Type *V) const |
unsigned | getNumPlanes () const |
unsigned | getNumTypes () const |
unsigned | getModuleLevel (unsigned Plane) const |
unsigned | getModuleTypeLevel () const |
Returns the number of types in the type list that are at module level. | |
TypePlane & | getPlane (unsigned Plane) |
TypeList & | getTypes () |
void | incorporateFunction (const Function *F) |
void | purgeFunction () |
string_iterator | string_begin () const |
string_iterator | string_end () const |
const std::vector< TypePlane > & | getCompactionTable () const |
const TypeList & | getCompactionTypes () const |
bool | CompactionTableIsEmpty () const |
Determine if the compaction table (not types) is empty. |
Definition at line 35 of file SlotCalculator.h.
|
string_iterator/string_begin/end - Access the list of module-level constant strings that have been incorporated. This is only applicable to bytecode files. Definition at line 131 of file SlotCalculator.h. |
|
Definition at line 40 of file SlotCalculator.cpp. References llvm::Type::FirstDerivedTyID, llvm::Type::getPrimitiveType(), and SC_DEBUG. |
|
Definition at line 58 of file SlotCalculator.cpp. References llvm::Type::FirstDerivedTyID, llvm::GlobalValue::getParent(), llvm::Type::getPrimitiveType(), incorporateFunction(), and SC_DEBUG. |
|
Determine if the compaction table (not types) is empty. Determine if the compaction table is actually empty. Because the compaction table always includes the primitive type planes, we can't just check getCompactionTable().size() because it will never be zero. Furthermore, the ModuleLevel factors into whether a given plane is empty or not. This function does the necessary computation to determine if its actually empty. Definition at line 632 of file SlotCalculator.cpp. References getModuleLevel(). |
|
Definition at line 135 of file SlotCalculator.h. |
|
Definition at line 139 of file SlotCalculator.h. |
|
Definition at line 85 of file SlotCalculator.cpp. References I. |
|
getGlobalSlot - Return a slot number from the global table. This can only be used when a compaction table is active. Definition at line 77 of file SlotCalculator.cpp. References I. |
|
Definition at line 106 of file SlotCalculator.h. Referenced by CompactionTableIsEmpty(), and purgeFunction(). |
|
Returns the number of types in the type list that are at module level.
Definition at line 111 of file SlotCalculator.h. |
|
Definition at line 92 of file SlotCalculator.h. Referenced by incorporateFunction(). |
|
Definition at line 99 of file SlotCalculator.h. |
|
Definition at line 91 of file SlotCalculator.cpp. Referenced by incorporateFunction(), and purgeFunction(). |
|
Definition at line 670 of file SlotCalculator.cpp. |
|
getSlot - Return the slot number of the specified value in it's type plane. This returns < 0 on error! Definition at line 652 of file SlotCalculator.cpp. |
|
Definition at line 116 of file SlotCalculator.h. |
|
incorporateFunction/purgeFunction - If you'd like to deal with a function, use these two methods to get its data into the SlotCalculator! Definition at line 271 of file SlotCalculator.cpp. References llvm::constant_begin(), llvm::constant_end(), E, getNumPlanes(), getPlane(), and SC_DEBUG. Referenced by SlotCalculator(). |
|
Definition at line 336 of file SlotCalculator.cpp. References getModuleLevel(), getPlane(), and SC_DEBUG. |
|
Definition at line 132 of file SlotCalculator.h. |
|
Definition at line 133 of file SlotCalculator.h. |