cdrom: adjust timing
[pcsx_rearmed.git] / deps / lightrec / recompiler.h
... / ...
CommitLineData
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2019-2021 Paul Cercueil <paul@crapouillou.net>
4 */
5
6#ifndef __LIGHTREC_RECOMPILER_H__
7#define __LIGHTREC_RECOMPILER_H__
8
9struct block;
10struct lightrec_state;
11struct recompiler;
12
13struct recompiler *lightrec_recompiler_init(struct lightrec_state *state);
14void lightrec_free_recompiler(struct recompiler *rec);
15int lightrec_recompiler_add(struct recompiler *rec, struct block *block);
16void lightrec_recompiler_remove(struct recompiler *rec, struct block *block);
17
18void * lightrec_recompiler_run_first_pass(struct lightrec_state *state,
19 struct block *block, u32 *pc);
20
21void lightrec_code_alloc_lock(struct lightrec_state *state);
22void lightrec_code_alloc_unlock(struct lightrec_state *state);
23
24#endif /* __LIGHTREC_RECOMPILER_H__ */