mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Data Structures | Macros
WasmDSL.cpp File Reference
#include "backend/WasmDSL.hpp"
#include "backend/WasmMacro.hpp"
#include <mutable/catalog/Catalog.hpp>
#include <mutable/catalog/Schema.hpp>
Include dependency graph for WasmDSL.cpp:

Go to the source code of this file.

Data Structures

struct  MockInterface
 
struct  LinearAllocator
 A simple linear allocator which keeps a global pointer to the next free memory address and advances it for allocation. More...
 

Macros

#define CASE(TYPE, BLOCK)
 
#define DECLARE_LOAD(BINARYEN_TYPE, C_TYPE)
 
#define DECLARE_STORE(BINARYEN_TYPE, C_TYPE)
 

Macro Definition Documentation

◆ CASE

#define CASE (   TYPE,
  BLOCK 
)
Value:
case ::wasm::Expression::TYPE##Id: { \
auto _expr = expr; \
auto *expr = static_cast<const ::wasm::TYPE*>(_expr); \
BLOCK \
break; \
}
Helper type to deduce the Expr<U> type given a.
Definition: WasmDSL.hpp:160

Definition at line 41 of file WasmDSL.cpp.

◆ DECLARE_LOAD

#define DECLARE_LOAD (   BINARYEN_TYPE,
  C_TYPE 
)
Value:
C_TYPE load##BINARYEN_TYPE(::wasm::Address addr, ::wasm::Name) override { \
return _load<C_TYPE>(addr); \
}

Definition at line 182 of file WasmDSL.cpp.

◆ DECLARE_STORE

#define DECLARE_STORE (   BINARYEN_TYPE,
  C_TYPE 
)
Value:
void store##BINARYEN_TYPE(::wasm::Address addr, C_TYPE value, ::wasm::Name) override { \
return _store<C_TYPE>(addr, value); \
}
Bool< L > value
Definition: WasmUtil.hpp:1317