From d008064b3ef6a85181a61e97f51a9b4c9319ddc8 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 30 Jan 2013 12:31:45 +0000 Subject: 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 --- assembler/gram.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'assembler/gram.y') diff --git a/assembler/gram.y b/assembler/gram.y index 8d81a04c..67a5da97 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); } -- cgit v1.2.3