mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-21 18:30:52 +00:00
A note to clarify the ast_block/ir_block difference
This commit is contained in:
parent
307eb2d9a2
commit
4fe806edc2
1 changed files with 6 additions and 0 deletions
6
ast.c
6
ast.c
|
@ -444,6 +444,12 @@ bool ast_function_codegen(ast_function *self, ir_builder *ir)
|
|||
return true;
|
||||
}
|
||||
|
||||
/* Note, you will not see ast_block_codegen generate ir_blocks.
|
||||
* To the AST and the IR, blocks are 2 different things.
|
||||
* In the AST it represents a block of code, usually enclosed in
|
||||
* curly braces {...}.
|
||||
* While in the IR it represents a block in terms of control-flow.
|
||||
*/
|
||||
bool ast_block_codegen(ast_block *self, ast_function *func, bool lvalue, ir_value **out)
|
||||
{
|
||||
size_t i;
|
||||
|
|
Loading…
Reference in a new issue