]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
Optimize for superfluous cases of NOT, i.e !!!!x can be simplified to !!x.
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index d8ad37465ef0525ea2298a9eb484f7a6e9220f04..6f42d440f1c783227ae977278b0bce4b93a4af5d 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -726,7 +726,13 @@ enum {
     VINSTR_BITXOR,
     VINSTR_BITXOR_V,
     VINSTR_BITXOR_VF,
-    VINSTR_CROSS
+    VINSTR_CROSS,
+
+    /*
+     * An instruction that is never emitted, useful for marking ir_instr
+     * to not be generated (just set the ->opcode member to it).
+     */
+    VINSTR_NOP
 };
 
 /* TODO: elide */