summaryrefslogtreecommitdiffstats
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-04-06 10:30:54 -0700
committerEric Anholt <[email protected]>2010-04-06 11:42:34 -0700
commit326c676236e6a3c90db63e4d0c893aa4f9c21876 (patch)
treeb3513c8d9bb5c0cd596b8d3486edb69136e955f8 /ir.h
parent3fff009af169313fa22996d93ad195cf12729763 (diff)
Handle constant expressions using derefs of const values.
Fixes CorrectParse1.frag and makes for a ton of folding in CorrectParse2.frag.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 5267d2bc787..a515d9a7d0a 100644
--- a/ir.h
+++ b/ir.h
@@ -154,6 +154,11 @@ public:
* equality). This flag enables this behavior.
*/
unsigned array_lvalue:1;
+
+ /**
+ * Value assigned in the initializer of a variable declared "const"
+ */
+ ir_constant *constant_value;
};