|
MLIR 24.0.0git
|
#include "mlir/Dialect/WasmSSA/IR/WasmSSA.h"#include "mlir/IR/Attributes.h"#include "mlir/IR/Builders.h"#include "mlir/IR/BuiltinAttributeInterfaces.h"#include "mlir/IR/BuiltinAttributes.h"#include "mlir/IR/BuiltinTypes.h"#include "mlir/IR/Location.h"#include "mlir/Support/LLVM.h"#include "mlir/Target/Wasm/WasmBinaryEncoding.h"#include "mlir/Target/Wasm/WasmImporter.h"#include "llvm/Support/Debug.h"#include "llvm/Support/DebugLog.h"#include "llvm/Support/Endian.h"#include "llvm/Support/FormatVariadic.h"#include "llvm/Support/LEB128.h"#include "llvm/Support/LogicalResult.h"#include <cassert>#include <cstddef>#include <cstdint>#include <variant>Go to the source code of this file.
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
| namespace | mlir::wasm |
Macros | |
| #define | DEBUG_TYPE "wasm-translate" |
| #define | APPLY_WASM_SEC_TRANSFORM |
| #define | WASM_SEC_TRANSFORM(section) |
| #define | REGISTER_PARSER_OPCODE_PARSER(parserType, opcode, builderName, parserName) |
| #define | REGISTER_PRIMARY_WASM_INST_PARSER(opcode, builderName, parserName) |
| #define | BUILD_NUMERIC_OP(OP_NAME, N_ARGS, PREFIX, SUFFIX, TYPE) |
| #define | BUILD_NUMERIC_BINOP_INT(OP_NAME, PREFIX) |
| #define | BUILD_NUMERIC_BINOP_FP(OP_NAME, PREFIX) |
| #define | BUILD_NUMERIC_BINOP_INTFP(OP_NAME, PREFIX) |
| #define | BUILD_NUMERIC_UNARY_OP_INT(OP_NAME, PREFIX) |
| #define | BUILD_NUMERIC_UNARY_OP_FP(OP_NAME, PREFIX) |
| #define | BUILD_CONVERSION_OP(IN_T, OUT_T, SOURCE_OP, TARGET_OP) |
| #define | BUILD_CONVERT_OP_FOR(DEST_T, WIDTH) |
| #define | BUILD_TRUNC_OP_FOR(SRC_T, WIDTH) |
| #define | BUILD_SLICE_EXTEND_PARSER(IT_WIDTH, EXTRACT_WIDTH) |
| #define | BUILD_REINTERPRET_PARSER(WIDTH, FP_TYPE) |
Functions | |
| OwningOpRef< ModuleOp > | mlir::wasm::importWebAssemblyToModule (llvm::SourceMgr &source, MLIRContext *context) |
| If source contains a valid Wasm binary file, this function returns a a ModuleOp containing the representation of the Wasm module encoded in the source file in the wasmssa dialect. | |
| #define APPLY_WASM_SEC_TRANSFORM |
Definition at line 65 of file TranslateFromWasm.cpp.
| #define BUILD_CONVERSION_OP | ( | IN_T, | |
| OUT_T, | |||
| SOURCE_OP, | |||
| TARGET_OP ) |
Definition at line 1469 of file TranslateFromWasm.cpp.
| #define BUILD_CONVERT_OP_FOR | ( | DEST_T, | |
| WIDTH ) |
Definition at line 1480 of file TranslateFromWasm.cpp.
| #define BUILD_NUMERIC_BINOP_FP | ( | OP_NAME, | |
| PREFIX ) |
Definition at line 1367 of file TranslateFromWasm.cpp.
| #define BUILD_NUMERIC_BINOP_INT | ( | OP_NAME, | |
| PREFIX ) |
Definition at line 1362 of file TranslateFromWasm.cpp.
| #define BUILD_NUMERIC_BINOP_INTFP | ( | OP_NAME, | |
| PREFIX ) |
Definition at line 1372 of file TranslateFromWasm.cpp.
| #define BUILD_NUMERIC_OP | ( | OP_NAME, | |
| N_ARGS, | |||
| PREFIX, | |||
| SUFFIX, | |||
| TYPE ) |
Definition at line 1350 of file TranslateFromWasm.cpp.
| #define BUILD_NUMERIC_UNARY_OP_FP | ( | OP_NAME, | |
| PREFIX ) |
Definition at line 1382 of file TranslateFromWasm.cpp.
| #define BUILD_NUMERIC_UNARY_OP_INT | ( | OP_NAME, | |
| PREFIX ) |
Definition at line 1377 of file TranslateFromWasm.cpp.
| #define BUILD_REINTERPRET_PARSER | ( | WIDTH, | |
| FP_TYPE ) |
Definition at line 1537 of file TranslateFromWasm.cpp.
| #define BUILD_SLICE_EXTEND_PARSER | ( | IT_WIDTH, | |
| EXTRACT_WIDTH ) |
Definition at line 1507 of file TranslateFromWasm.cpp.
| #define BUILD_TRUNC_OP_FOR | ( | SRC_T, | |
| WIDTH ) |
Definition at line 1491 of file TranslateFromWasm.cpp.
| #define DEBUG_TYPE "wasm-translate" |
Definition at line 35 of file TranslateFromWasm.cpp.
| #define REGISTER_PARSER_OPCODE_PARSER | ( | parserType, | |
| opcode, | |||
| builderName, | |||
| parserName ) |
Definition at line 1067 of file TranslateFromWasm.cpp.
| #define REGISTER_PRIMARY_WASM_INST_PARSER | ( | opcode, | |
| builderName, | |||
| parserName ) |
Definition at line 1075 of file TranslateFromWasm.cpp.
| #define WASM_SEC_TRANSFORM | ( | section | ) |
Definition at line 83 of file TranslateFromWasm.cpp.