move Compiler::Operand to ir::Value

This commit is contained in:
Joshua Warner
2014-05-01 12:44:42 -06:00
parent 865041b688
commit 479c056b2c
6 changed files with 351 additions and 328 deletions

View File

@ -26,7 +26,7 @@ const int NoFrameIndex = -1;
const bool DebugSites = false;
class Value: public Compiler::Operand {
class Value : public ir::Value {
public:
Read* reads;
Read* lastRead;
@ -66,12 +66,12 @@ class Value: public Compiler::Operand {
};
inline bool isFloatValue(Compiler::Operand* a)
inline bool isFloatValue(ir::Value* a)
{
return static_cast<Value*>(a)->type.flavor() == ir::Type::Float;
}
inline bool isGeneralValue(Compiler::Operand* a)
inline bool isGeneralValue(ir::Value* a)
{
return !isFloatValue(a);
}