13 #ifndef MLIR_TARGET_WASMBINARYENCODING
14 #define MLIR_TARGET_WASMBINARYENCODING
33 static constexpr std::byte
clzI32{0x67};
34 static constexpr std::byte
ctzI32{0x68};
36 static constexpr std::byte
addI32{0x6A};
37 static constexpr std::byte
subI32{0x6B};
38 static constexpr std::byte
mulI32{0x6C};
43 static constexpr std::byte
andI32{0x71};
44 static constexpr std::byte
orI32{0x72};
45 static constexpr std::byte
xorI32{0x73};
46 static constexpr std::byte
shlI32{0x74};
51 static constexpr std::byte
clzI64{0x79};
52 static constexpr std::byte
ctzI64{0x7A};
54 static constexpr std::byte
addI64{0x7C};
55 static constexpr std::byte
subI64{0x7D};
56 static constexpr std::byte
mulI64{0x7E};
61 static constexpr std::byte
andI64{0x83};
62 static constexpr std::byte
orI64{0x84};
63 static constexpr std::byte
xorI64{0x85};
64 static constexpr std::byte
shlI64{0x86};
69 static constexpr std::byte
absF32{0x8B};
70 static constexpr std::byte
negF32{0x8C};
75 static constexpr std::byte
addF32{0x92};
76 static constexpr std::byte
subF32{0x93};
77 static constexpr std::byte
mulF32{0x94};
78 static constexpr std::byte
divF32{0x95};
79 static constexpr std::byte
minF32{0x96};
80 static constexpr std::byte
maxF32{0x97};
82 static constexpr std::byte
absF64{0x99};
83 static constexpr std::byte
negF64{0x9A};
88 static constexpr std::byte
addF64{0xA0};
89 static constexpr std::byte
subF64{0xA1};
90 static constexpr std::byte
mulF64{0xA2};
91 static constexpr std::byte
divF64{0xA3};
92 static constexpr std::byte
minF64{0xA4};
93 static constexpr std::byte
maxF64{0xA5};
95 static constexpr std::byte
wrap{0xA7};
104 static constexpr std::byte
v128{0x7B};
105 static constexpr std::byte
f64{0x7C};
106 static constexpr std::byte
f32{0x7D};
107 static constexpr std::byte
i64{0x7E};
108 static constexpr std::byte
i32{0x7F};
133 static constexpr std::byte
function{0x00};
134 static constexpr std::byte
table{0x01};
Include the generated interface declarations.
Byte encodings describing Wasm exports.
static constexpr std::byte memory
static constexpr std::byte table
static constexpr std::byte global
Byte encodings describing the mutability of globals.
static constexpr std::byte isMutable
static constexpr std::byte isConst
Byte encodings of Wasm imports.
static constexpr std::byte memType
static constexpr std::byte typeID
static constexpr std::byte tableType
static constexpr std::byte globalType
Byte encodings for Wasm instructions.
static constexpr std::byte ctzI64
static constexpr std::byte andI64
static constexpr std::byte shlI32
static constexpr std::byte mulF32
static constexpr std::byte rotlI32
static constexpr std::byte ceilF32
static constexpr std::byte addF32
static constexpr std::byte divF64
static constexpr std::byte divUI64
static constexpr std::byte maxF64
static constexpr std::byte truncF32
static constexpr std::byte sqrtF32
static constexpr std::byte subF64
static constexpr std::byte addI64
static constexpr std::byte shrSI32
static constexpr std::byte rotrI64
static constexpr std::byte orI64
static constexpr std::byte divSI32
static constexpr std::byte minF32
static constexpr std::byte globalGet
static constexpr std::byte absF64
static constexpr std::byte truncF64
static constexpr std::byte rotlI64
static constexpr std::byte negF64
static constexpr std::byte popcntI32
static constexpr std::byte orI32
static constexpr std::byte xorI32
static constexpr std::byte divSI64
static constexpr std::byte divUI32
static constexpr std::byte divF32
static constexpr std::byte shrUI32
static constexpr std::byte shrUI64
static constexpr std::byte copysignF64
static constexpr std::byte rotrI32
static constexpr std::byte copysignF32
static constexpr std::byte clzI64
static constexpr std::byte remUI64
static constexpr std::byte andI32
static constexpr std::byte subF32
static constexpr std::byte ctzI32
static constexpr std::byte constI64
static constexpr std::byte subI64
static constexpr std::byte subI32
static constexpr std::byte constFP64
static constexpr std::byte mulI64
static constexpr std::byte localTee
static constexpr std::byte absF32
static constexpr std::byte addI32
static constexpr std::byte floorF64
static constexpr std::byte localGet
static constexpr std::byte clzI32
static constexpr std::byte localSet
static constexpr std::byte sqrtF64
static constexpr std::byte constI32
static constexpr std::byte remSI32
static constexpr std::byte shrSI64
static constexpr std::byte negF32
static constexpr std::byte mulI32
static constexpr std::byte constFP32
static constexpr std::byte xorI64
static constexpr std::byte popcntI64
static constexpr std::byte shlI64
static constexpr std::byte wrap
static constexpr std::byte maxF32
static constexpr std::byte mulF64
static constexpr std::byte remSI64
static constexpr std::byte ceilF64
static constexpr std::byte remUI32
static constexpr std::byte minF64
static constexpr std::byte floorF32
static constexpr std::byte addF64
Byte encodings of types in Wasm binaries.
static constexpr std::byte externRef
static constexpr std::byte i32
static constexpr std::byte funcType
static constexpr std::byte i64
static constexpr std::byte emptyBlockType
static constexpr std::byte funcRef
static constexpr std::byte v128
static constexpr std::byte f64
static constexpr std::byte f32
static constexpr std::byte endByte