Ian Romanick
|
f8e31e00b1
|
Add ir_loop_jump to represent 'break' and 'continue' in loops
|
15 years ago |
Ian Romanick
|
fad607a9be
|
Add ir_loop to represent loops
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.
|
15 years ago |
Eric Anholt
|
70b74928a2
|
Make constant folding descend into if statements.
|
15 years ago |
Eric Anholt
|
e5a9e70cde
|
Descend down the tree in more locations in constant folding.
|
15 years ago |
Eric Anholt
|
bae5be356e
|
Perform constant folding on array indices.
Replaces a constant var deref with a constant value in CorrectParse1.frag.
|
15 years ago |
Eric Anholt
|
3fff009af1
|
Fold constant expressions in if conditionals.
Fixes up 3 more expressions in CorrectParse2.frag.
|
15 years ago |
Eric Anholt
|
62735694a1
|
Add a constant folding optimization pass.
|
15 years ago |