mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-14 02:27:57 -05:00
shader: Initial implementation of an AST
This commit is contained in:
@ -14,6 +14,10 @@ namespace Shader::Optimization {
|
||||
static void ValidateTypes(const IR::Function& function) {
|
||||
for (const auto& block : function.blocks) {
|
||||
for (const IR::Inst& inst : *block) {
|
||||
if (inst.Opcode() == IR::Opcode::Phi) {
|
||||
// Skip validation on phi nodes
|
||||
continue;
|
||||
}
|
||||
const size_t num_args{inst.NumArgs()};
|
||||
for (size_t i = 0; i < num_args; ++i) {
|
||||
const IR::Type t1{inst.Arg(i).Type()};
|
||||
|
Reference in New Issue
Block a user