C-Breeze
C Compiler Infrastructure

[ Project home page]
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

reg_or_const Struct Reference

#include <register.h>

List of all members.

Public Member Functions

 reg_or_const ()
 reg_or_const (const constant &con)
 reg_or_const (const Register &reg)
reg_or_const & operator= (const Register &reg)
reg_or_const & operator= (const constant &con)
string to_string (bool quote_strings, bool addAsmConstPrefix=false) const

Public Attributes

bool _is_const
constant _const
Register _reg


Constructor & Destructor Documentation

reg_or_const::reg_or_const   [inline]
 

Definition at line 242 of file register.h.

References _is_const.

reg_or_const::reg_or_const const constant   con [inline]
 

Definition at line 247 of file register.h.

reg_or_const::reg_or_const const Register   reg [inline]
 

Definition at line 253 of file register.h.


Member Function Documentation

reg_or_const& reg_or_const::operator= const constant   con [inline]
 

Definition at line 279 of file register.h.

reg_or_const& reg_or_const::operator= const Register   reg [inline]
 

Definition at line 272 of file register.h.

References constant::constant().

string reg_or_const::to_string bool    quote_strings,
bool    addAsmConstPrefix = false
const
 

Definition at line 82 of file register.cc.

References _const, _is_const, _reg, CBZ::ArchInfo, arch_info::get_asm_const_prefix(), constant::is_str(), constant::Str, cbz_util::string_replace(), constant::to_string(), Register::to_string(), and to_string().

Referenced by arch_info::make_template_replacements(), operator<<(), to_string(), and LirInst::to_string().


Member Data Documentation

constant reg_or_const::_const
 

Definition at line 265 of file register.h.

Referenced by to_string().

bool reg_or_const::_is_const
 

Definition at line 261 of file register.h.

Referenced by arch_info::get_Lir2Asm_for_instruction(), LirInst::has_offset(), LirInst::has_opnd2(), reg_or_const(), to_string(), and LirInst::to_string().

Register reg_or_const::_reg
 

Definition at line 269 of file register.h.

Referenced by dummy_reg_alloc::allocate(), asm_gen_walker::at_proc(), briggs_reg_alloc::changeWebRegister(), lir_flow_walker::computeRegisterLiveness(), briggs_reg_alloc::computeSpillCosts(), briggs_reg_alloc::genSpillCode(), briggs_reg_alloc::makeDuChains(), and to_string().


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

Generated on August 27, 2003
Back to the C-Breeze home page