1 /* 2 * Copyright © 2020 Google, Inc. 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #ifndef __IR3_ASM_H__ 7 #define __IR3_ASM_H__ 8 9 #include "main.h" 10 11 #include "ir3/ir3_parser.h" 12 #include "ir3/ir3_shader.h" 13 14 struct ir3_kernel { 15 struct kernel base; 16 struct ir3_kernel_info info; 17 struct backend *backend; 18 struct ir3_shader_variant *v; 19 void *bin; 20 }; 21 define_cast(kernel, ir3_kernel); 22 23 struct ir3_kernel *ir3_asm_assemble(struct ir3_compiler *c, FILE *in); 24 void ir3_asm_disassemble(struct ir3_kernel *k, FILE *out); 25 26 #endif /* __IR3_ASM_H__ */ 27