Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages
Register Class Reference#include <register.h>
List of all members.
Constructor & Destructor Documentation
Register::Register |
( |
Reg_type |
type = reg_unknown |
) |
[inline] |
|
Register::Register |
( |
unsigned int |
n, |
|
|
Reg_type |
rt |
|
) |
[inline] |
|
Register::Register |
( |
const Register & |
r |
) |
[inline] |
|
Member Function Documentation
Register Register::getRegFp |
( |
|
) |
[static] |
|
bool Register::getRegRetVal |
( |
typeNode * |
the_type, |
|
|
Register & |
reg |
|
) |
[static] |
|
Register Register::getRegRetValFixed |
( |
|
) |
[static] |
|
Register Register::getRegRetValFloat |
( |
|
) |
[static] |
|
Register Register::getRegSp |
( |
|
) |
[static] |
|
bool Register::isValid |
( |
|
) |
const [inline] |
|
Register& Register::makeFPR |
( |
|
) |
[inline] |
|
Register& Register::makeFramePtr |
( |
|
) |
[inline] |
|
Register& Register::makeGPR |
( |
|
) |
[inline] |
|
Register& Register::makeInvalid |
( |
|
) |
[inline] |
|
Register& Register::makeStackPtr |
( |
|
) |
[inline] |
|
void Register::num |
( |
unsigned int |
n |
) |
[inline] |
|
unsigned int Register::num |
( |
|
) |
const [inline] |
|
|
Definition at line 104 of file register.h.
Referenced by briggs_reg_alloc::coalesceRegisters(), lir_flow_walker::computeRegisterLiveness(), briggs_reg_alloc::computeSpillCosts(), asm_gen_walker::doCalleeSave(), asm_gen_walker::doCallerSave(), briggs_reg_alloc::genSpillCode(), arch_info::get_reg_name(), arch_info::get_register(), dummy_reg_alloc::get_rreg(), dummy_reg_alloc::get_vreg(), briggs_reg_alloc::interfere(), dummy_reg_alloc::is_real_reg(), briggs_reg_alloc::isSymReg(), briggs_reg_alloc::liveAt(), briggs_reg_alloc::makeDuChains(), briggs_reg_alloc::makeWebs(), and briggs_reg_alloc::nonStore(). |
bool Register::operator!= |
( |
const Register & |
rightR |
) |
const [inline] |
|
bool Register::operator< |
( |
const Register & |
rightR |
) |
const [inline] |
|
Register& Register::operator= |
( |
unsigned int |
val |
) |
[inline] |
|
Register& Register::operator= |
( |
const Register & |
rightR |
) |
[inline] |
|
bool Register::operator== |
( |
const Register & |
rightR |
) |
const [inline] |
|
void Register::setType |
( |
typeNode * |
the_type |
) |
|
|
|
Definition at line 42 of file register.cc.
References CBZFAIL, typeNode::is_char(), typeNode::is_float(), typeNode::is_int(), typeNode::is_pointer(), makeFPR(), makeGPR(), and Node::typ().
Referenced by storage_alloc::assign_register(), LIR::ConvertType(), LIR::Load(), LIR::LoadImmediate(), LIR::LoadStatic(), LIR::make_simple(), and LIR::Neg(). |
string Register::to_string |
( |
bool |
wantPrefixAdd = true, |
|
|
bool |
wantPrefixRemove = false |
|
) |
const |
|
|
Definition at line 56 of file register.cc.
References CBZ::ArchInfo, reg_fpr, reg_frame_ptr, reg_gpr, reg_stack_ptr, and cbz_util::string_format().
Referenced by briggs_reg_alloc::buildAdjMatrix(), asm_gen_walker::createTempForRegSave(), LIR::DeclareLocal(), dummy_reg_alloc::fix_allocated_virtual(), arch_info::make_template_replacements(), reg_or_const::to_string(), and LirInst::to_string(). |
void Register::type |
( |
Reg_type |
t |
) |
[inline] |
|
Reg_type Register::type |
( |
|
) |
const [inline] |
|
Friends And Related Function Documentation
friend class LirInst [friend]
|
|
Member Data Documentation
unsigned int Register::_num [private]
|
|
The documentation for this class was generated from the following files:
|