mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Move type definition of IntCond and FloatCond to aot.h (#713)
This commit is contained in:
parent
3f316a99a0
commit
bb0e4503cb
|
@ -21,6 +21,29 @@ typedef InitializerExpression AOTInitExpr;
|
||||||
typedef WASMType AOTFuncType;
|
typedef WASMType AOTFuncType;
|
||||||
typedef WASMExport AOTExport;
|
typedef WASMExport AOTExport;
|
||||||
|
|
||||||
|
typedef enum AOTIntCond {
|
||||||
|
INT_EQZ = 0,
|
||||||
|
INT_EQ,
|
||||||
|
INT_NE,
|
||||||
|
INT_LT_S,
|
||||||
|
INT_LT_U,
|
||||||
|
INT_GT_S,
|
||||||
|
INT_GT_U,
|
||||||
|
INT_LE_S,
|
||||||
|
INT_LE_U,
|
||||||
|
INT_GE_S,
|
||||||
|
INT_GE_U
|
||||||
|
} AOTIntCond;
|
||||||
|
|
||||||
|
typedef enum AOTFloatCond {
|
||||||
|
FLOAT_EQ = 0,
|
||||||
|
FLOAT_NE,
|
||||||
|
FLOAT_LT,
|
||||||
|
FLOAT_GT,
|
||||||
|
FLOAT_LE,
|
||||||
|
FLOAT_GE
|
||||||
|
} AOTFloatCond;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Import memory
|
* Import memory
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -13,28 +13,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum IntCond {
|
typedef AOTIntCond IntCond;
|
||||||
INT_EQZ = 0,
|
typedef AOTFloatCond FloatCond;
|
||||||
INT_EQ,
|
|
||||||
INT_NE,
|
|
||||||
INT_LT_S,
|
|
||||||
INT_LT_U,
|
|
||||||
INT_GT_S,
|
|
||||||
INT_GT_U,
|
|
||||||
INT_LE_S,
|
|
||||||
INT_LE_U,
|
|
||||||
INT_GE_S,
|
|
||||||
INT_GE_U
|
|
||||||
} IntCond;
|
|
||||||
|
|
||||||
typedef enum FloatCond {
|
|
||||||
FLOAT_EQ = 0,
|
|
||||||
FLOAT_NE,
|
|
||||||
FLOAT_LT,
|
|
||||||
FLOAT_GT,
|
|
||||||
FLOAT_LE,
|
|
||||||
FLOAT_GE
|
|
||||||
} FloatCond;
|
|
||||||
|
|
||||||
typedef enum IntArithmetic {
|
typedef enum IntArithmetic {
|
||||||
INT_ADD = 0,
|
INT_ADD = 0,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user