diff options
author | Brian <[email protected]> | 2007-03-24 09:40:20 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-24 09:40:20 -0600 |
commit | dc3015f1574f26704c3498c56915b5570d777da4 (patch) | |
tree | 8bbc05574a5c7531eb84427d3dcc87c514b87edb /src/mesa/shader/slang/slang_ir.h | |
parent | b2bc563142c93fd9bfa503f7b9e5e99c7d450ccc (diff) |
move some code into new slang_ir.c file
Diffstat (limited to 'src/mesa/shader/slang/slang_ir.h')
-rw-r--r-- | src/mesa/shader/slang/slang_ir.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h index 37dd38eaa5d..2b7d8229326 100644 --- a/src/mesa/shader/slang/slang_ir.h +++ b/src/mesa/shader/slang/slang_ir.h @@ -175,4 +175,30 @@ typedef struct slang_ir_node_ } slang_ir_node; + +/** + * Assembly and IR info + */ +typedef struct +{ + slang_ir_opcode IrOpcode; + const char *IrName; + gl_inst_opcode InstOpcode; + GLuint ResultSize, NumParams; +} slang_ir_info; + + + +extern const slang_ir_info * +_slang_ir_info(slang_ir_opcode opcode); + + +extern void +_slang_free_ir_tree(slang_ir_node *n); + + +extern void +_slang_print_ir_tree(const slang_ir_node *n, int indent); + + #endif /* SLANG_IR_H */ |