LLVM API Documentation
#include <AllocInfo.h>
Collaboration diagram for llvm::AllocInfo:
Public Types | |
enum | AllocStateTy { NotAllocated = 0, Allocated, Spilled } |
Public Member Functions | |
AllocInfo (int Inst_, int Op_, AllocStateTy State_, int Place_) | |
AllocInfo () | |
Constant * | toConstant () const |
bool | operator== (const AllocInfo &X) const |
bool | operator!= (const AllocInfo &X) const |
const std::string | allocStateToString () const |
Static Public Member Functions | |
static StructType * | getConstantType () |
Public Attributes | |
int | Instruction |
int | Operand |
AllocStateTy | AllocState |
int | Placement |
Definition at line 28 of file AllocInfo.h.
|
Definition at line 31 of file AllocInfo.h. |
|
Definition at line 35 of file AllocInfo.h. |
|
AllocInfo constructor -- Default constructor creates an invalid AllocInfo (presumably to be replaced with something meaningful later). Definition at line 41 of file AllocInfo.h. |
|
Returns a human-readable string representation of the AllocState member. Definition at line 79 of file AllocInfo.h. References AllocState. Referenced by llvm::operator<<(). |
|
getConstantType - Return a StructType representing an AllocInfo object. Definition at line 46 of file AllocInfo.h. References llvm::StructType::get(), llvm::Type::IntTy, and llvm::Type::UIntTy. Referenced by toConstant(). |
|
Definition at line 75 of file AllocInfo.h. |
|
AllocInfos compare equal if the allocation placements are equal (i.e., they can be equal even if they refer to operands from two different instructions.) Definition at line 72 of file AllocInfo.h. References AllocState, and Placement. |
|
toConstant - Convert this AllocInfo into an LLVM Constant of type getConstantType(), and return the Constant. Definition at line 58 of file AllocInfo.h. References AllocState, llvm::ConstantStruct::get(), llvm::ConstantUInt::get(), llvm::ConstantSInt::get(), getConstantType(), llvm::Type::IntTy, Operand, Placement, and llvm::Type::UIntTy. |
|
Definition at line 32 of file AllocInfo.h. Referenced by allocStateToString(), operator==(), and toConstant(). |
|
Definition at line 29 of file AllocInfo.h. Referenced by llvm::operator<<(). |
|
Definition at line 30 of file AllocInfo.h. Referenced by llvm::operator<<(), and toConstant(). |
|
Definition at line 33 of file AllocInfo.h. Referenced by llvm::operator<<(), operator==(), and toConstant(). |