• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2024 Intel Corporation
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #pragma once
7 
8 #include <stdio.h>
9 #include <stdbool.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 struct brw_isa_info;
16 struct brw_eu_inst;
17 
18 const struct brw_label *brw_find_label(const struct brw_label *root, int offset);
19 void brw_create_label(struct brw_label **labels, int offset, void *mem_ctx);
20 int brw_disassemble_inst(FILE *file, const struct brw_isa_info *isa,
21                          const struct brw_eu_inst *inst, bool is_compacted,
22                          int offset, const struct brw_label *root_label);
23 const struct
24 brw_label *brw_label_assembly(const struct brw_isa_info *isa,
25                               const void *assembly, int start, int end,
26                               void *mem_ctx);
27 void brw_disassemble_with_labels(const struct brw_isa_info *isa,
28                                  const void *assembly, int start, int end, FILE *out);
29 void brw_disassemble(const struct brw_isa_info *isa,
30                      const void *assembly, int start, int end,
31                      const struct brw_label *root_label, FILE *out);
32 int brw_disassemble_find_end(const struct brw_isa_info *isa,
33                              const void *assembly, int start);
34 void brw_disassemble_with_errors(const struct brw_isa_info *isa,
35                                  const void *assembly, int start, FILE *out);
36 
37 const char *brw_lsc_op_to_string(unsigned op);
38 const char *brw_lsc_addr_surftype_to_string(unsigned t);
39 const char *brw_lsc_data_size_to_string(unsigned s);
40 
41 #ifdef __cplusplus
42 } /* extern "C" */
43 #endif
44