summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/fast-jit/fe/jit_emit_numberic.h
blob: e73c3ebad504c0f9ffc96faff1d12de4b96959c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
 * Copyright (C) 2019 Intel Corporation. All rights reserved.
 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 */

#ifndef _JIT_EMIT_NUMBERIC_H_
#define _JIT_EMIT_NUMBERIC_H_

#include "../jit_compiler.h"
#include "../jit_frontend.h"

#ifdef __cplusplus
extern "C" {
#endif

bool
jit_compile_op_i32_clz(JitCompContext *cc);

bool
jit_compile_op_i32_ctz(JitCompContext *cc);

bool
jit_compile_op_i32_popcnt(JitCompContext *cc);

bool
jit_compile_op_i64_clz(JitCompContext *cc);

bool
jit_compile_op_i64_ctz(JitCompContext *cc);

bool
jit_compile_op_i64_popcnt(JitCompContext *cc);

bool
jit_compile_op_i32_arithmetic(JitCompContext *cc, IntArithmetic arith_op,
                              uint8 **p_frame_ip);

bool
jit_compile_op_i64_arithmetic(JitCompContext *cc, IntArithmetic arith_op,
                              uint8 **p_frame_ip);

bool
jit_compile_op_i32_bitwise(JitCompContext *cc, IntBitwise bitwise_op);

bool
jit_compile_op_i64_bitwise(JitCompContext *cc, IntBitwise bitwise_op);

bool
jit_compile_op_i32_shift(JitCompContext *cc, IntShift shift_op);

bool
jit_compile_op_i64_shift(JitCompContext *cc, IntShift shift_op);

bool
jit_compile_op_f32_math(JitCompContext *cc, FloatMath math_op);

bool
jit_compile_op_f64_math(JitCompContext *cc, FloatMath math_op);

bool
jit_compile_op_f32_arithmetic(JitCompContext *cc, FloatArithmetic arith_op);

bool
jit_compile_op_f64_arithmetic(JitCompContext *cc, FloatArithmetic arith_op);

bool
jit_compile_op_f32_copysign(JitCompContext *cc);

bool
jit_compile_op_f64_copysign(JitCompContext *cc);

#ifdef __cplusplus
} /* end of extern "C" */
#endif

#endif /* end of _JIT_EMIT_NUMBERIC_H_ */