summaryrefslogtreecommitdiff
path: root/ir_constant_folding.cpp
AgeCommit message (Collapse)Author
2010-06-01ir_constant_folding: Look at instructions in functions.Eric Anholt
This was broken in the ir_label -> ir_function rework.
2010-05-26Refactor ir_dereference data fields to subclassesIan Romanick
2010-05-26Refactor ir_dereference support for ir_visitorIan Romanick
Move the accept method for visitors from ir_dereference to the derived classes.
2010-05-05Move optimization pass prototypes to a single header.Eric Anholt
2010-04-21Remove ir_label since it is no longer used.Kenneth Graunke
2010-04-07Put function bodies under function signatures, instead of flat in the parent.Eric Anholt
This will let us know the length of function bodies for the purpose of inlining (among other uses).
2010-04-07Add ir_loop_jump to represent 'break' and 'continue' in loopsIan Romanick
2010-04-07Add ir_loop to represent loopsIan Romanick
This touches a lot of files because everything derived from ir_visitor has to be updated. This is the primary disadvantage of the visitor pattern.
2010-04-06Make constant folding descend into if statements.Eric Anholt
2010-04-06Descend down the tree in more locations in constant folding.Eric Anholt
2010-04-06Perform constant folding on array indices.Eric Anholt
Replaces a constant var deref with a constant value in CorrectParse1.frag.
2010-04-06Fold constant expressions in if conditionals.Eric Anholt
Fixes up 3 more expressions in CorrectParse2.frag.
2010-04-06Add a constant folding optimization pass.Eric Anholt