Fix issues related to the 'continue' statement.
authorBrian <brian@yutani.localnet.net>
Fri, 23 Mar 2007 23:48:42 +0000 (17:48 -0600)
committerBrian <brian@yutani.localnet.net>
Fri, 23 Mar 2007 23:48:42 +0000 (17:48 -0600)
commitd1934c2065751e2c594316c5abd2c49c47bfc1b8
tree68ad68ce76c79017b80ce67d8012e2b33b8bac4f
parent81767eead9e1b1b5d5dfd274c0875fa1332a5983
Fix issues related to the 'continue' statement.

IR_LOOP now has two children: the body code, and the tail code.
Tail code is the "i++" part of a for-loop, or the expression at the end
of a "do {} while(expr);" loop.
"continue" translates into: "execute tail code; CONT;"
Also, the test for infinite do/while loops was incorrect.
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_ir.h