summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_int64.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-03-01 17:39:54 -0600
committerJason Ekstrand <[email protected]>2019-03-06 17:24:57 +0000
commitebb3695376499c276d4e1508836ce6b38faf1390 (patch)
tree0c2a2f25e3a022f02b53afdd297c35cdbe5dd663 /src/compiler/nir/nir_lower_int64.c
parentca2b5e9069177ea603efbe250e675dc7d194ef90 (diff)
nir: Expose double and int64 op_to_options_mask helpers
We already have one internally for int64 but we don't have a similar one for doubles so we'll have to make one. 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_lower_int64.c')
-rw-r--r--src/compiler/nir/nir_lower_int64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_lower_int64.c b/src/compiler/nir/nir_lower_int64.c
index 6aae1816bd2..e7d361da6da 100644
--- a/src/compiler/nir/nir_lower_int64.c
+++ b/src/compiler/nir/nir_lower_int64.c
@@ -630,8 +630,8 @@ lower_irem64(nir_builder *b, nir_ssa_def *n, nir_ssa_def *d)
return nir_bcsel(b, n_is_neg, nir_ineg(b, r), r);
}
-static nir_lower_int64_options
-opcode_to_options_mask(nir_op opcode)
+nir_lower_int64_options
+nir_lower_int64_op_to_options_mask(nir_op opcode)
{
switch (opcode) {
case nir_op_imul:
@@ -834,7 +834,7 @@ lower_int64_impl(nir_function_impl *impl, nir_lower_int64_options options)
break;
}
- if (!(options & opcode_to_options_mask(alu->op)))
+ if (!(options & nir_lower_int64_op_to_options_mask(alu->op)))
continue;
b.cursor = nir_before_instr(instr);