Skip to content

Commit bff79f3

Browse files
author
Luc Forget
committed
[MLIR][WASM] NFC: fix typo and documentation
1 parent 819e297 commit bff79f3

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

mlir/include/mlir/Target/Wasm/WasmImporter.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@
2121

2222
namespace mlir::wasm {
2323

24-
/// Translates the given operation to C++ code. The operation or operations in
25-
/// the region of 'op' need almost all be in EmitC dialect. The parameter
26-
/// 'declareVariablesAtTop' enforces that all variables for op results and block
27-
/// arguments are declared at the beginning of the function.
28-
/// If parameter 'fileId' is non-empty, then body of `emitc.file` ops
29-
/// with matching id are emitted.
24+
/// If `source` contains a valid Wasm binary file, this function returns a
25+
/// a ModuleOp containing the representation of trhe Wasm module encoded in
26+
/// the source file in the `wasmssa` dialect.
3027
OwningOpRef<ModuleOp> importWebAssemblyToModule(llvm::SourceMgr &source,
3128
MLIRContext *context);
3229
} // namespace mlir::wasm

mlir/lib/Target/Wasm/TranslateFromWasm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class ParserHead {
319319
LDBG() << " Current offset: " << offset;
320320
if (nBytes > size())
321321
return emitError(getLocation(), "trying to extract ")
322-
<< nBytes << "bytes when only " << size() << "are avilables";
322+
<< nBytes << "bytes when only " << size() << "are available";
323323

324324
StringRef res = head.slice(offset, offset + nBytes);
325325
offset += nBytes;

0 commit comments

Comments
 (0)