CACAO
Public Member Functions | Private Attributes
cacao::jit::compiler2::aarch64::NativeRegister Class Reference

This represents a machine register usage. More...

Inheritance diagram for cacao::jit::compiler2::aarch64::NativeRegister:
cacao::jit::compiler2::MachineRegister cacao::jit::compiler2::Register cacao::jit::compiler2::MachineOperand cacao::jit::compiler2::memory::ManagerMixin< MachineOperand >

Public Member Functions

 NativeRegister (Type::TypeID type, Aarch64Register *reg)
 
virtual NativeRegisterto_NativeRegister ()
 
Aarch64Registerget_Aarch64Register () const
 
virtual IdentifyTy id_base () const
 
virtual IdentifyOffsetTy id_offset () const
 
virtual IdentifySizeTy id_size () const
 
- Public Member Functions inherited from cacao::jit::compiler2::MachineRegister
 MachineRegister (const char *name, Type::TypeID type)
 
virtual MachineRegisterto_MachineRegister ()
 
virtual const char * get_name () const
 
virtual ~MachineRegister ()
 
- Public Member Functions inherited from cacao::jit::compiler2::Register
 Register (Type::TypeID type)
 
virtual bool needs_allocation () const
 Return true if operand is processed during register allocation. More...
 
virtual Registerto_Register ()
 
virtual UnassignedRegto_UnassignedReg ()
 
virtual VirtualRegisterto_VirtualRegister ()
 
virtual ~Register ()
 
- Public Member Functions inherited from cacao::jit::compiler2::MachineOperand
std::size_t get_id () const
 
 MachineOperand (OperandID op_id, Type::TypeID type)
 
OperandID get_OperandID () const
 
Type::TypeID get_type () const
 
virtual ~MachineOperand ()
 
virtual MachineOperandto_MachineOperand ()
 
virtual VoidOperandto_VoidOperand ()
 
virtual StackSlotto_StackSlot ()
 
virtual ManagedStackSlotto_ManagedStackSlot ()
 
virtual Immediateto_Immediate ()
 
virtual Addressto_Address ()
 
bool is_MachineOperand () const
 
bool is_VoidOperand () const
 
bool is_Register () const
 
bool is_StackSlot () const
 
bool is_ManagedStackSlot () const
 
bool is_Immediate () const
 
bool is_Address () const
 
bool is_stackslot () const
 
bool aquivalence_less (const MachineOperand &MO) const
 
bool aquivalent (const MachineOperand &MO) const
 
virtual bool is_virtual () const
 True if operand is virtual and must be assigned during register allocation. More...
 
bool has_embedded_operands ()
 
std::size_t op_size () const
 
EmbeddedMachineOperandoperator[] (std::size_t i)
 
const EmbeddedMachineOperandget (std::size_t i) const
 
EmbeddedMachineOperandget (std::size_t i)
 
operand_iterator begin ()
 
operand_iterator end ()
 
operand_iterator find (MachineOperand *op)
 
EmbeddedMachineOperandfront ()
 
EmbeddedMachineOperandback ()
 
const_operand_iterator begin () const
 
const_operand_iterator end () const
 
virtual OStreamprint (OStream &OS) const
 

Private Attributes

Aarch64Registerreg
 
LivetimeInterval fixedInterval
 

Additional Inherited Members

- Public Types inherited from cacao::jit::compiler2::MachineOperand
enum  OperandID {
  MachineOperandID, RegisterID, StackSlotID, ManagedStackSlotID,
  ImmediateID, AddressID, VoidOperandID
}
 
typedef const voidIdentifyTy
 
typedef std::size_t IdentifyOffsetTy
 
typedef std::size_t IdentifySizeTy
 
typedef alloc::vector
< EmbeddedMachineOperand >
::type 
embedded_operand_list
 
typedef
embedded_operand_list::iterator 
operand_iterator
 
typedef
embedded_operand_list::const_iterator 
const_operand_iterator
 
- Static Public Member Functions inherited from cacao::jit::compiler2::memory::ManagerMixin< MachineOperand >
static voidoperator new (std::size_t size) throw (std::bad_alloc)
 normal new More...
 
static voidoperator new (std::size_t size, void *ptr) throw ()
 placement new More...
 
static voidoperator new (std::size_t size, const std::nothrow_t &nt) throw ()
 nothrow new More...
 
static void operator delete (void *pMemory) throw ()
 normal delete More...
 
static void operator delete (void *pMemory, void *ptr) throw ()
 placement delete More...
 
static void operator delete (void *pMemory, const std::nothrow_t &) throw ()
 nothrow delete More...
 
static voidoperator new[] (std::size_t size) throw (std::bad_alloc)
 normal new[] More...
 
static voidoperator new[] (std::size_t size, void *ptr) throw ()
 placement new[] More...
 
static voidoperator new[] (std::size_t size, const std::nothrow_t &nt) throw ()
 nothrow new[] More...
 
static void operator delete[] (void *pMemory) throw ()
 normal delete[] More...
 
static void operator delete[] (void *pMemory, void *ptr) throw ()
 placement delete[] More...
 
static void operator delete[] (void *pMemory, const std::nothrow_t &) throw ()
 nothrow delete[] More...
 
- Protected Attributes inherited from cacao::jit::compiler2::MachineOperand
embedded_operand_list embedded_operands
 TODO describe. More...
 

Detailed Description

This represents a machine register usage.

It consists of a reference to the physical register and a type. This abstraction is needed because registers can be used several times with different types, e.g. x0 and w0

Definition at line 66 of file Aarch64Register.hpp.

Constructor & Destructor Documentation

cacao::jit::compiler2::aarch64::NativeRegister::NativeRegister ( Type::TypeID  type,
Aarch64Register reg 
)

Definition at line 32 of file Aarch64Register.cpp.

Member Function Documentation

Aarch64Register* cacao::jit::compiler2::aarch64::NativeRegister::get_Aarch64Register ( ) const
inline

Definition at line 76 of file Aarch64Register.hpp.

virtual IdentifyTy cacao::jit::compiler2::aarch64::NativeRegister::id_base ( ) const
inlinevirtual

Reimplemented from cacao::jit::compiler2::MachineOperand.

Definition at line 79 of file Aarch64Register.hpp.

virtual IdentifyOffsetTy cacao::jit::compiler2::aarch64::NativeRegister::id_offset ( ) const
inlinevirtual

Reimplemented from cacao::jit::compiler2::MachineOperand.

Definition at line 80 of file Aarch64Register.hpp.

virtual IdentifySizeTy cacao::jit::compiler2::aarch64::NativeRegister::id_size ( ) const
inlinevirtual

Reimplemented from cacao::jit::compiler2::MachineOperand.

Definition at line 81 of file Aarch64Register.hpp.

virtual NativeRegister* cacao::jit::compiler2::aarch64::NativeRegister::to_NativeRegister ( )
inlinevirtual

Implements cacao::jit::compiler2::MachineRegister.

Definition at line 73 of file Aarch64Register.hpp.

Field Documentation

LivetimeInterval cacao::jit::compiler2::aarch64::NativeRegister::fixedInterval
private

Definition at line 69 of file Aarch64Register.hpp.

Aarch64Register* cacao::jit::compiler2::aarch64::NativeRegister::reg
private

Definition at line 68 of file Aarch64Register.hpp.


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