merge Compiler::load and Compiler::loadz

This commit is contained in:
Joshua Warner
2014-05-01 11:13:52 -06:00
parent 85f114ea0f
commit 99fa560257
4 changed files with 80 additions and 62 deletions

View File

@ -110,14 +110,11 @@ class Compiler {
virtual void store(ir::Type srcType,
Operand* src,
Operand* dst) = 0;
virtual Operand* load(ir::Type srcType,
virtual Operand* load(ir::SignExtendMode signExtend,
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,

View File

@ -113,6 +113,8 @@ class Types {
}
};
enum SignExtendMode { SignExtend, ZeroExtend };
} // namespace ir
} // namespace codegen
} // namespace avian