CACAO
Public Types | Public Member Functions | Static Public Member Functions | Data Fields
cacao::jit::compiler2::x86_64::ModRMOperand Class Reference

Public Types

enum  ScaleFactor { Scale1 = 0, Scale2 = 1, Scale4 = 2, Scale8 = 3 }
 

Public Member Functions

 ModRMOperand (const BaseOp &base, int32_t disp=0)
 constructor. base and disp only More...
 
 ModRMOperand (ScaleFactor scale, const IndexOp &index, const BaseOp &base, int32_t disp=0)
 constructor. Full More...
 
 ModRMOperand (Type::TypeID type, const IndexOp &index, const BaseOp &base, int32_t disp=0)
 constructor. Full (with Type::TypeID for scale) More...
 

Static Public Member Functions

static ScaleFactor get_scale (Type::TypeID type)
 covert type to scale More...
 
static ScaleFactor get_scale (int32_t value)
 covert type to scale More...
 

Data Fields

ScaleFactor scale
 
MachineOperandindex
 
MachineOperandbase
 
int32_t disp
 

Detailed Description

Definition at line 137 of file X86_64Instructions.hpp.

Member Enumeration Documentation

Enumerator
Scale1 
Scale2 
Scale4 
Scale8 

Definition at line 139 of file X86_64Instructions.hpp.

Constructor & Destructor Documentation

cacao::jit::compiler2::x86_64::ModRMOperand::ModRMOperand ( const BaseOp base,
int32_t  disp = 0 
)
inlineexplicit

constructor. base and disp only

Definition at line 150 of file X86_64Instructions.hpp.

cacao::jit::compiler2::x86_64::ModRMOperand::ModRMOperand ( ScaleFactor  scale,
const IndexOp index,
const BaseOp base,
int32_t  disp = 0 
)
inline

constructor. Full

Definition at line 153 of file X86_64Instructions.hpp.

cacao::jit::compiler2::x86_64::ModRMOperand::ModRMOperand ( Type::TypeID  type,
const IndexOp index,
const BaseOp base,
int32_t  disp = 0 
)
inline

constructor. Full (with Type::TypeID for scale)

Definition at line 156 of file X86_64Instructions.hpp.

Member Function Documentation

static ScaleFactor cacao::jit::compiler2::x86_64::ModRMOperand::get_scale ( Type::TypeID  type)
inlinestatic

covert type to scale

Definition at line 160 of file X86_64Instructions.hpp.

static ScaleFactor cacao::jit::compiler2::x86_64::ModRMOperand::get_scale ( int32_t  value)
inlinestatic

covert type to scale

Definition at line 181 of file X86_64Instructions.hpp.

Field Documentation

MachineOperand* cacao::jit::compiler2::x86_64::ModRMOperand::base

Definition at line 147 of file X86_64Instructions.hpp.

int32_t cacao::jit::compiler2::x86_64::ModRMOperand::disp

Definition at line 148 of file X86_64Instructions.hpp.

MachineOperand* cacao::jit::compiler2::x86_64::ModRMOperand::index

Definition at line 146 of file X86_64Instructions.hpp.

ScaleFactor cacao::jit::compiler2::x86_64::ModRMOperand::scale

Definition at line 145 of file X86_64Instructions.hpp.


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