2024-01-24 22:43:58 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2024 Intel Corporation
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*/
|
|
|
|
|
|
2024-12-06 14:25:29 -08:00
|
|
|
#pragma once
|
2024-01-24 22:43:58 -08:00
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
struct brw_isa_info;
|
2024-12-14 14:44:47 -08:00
|
|
|
struct brw_eu_inst;
|
2024-01-24 22:43:58 -08:00
|
|
|
|
|
|
|
|
const struct brw_label *brw_find_label(const struct brw_label *root, int offset);
|
|
|
|
|
void brw_create_label(struct brw_label **labels, int offset, void *mem_ctx);
|
|
|
|
|
int brw_disassemble_inst(FILE *file, const struct brw_isa_info *isa,
|
2024-12-14 14:44:47 -08:00
|
|
|
const struct brw_eu_inst *inst, bool is_compacted,
|
2024-01-24 22:43:58 -08:00
|
|
|
int offset, const struct brw_label *root_label);
|
|
|
|
|
const struct
|
|
|
|
|
brw_label *brw_label_assembly(const struct brw_isa_info *isa,
|
|
|
|
|
const void *assembly, int start, int end,
|
|
|
|
|
void *mem_ctx);
|
|
|
|
|
void brw_disassemble_with_labels(const struct brw_isa_info *isa,
|
|
|
|
|
const void *assembly, int start, int end, FILE *out);
|
|
|
|
|
void brw_disassemble(const struct brw_isa_info *isa,
|
|
|
|
|
const void *assembly, int start, int end,
|
|
|
|
|
const struct brw_label *root_label, FILE *out);
|
2024-01-24 23:12:52 -08:00
|
|
|
int brw_disassemble_find_end(const struct brw_isa_info *isa,
|
|
|
|
|
const void *assembly, int start);
|
|
|
|
|
void brw_disassemble_with_errors(const struct brw_isa_info *isa,
|
|
|
|
|
const void *assembly, int start, FILE *out);
|
2024-01-24 22:43:58 -08:00
|
|
|
|
2024-08-13 19:00:14 -07:00
|
|
|
const char *brw_lsc_op_to_string(unsigned op);
|
|
|
|
|
const char *brw_lsc_addr_surftype_to_string(unsigned t);
|
|
|
|
|
const char *brw_lsc_data_size_to_string(unsigned s);
|
|
|
|
|
|
2024-01-24 22:43:58 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
} /* extern "C" */
|
|
|
|
|
#endif
|