I wanted to access the ir3_compiler from a small helper inside
ir3_shader.h, which currently isn't possible.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5607>
#include "util/u_math.h"
#include "instr-a3xx.h"
-#include "ir3_compiler.h"
+#include "ir3_shader.h"
/* simple allocator to carve allocations out of an up-front allocated heap,
* so that we can free everything easily in one shot.
#include <err.h>
#include "ir3_assembler.h"
-#include "ir3_compiler.h"
+#include "ir3_shader.h"
#include "ir3_parser.h"
/**
#ifndef IR3_COMPILER_H_
#define IR3_COMPILER_H_
-#include "ir3_shader.h"
+#include "ir3.h"
struct ir3_ra_reg_set;
+struct ir3_shader;
struct ir3_compiler {
struct fd_device *dev;
#include "util/u_math.h"
#include "ir3.h"
-#include "ir3_compiler.h"
+#include "ir3_shader.h"
/*
* Legalize:
#include "util/bitset.h"
#include "ir3.h"
-#include "ir3_compiler.h"
+#include "ir3_shader.h"
#include "ir3_ra.h"
#include "compiler/nir/nir.h"
#include "util/bitscan.h"
-#include "ir3.h"
+#include "ir3_compiler.h"
struct glsl_type;
#include "ir3.h"
#include "ir3_assembler.h"
-#include "ir3_compiler.h"
+#include "ir3_shader.h"
/*
* A test for delay-slot calculation. Each test specifies ir3 assembly