diff options
Diffstat (limited to 'includes/compiler/Operands.h')
-rw-r--r-- | includes/compiler/Operands.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/compiler/Operands.h b/includes/compiler/Operands.h index 8c6aa93..cd9c035 100644 --- a/includes/compiler/Operands.h +++ b/includes/compiler/Operands.h @@ -18,7 +18,7 @@ enum OperandType { OpndType_GPR_Indexed = 2, // Value in two registers (identified by 'reg' and 'regHi') OpndType_GPRPair = 3, - // Value at an absolute address (identified by 'abs_address') + // Immediate 32-bit value OpndType_Absolute = 4, // Value in a float register (identified by 'reg') OpndType_FPR = 5, @@ -49,7 +49,7 @@ struct Operand { SInt16 regHi; SInt16 regOffset; SInt32 immOffset; - SInt32 abs_address; + SInt32 immediate; Object *object; UInt32 flags; }; @@ -61,15 +61,15 @@ extern void combine(Operand *opA, Operand *opB, short output_reg, Operand *opOut extern void coerce_to_addressable(Operand *op); extern void Coerce_to_register(Operand *op, Type *type, short output_reg); extern void coerce_to_register_pair(Operand *op, Type *type, short output_reg, short output_regHi); -extern void Coerce_to_fp_register(Operand *op, TypeIntegral *tint, short output_reg); -extern void Coerce_to_v_register(Operand *op, TypeStruct *tstruct, short output_reg); +extern void Coerce_to_fp_register(Operand *op, Type *tint, short output_reg); +extern void Coerce_to_v_register(Operand *op, Type *tstruct, short output_reg); extern void store(short reg, Operand *op, Type *type); extern void store_pair(short reg, short regHi, Operand *op, Type *type); -extern void store_fp(short reg, Operand *op, TypeIntegral *tint); -extern void store_v(short reg, Operand *op, TypeStruct *tstruct); +extern void store_fp(short reg, Operand *op, Type *tint); +extern void store_v(short reg, Operand *op, Type *tstruct); extern void extend32(Operand *op, Type *type, short output_reg); extern void extend64(Operand *op, Type *type, short output_reg, short output_regHi); -extern void load_floating_constant(short reg, TypeIntegral *type, double *data); +extern void load_floating_constant(short reg, Type *type, double *data); extern void convert_integer_to_floating(Operand *op, Boolean is_single, short output_reg); extern void convert_unsigned_to_floating(Operand *op, Boolean is_single, short output_reg); extern void convert_floating_to_integer(Operand *op, short output_reg); |