glasm: Initial implementation of phi nodes on GLASM

This commit is contained in:
ReinUsesLisp
2021-05-14 04:48:46 -03:00
committed by ameerj
parent 0f88fb5d72
commit bf5e48ffe4
12 changed files with 117 additions and 25 deletions

View File

@ -391,4 +391,8 @@ inline f64 Value::F64() const {
return imm_f64;
}
[[nodiscard]] inline bool IsPhi(const Inst& inst) {
return inst.GetOpcode() == Opcode::Phi;
}
} // namespace Shader::IR