gpu_neon: don't include vector_ops.h in the main header
[pcsx_rearmed.git] / deps / lightrec / optimizer.h
CommitLineData
98fa08a5 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
d16005f8 2/*
98fa08a5 3 * Copyright (C) 2014-2021 Paul Cercueil <paul@crapouillou.net>
d16005f8
PC
4 */
5
6#ifndef __OPTIMIZER_H__
7#define __OPTIMIZER_H__
8
9#include "disassembler.h"
10
11struct block;
98fa08a5 12struct opcode;
d16005f8
PC
13
14_Bool opcode_reads_register(union code op, u8 reg);
15_Bool opcode_writes_register(union code op, u8 reg);
16_Bool has_delay_slot(union code op);
17_Bool load_in_delay_slot(union code op);
98fa08a5
PC
18_Bool opcode_is_io(union code op);
19_Bool is_unconditional_jump(union code c);
20_Bool is_syscall(union code c);
d16005f8 21
98fa08a5
PC
22_Bool should_emulate(const struct opcode *op);
23
24int lightrec_optimize(struct lightrec_state *state, struct block *block);
d16005f8
PC
25
26#endif /* __OPTIMIZER_H__ */