LLVM API Documentation

llvm::AllocInfo Struct Reference

#include <AllocInfo.h>

Collaboration diagram for llvm::AllocInfo:

Collaboration graph
[legend]
List of all members.

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 ()
ConstanttoConstant () const
bool operator== (const AllocInfo &X) const
bool operator!= (const AllocInfo &X) const
const std::string allocStateToString () const

Static Public Member Functions

static StructTypegetConstantType ()

Public Attributes

int Instruction
int Operand
AllocStateTy AllocState
int Placement

Detailed Description

AllocInfo - Structure representing one instruction's operand's-worth of register allocation state. We create tables made out of these data structures to generate mapping information for this register allocator.

Definition at line 28 of file AllocInfo.h.


Member Enumeration Documentation

enum llvm::AllocInfo::AllocStateTy

Enumerator:
NotAllocated 
Allocated 
Spilled 

Definition at line 31 of file AllocInfo.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 75 of file AllocInfo.h.

References llvm::X.

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.


Member Data Documentation

AllocStateTy llvm::AllocInfo::AllocState

Definition at line 32 of file AllocInfo.h.

Referenced by allocStateToString(), operator==(), and toConstant().

int llvm::AllocInfo::Instruction

Definition at line 29 of file AllocInfo.h.

Referenced by llvm::operator<<().

int llvm::AllocInfo::Operand

Definition at line 30 of file AllocInfo.h.

Referenced by llvm::operator<<(), and toConstant().

int llvm::AllocInfo::Placement

Definition at line 33 of file AllocInfo.h.

Referenced by llvm::operator<<(), operator==(), and toConstant().


The documentation for this struct was generated from the following file: