diff options
author | Brian <[email protected]> | 2007-03-26 18:46:07 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-26 18:46:07 -0600 |
commit | 9878e8ff516486900228429f26b37cb01cd7313f (patch) | |
tree | f5c516c3ca9f8659e8790444299ea9293f52e807 /src/mesa/shader/slang/slang_ir.h | |
parent | 6583429f89df1b6838c5405bd32e5ef30bdf163f (diff) |
Checkpoint: implementing true CAL/RET instructions for subroutine calls.
Also, found/fixed a code generation regression: the emit_swizzle() function
was always returning NULL. This caused emit_move() to miss its chance at peephole
optimization.
Diffstat (limited to 'src/mesa/shader/slang/slang_ir.h')
-rw-r--r-- | src/mesa/shader/slang/slang_ir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h index a617a7e1737..a9a530aaf8f 100644 --- a/src/mesa/shader/slang/slang_ir.h +++ b/src/mesa/shader/slang/slang_ir.h @@ -62,6 +62,8 @@ typedef enum IR_RETURN, /* return from subroutine */ IR_CALL, /* call subroutine */ + IR_FUNC, /* inlined function code */ + IR_LOOP, /* high-level loop-begin / loop-end */ /* Children[0] = loop body */ /* Children[1] = loop tail code, or NULL */ |