• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2024 Igalia S.L.
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #include "asm.h"
7 #include "isa.h"
8 
9 struct encode_state {
10 };
11 
12 static inline enum isa_opc
__instruction_case(struct encode_state * s,const struct etna_inst * instr)13 __instruction_case(struct encode_state *s, const struct etna_inst *instr)
14 {
15    return instr->opcode;
16 }
17 
18 #include "encode.h"
19 
isa_assemble_instruction(uint32_t * out,const struct etna_inst * instr)20 void isa_assemble_instruction(uint32_t *out, const struct etna_inst *instr)
21 {
22    bitmask_t encoded = encode__instruction(NULL, NULL, instr);
23 
24    store_instruction(out, encoded);
25 }
26