diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-25 17:01:15 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-25 17:01:15 -0700 |
commit | 954699773681842dac9f8f0d9ba4629513232196 (patch) | |
tree | b1a47ebcc74101160bc865ea4b1b91ac61d46272 /ir.h | |
parent | 720c88eab902923123b0625f133e9ef5912f0e3f (diff) |
Add dereference constructor for array element dereferences
This should have gone in before the previous commit.
Diffstat (limited to 'ir.h')
-rw-r--r-- | ir.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -393,6 +393,8 @@ class ir_dereference : public ir_instruction { public: ir_dereference(struct ir_instruction *); + ir_dereference(ir_instruction *variable, ir_instruction *array_index); + virtual void accept(ir_visitor *v) { v->visit(this); @@ -419,7 +421,7 @@ public: ir_instruction *var; union { - ir_expression *array_index; + ir_instruction *array_index; const char *field; struct ir_swizzle_mask swizzle; } selector; |