summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opcodes_c.py
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-02-12 12:55:28 +0100
committerJason Ekstrand <[email protected]>2019-03-06 17:24:57 +0000
commitca2b5e9069177ea603efbe250e675dc7d194ef90 (patch)
tree5bccf4ec9c9aefc5beacfa1214aed9a1c10bdb94 /src/compiler/nir/nir_opcodes_c.py
parent55e6454d5e9dae6f8f29992af83f99217446da38 (diff)
compiler/nir: add an is_conversion field to nir_op_info
This is set to True only for numeric conversion opcodes. Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opcodes_c.py')
-rw-r--r--src/compiler/nir/nir_opcodes_c.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opcodes_c.py b/src/compiler/nir/nir_opcodes_c.py
index 017c8b7ea9a..96c71a1b2c5 100644
--- a/src/compiler/nir/nir_opcodes_c.py
+++ b/src/compiler/nir/nir_opcodes_c.py
@@ -117,6 +117,7 @@ const nir_op_info nir_op_infos[nir_num_opcodes] = {
.input_types = {
${ ", ".join("nir_type_" + type for type in opcode.input_types) }
},
+ .is_conversion = ${"true" if opcode.is_conversion else "false"},
.algebraic_properties =
${ "0" if opcode.algebraic_properties == "" else " | ".join(
"NIR_OP_IS_" + prop.upper() for prop in