lima/ir: print names of unsupported intrinsics

While lima still doesn't support some kinds of intrinsics, it is more
helpful to display the name of the unsupported instr->intrinsic to make
debugging easier.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
This commit is contained in:
Erico Nunes
2019-05-05 10:51:43 +02:00
parent c7f2145b4b
commit 60a128fe81
2 changed files with 4 additions and 2 deletions

View File

@@ -201,7 +201,8 @@ static bool gpir_emit_intrinsic(gpir_block *block, nir_instr *ni)
return true;
}
default:
gpir_error("unsupported nir_intrinsic_instr %d\n", instr->intrinsic);
gpir_error("unsupported nir_intrinsic_instr %s\n",
nir_intrinsic_infos[instr->intrinsic].name);
return false;
}
}