switch Compiler::load* to use ir::Type rather than sizes

This commit is contained in:
Joshua Warner
2014-05-01 00:13:39 -06:00
committed by Joshua Warner
parent 9c98986f99
commit 27ea503233
3 changed files with 119 additions and 90 deletions

View File

@ -110,10 +110,14 @@ class Compiler {
virtual void store(ir::Type srcType,
Operand* src,
Operand* dst) = 0;
virtual Operand* load(unsigned srcSize, unsigned srcSelectSize, Operand* src,
unsigned dstSize) = 0;
virtual Operand* loadz(unsigned size, unsigned srcSelectSize, Operand* src,
unsigned dstSize) = 0;
virtual Operand* load(ir::Type srcType,
ir::Type srcSelectType,
Operand* src,
ir::Type dstType) = 0;
virtual Operand* loadz(ir::Type srcType,
ir::Type srcSelectType,
Operand* src,
ir::Type dstType) = 0;
virtual void condJump(lir::TernaryOperation op,
unsigned size,