LLVM API Documentation
#include <AllocInfo.h>
Collaboration diagram for llvm::AllocInfo:
Public Types | |
NotAllocated = 0 | |
Allocated | |
Spilled | |
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.
llvm::AllocInfo::AllocInfo | ( | int | Inst_, | |
int | Op_, | |||
AllocStateTy | State_, | |||
int | Place_ | |||
) | [inline] |
Definition at line 35 of file AllocInfo.h.
llvm::AllocInfo::AllocInfo | ( | ) | [inline] |
AllocInfo constructor -- Default constructor creates an invalid AllocInfo (presumably to be replaced with something meaningful later).
Definition at line 41 of file AllocInfo.h.
const std::string llvm::AllocInfo::allocStateToString | ( | ) | const [inline] |
Returns a human-readable string representation of the AllocState member.
Definition at line 79 of file AllocInfo.h.
References AllocState.
Referenced by llvm::operator<<().
static StructType* llvm::AllocInfo::getConstantType | ( | ) | [inline, static] |
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().
bool llvm::AllocInfo::operator!= | ( | const AllocInfo & | X | ) | const [inline] |
bool llvm::AllocInfo::operator== | ( | const AllocInfo & | X | ) | const [inline] |
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, Placement, and llvm::X.
Constant* llvm::AllocInfo::toConstant | ( | ) | const [inline] |
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 33 of file AllocInfo.h.
Referenced by llvm::operator<<(), operator==(), and toConstant().