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/gram.y | |
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/gram.y')
-rw-r--r-- | assembler/gram.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assembler/gram.y b/assembler/gram.y index 8d81a04c7..67a5da97f 100644 --- a/assembler/gram.y +++ b/assembler/gram.y @@ -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); } |