diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-30 12:31:45 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:41 +0000 |
commit | d008064b3ef6a85181a61e97f51a9b4c9319ddc8 (patch) | |
tree | 842ddfbb7e7dedf5ff32cafdab2ce8abd99ed1a8 /assembler/main.c | |
parent | 888b2dcae60cb2db0eb95adddfd894f58dc6dc89 (diff) |
assembler: Renamed the instruction field to insn
This will be less typing for the refactoring to come (which is use
struct brw_program_instruction in gram.y for the type of all the
instructions).
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/main.c')
-rw-r--r-- | assembler/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/assembler/main.c b/assembler/main.c index 269bc264..8579f963 100644 --- a/assembler/main.c +++ b/assembler/main.c @@ -237,7 +237,7 @@ static int is_entry_point(struct brw_program_instruction *i) assert(i->type == GEN4ASM_INSTRUCTION_LABEL); for (p = entry_point_table; p; p = p->next) { - if (strcmp(p->str, i->instruction.label.name) == 0) + if (strcmp(p->str, i->insn.label.name) == 0) return 1; } return 0; @@ -406,7 +406,7 @@ int main(int argc, char **argv) // insert NOP instructions until (inst_offset+1) % 4 == 0 while (((inst_offset+1) % 4) != 0) { tmp_entry = calloc(sizeof(*tmp_entry), 1); - tmp_entry->instruction.gen.header.opcode = BRW_OPCODE_NOP; + tmp_entry->insn.gen.header.opcode = BRW_OPCODE_NOP; entry->next = tmp_entry; tmp_entry->next = entry1; entry = tmp_entry; @@ -437,7 +437,7 @@ int main(int argc, char **argv) } for (entry = compiled_program.first; entry; entry = entry->next) { - struct relocatable_instruction *reloc = &entry->instruction.reloc; + struct relocatable_instruction *reloc = &entry->insn.reloc; struct brw_instruction *inst = &reloc->gen; if (!is_relocatable(entry)) @@ -497,9 +497,9 @@ int main(int argc, char **argv) entry = entry1) { entry1 = entry->next; if (!is_label(entry)) - print_instruction(output, &entry->instruction.gen); + print_instruction(output, &entry->insn.gen); else - free(entry->instruction.label.name); + free(entry->insn.label.name); free(entry); } if (binary_like_output) |