X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ir.h;h=6dcbd5a905044bbdcb58c5fc5ca49da0bb9c26f4;hp=9736a40ba336d0e05f25d8e0554ac40c9b139072;hb=44b0d7f658f16482f21f5ee84ab0a7f0f5dc3e59;hpb=317e0499f7393d79fe02b7c0526dfca4b53706a7 diff --git a/ir.h b/ir.h index 9736a40..6dcbd5a 100644 --- a/ir.h +++ b/ir.h @@ -107,13 +107,13 @@ struct ir_instr { ir_value *(_ops[3]); ir_block *(bops[2]); - ir_phi_entry_t *phi; - ir_value **params; + std::vector phi; + std::vector params; - /* For the temp-allocation */ + // For the temp-allocation size_t eid; - /* For IFs */ + // For IFs bool likely; ir_block *owner; @@ -121,23 +121,23 @@ struct ir_instr { /* block */ struct ir_block { - char *label; - lex_ctx_t context; - bool final; /* once a jump is added we're done */ + char *label; + lex_ctx_t context; + bool final; /* once a jump is added we're done */ ir_instr **instr; ir_block **entries; ir_block **exits; - ir_value **living; + std::vector living; /* For the temp-allocation */ size_t entry_id; size_t eid; - bool is_return; + bool is_return; ir_function *owner; - bool generated; + bool generated; size_t code_start; };