Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions mlir/include/mlir/Target/Wasm/WasmImporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@

namespace mlir::wasm {

/// Translates the given operation to C++ code. The operation or operations in
/// the region of 'op' need almost all be in EmitC dialect. The parameter
/// 'declareVariablesAtTop' enforces that all variables for op results and block
/// arguments are declared at the beginning of the function.
/// If parameter 'fileId' is non-empty, then body of `emitc.file` ops
/// with matching id are emitted.
/// If `source` contains a valid Wasm binary file, this function returns a
/// a ModuleOp containing the representation of trhe Wasm module encoded in
/// the source file in the `wasmssa` dialect.
OwningOpRef<ModuleOp> importWebAssemblyToModule(llvm::SourceMgr &source,
MLIRContext *context);
} // namespace mlir::wasm
Expand Down
2 changes: 1 addition & 1 deletion mlir/lib/Target/Wasm/TranslateFromWasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class ParserHead {
LDBG() << " Current offset: " << offset;
if (nBytes > size())
return emitError(getLocation(), "trying to extract ")
<< nBytes << "bytes when only " << size() << "are avilables";
<< nBytes << "bytes when only " << size() << "are available";

StringRef res = head.slice(offset, offset + nBytes);
offset += nBytes;
Expand Down