summaryrefslogtreecommitdiff
path: root/ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ir.cpp')
-rw-r--r--ir.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir.cpp b/ir.cpp
index b927c73ccb..eb12b5fe77 100644
--- a/ir.cpp
+++ b/ir.cpp
@@ -73,6 +73,9 @@ ir_expression::get_num_operands(ir_expression_operation op)
1, /* ir_unop_ceil */
1, /* ir_unop_floor */
+ 1, /* ir_unop_sin */
+ 1, /* ir_unop_cos */
+
2, /* ir_binop_add */
2, /* ir_binop_sub */
2, /* ir_binop_mul */
@@ -131,6 +134,8 @@ static const char *const operator_strs[] = {
"trunc",
"ceil",
"floor",
+ "sin",
+ "cos",
"+",
"-",
"*",