xref: /aosp_15_r20/external/mesa3d/src/intel/compiler/brw_asm.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright © 2018 Intel Corporation
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #ifndef BRW_ASM_H
7 #define BRW_ASM_H
8 
9 #include <stdio.h>
10 #include <stdbool.h>
11 
12 struct intel_device_info;
13 
14 typedef struct {
15    void *bin;
16    int   bin_size;
17    int   inst_count;
18 } brw_assemble_result;
19 
20 typedef enum {
21    BRW_ASSEMBLE_COMPACT = 1 << 0,
22 } brw_assemble_flags;
23 
24 brw_assemble_result brw_assemble(
25    void *mem_ctx, const struct intel_device_info *devinfo,
26    FILE *f, const char *filename, brw_assemble_flags flags);
27 
28 #endif /* BRW_ASM_H */
29