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>
This commit is contained in:
Damien Lespiau
2013-01-30 12:31:45 +00:00
parent 888b2dcae6
commit d008064b3e
4 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -201,7 +201,7 @@ static void brw_program_add_instruction(struct brw_program *p,
list_entry = calloc(sizeof(struct brw_program_instruction), 1);
list_entry->type = GEN4ASM_INSTRUCTION_GEN;
list_entry->instruction.gen = *instruction;
list_entry->insn.gen = *instruction;
brw_program_append_entry(p, list_entry);
}
@@ -212,7 +212,7 @@ static void brw_program_add_relocatable(struct brw_program *p,
list_entry = calloc(sizeof(struct brw_program_instruction), 1);
list_entry->type = GEN4ASM_INSTRUCTION_GEN_RELOCATABLE;
list_entry->instruction.reloc = *reloc;
list_entry->insn.reloc = *reloc;
brw_program_append_entry(p, list_entry);
}
@@ -222,7 +222,7 @@ static void brw_program_add_label(struct brw_program *p, const char *label)
list_entry = calloc(sizeof(struct brw_program_instruction), 1);
list_entry->type = GEN4ASM_INSTRUCTION_LABEL;
list_entry->instruction.label.name = strdup(label);
list_entry->insn.label.name = strdup(label);
brw_program_append_entry(p, list_entry);
}