• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2023 Igalia S.L.
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #ifndef _ISA_H_
7 #define _ISA_H_
8 
9 #include "compiler/isaspec/isaspec.h"
10 
11 struct etna_asm_result;
12 struct etna_inst;
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 void isa_assemble_instruction(uint32_t *out, const struct etna_inst *instr);
19 
20 extern struct etna_asm_result *isa_parse_str(const char *str, bool dual_16_mode);
21 extern struct etna_asm_result *isa_parse_file(const char *filepath, bool dual_16_mode);
22 extern void isa_asm_result_destroy(struct etna_asm_result *result);
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 
28 #endif /* _ISA_H_ */
29