summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-03-26 12:07:44 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-26 17:51:41 -0700
commit3c36b2df7c854d23b2be9580e416fb04079a1bef (patch)
treed951374859ea0698216028ee7ca57c03c56a4ba9 /ir.h
parent48a0e64b7d6a4308f9c691e5844165ec97f8282e (diff)
Add constructors for immediate hir constants.
This will make ast_to_hir for inc/dec easier.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index c52efe6..a69f932 100644
--- a/ir.h
+++ b/ir.h
@@ -481,6 +481,10 @@ public:
class ir_constant : public ir_rvalue {
public:
ir_constant(const struct glsl_type *type, const void *data);
+ ir_constant(bool b);
+ ir_constant(unsigned int u);
+ ir_constant(int i);
+ ir_constant(float f);
virtual void accept(ir_visitor *v)
{