IR: Implement Conditional Select

This commit is contained in:
MerryMage 2018-01-18 11:36:48 +00:00
parent 7992a319ba
commit 6395f09f94
9 changed files with 126 additions and 0 deletions

View file

@ -146,6 +146,11 @@ u64 Argument::GetImmediateU64() const {
return ImmediateToU64(value);
}
IR::Cond Argument::GetImmediateCond() const {
ASSERT(IsImmediate() && GetType() == IR::Type::Cond);
return value.GetCond();
}
bool Argument::IsInGpr() const {
if (IsImmediate())
return false;