]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.h
Implement constant folding on ternary operations via fold_cond.
[xonotic/gmqcc.git] / parser.h
index c34d39baba108d68808873630651d5230a3cbaaf..54f93b29acae7d9f848bd118ba1341c55a54f941 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -133,7 +133,8 @@ bool            fold_generate       (fold_t *, ir_builder *);
 ast_expression *fold_op             (fold_t *, const oper_info *, ast_expression **);
 ast_expression *fold_intrin         (fold_t *, const char      *, ast_expression **);
 
-int             fold_cond           (ir_value *, ast_function *, ast_ifthen *);
+int             fold_cond_ifthen    (ir_value *, ast_function *, ast_ifthen  *);
+int             fold_cond_ternary   (ir_value *, ast_function *, ast_ternary *);
 
 /* intrin.c */
 intrin_t       *intrin_init            (parser_t *parser);