summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-04-02 02:13:43 -1000
committerIan Romanick <ian.d.romanick@intel.com>2010-04-02 11:22:41 -0700
commitdc58b3f8ccd817fdee390a3df5b8e0fb29d5397c (patch)
tree99a3fdc0b09dff4c924b3b587eae0b58b7f20ef5 /ir.h
parent106d122318b94188b0e00115cd5242e0e679f807 (diff)
Add conversion of bool to float as an IR operation to match int to float.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 64ed881..58aa631 100644
--- a/ir.h
+++ b/ir.h
@@ -316,6 +316,8 @@ enum ir_expression_operation {
ir_unop_log2,
ir_unop_f2i, /**< Float-to-integer conversion. */
ir_unop_i2f, /**< Integer-to-float conversion. */
+ ir_unop_f2b, /**< Float-to-boolean conversion */
+ ir_unop_b2f, /**< Boolean-to-float conversion */
ir_unop_u2f, /**< Unsigned-to-float conversion. */
/**