1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
3 * Copyright (C) 2019-2021 Paul Cercueil <paul@crapouillou.net>
6 #ifndef __LIGHTREC_CONFIG_H__
7 #define __LIGHTREC_CONFIG_H__
9 #define ENABLE_THREADED_COMPILER LIGHTREC_ENABLE_THREADED_COMPILER
10 #define ENABLE_FIRST_PASS 1
11 #define ENABLE_DISASSEMBLER 0
12 #define ENABLE_CODE_BUFFER 1
14 #define HAS_DEFAULT_ELM 1
16 #define OPT_REMOVE_DIV_BY_ZERO_SEQ 1
17 #define OPT_REPLACE_MEMSET 1
18 #define OPT_DETECT_IMPOSSIBLE_BRANCHES 1
19 #define OPT_HANDLE_LOAD_DELAYS 1
20 #define OPT_TRANSFORM_OPS 1
21 #define OPT_LOCAL_BRANCHES 1
22 #define OPT_SWITCH_DELAY_SLOTS 1
24 #define OPT_FLAG_MULT_DIV 1
25 #define OPT_EARLY_UNLOAD 1
26 #define OPT_PRELOAD_PC 1
28 #endif /* __LIGHTREC_CONFIG_H__ */