diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-08 13:08:39 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-08 13:08:39 +0100 |
| commit | 2b96be0ae8b74e6081a00d740dfcbe205f76fb22 (patch) | |
| tree | 780289c3b3e5e72b3f96409c290007498bcec84e /src/ir_opt.cpp | |
| parent | 2a89d8021cf95f4a4d7dab269a262a1d2237f71b (diff) | |
Remove unnecessary `typedef` usage
Diffstat (limited to 'src/ir_opt.cpp')
| -rw-r--r-- | src/ir_opt.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ir_opt.cpp b/src/ir_opt.cpp index 856d8aaf0..c2c952b87 100644 --- a/src/ir_opt.cpp +++ b/src/ir_opt.cpp @@ -1,6 +1,6 @@ // Optimizations for the IR code -void ir_opt_add_operands(irValueArray *ops, irInstr *i) { +void ir_opt_add_operands(Array<irValue *> *ops, irInstr *i) { switch (i->kind) { case irInstr_Comment: break; @@ -126,8 +126,8 @@ bool ir_opt_block_has_phi(irBlock *b) { -irValueArray ir_get_block_phi_nodes(irBlock *b) { - irValueArray phis = {0}; +Array<irValue *> ir_get_block_phi_nodes(irBlock *b) { + Array<irValue *> phis = {0}; for_array(i, b->instrs) { irInstr *instr = &b->instrs[i]->Instr; if (instr->kind != irInstr_Phi) { @@ -140,7 +140,7 @@ irValueArray ir_get_block_phi_nodes(irBlock *b) { } void ir_remove_pred(irBlock *b, irBlock *p) { - irValueArray phis = ir_get_block_phi_nodes(b); + Array<irValue *> phis = ir_get_block_phi_nodes(b); isize i = 0; for_array(j, b->preds) { irBlock *pred = b->preds[j]; @@ -273,7 +273,7 @@ void ir_opt_blocks(irProcedure *proc) { void ir_opt_build_referrers(irProcedure *proc) { gbTempArenaMemory tmp = gb_temp_arena_memory_begin(&proc->module->tmp_arena); - irValueArray ops = {0}; // NOTE(bill): Act as a buffer + Array<irValue *> ops = {0}; // NOTE(bill): Act as a buffer array_init(&ops, proc->module->tmp_allocator, 64); // HACK(bill): This _could_ overflow the temp arena for_array(i, proc->blocks) { irBlock *b = proc->blocks[i]; @@ -286,7 +286,7 @@ void ir_opt_build_referrers(irProcedure *proc) { if (op == NULL) { continue; } - irValueArray *refs = ir_value_referrers(op); + Array<irValue *> *refs = ir_value_referrers(op); if (refs != NULL) { array_add(refs, instr); } |