File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 2121
2222namespace 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.
3027OwningOpRef<ModuleOp> importWebAssemblyToModule (llvm::SourceMgr &source,
3128 MLIRContext *context);
3229} // namespace mlir::wasm
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments