Involved Source Files Package frontend implements the translation of WebAssembly to SSA IR using the ssa package.lower.gomisc.gosort_id.go
Package-Level Type Names (only one)
/* sort by: | */
Compiler is in charge of lowering Wasm to SSA IR, and does the optimization
on top of it in architecture-independent way. Init initializes the state of frontendCompiler and make it ready for a next function. LowerToSSA lowers the current function to SSA function which will be held by ssaBuilder.
After calling this, the caller will be able to access the SSA info in *Compiler.ssaBuilder.
Note that this only does the naive lowering, and do not do any optimization, instead the caller is expected to do so.
func NewFrontendCompiler(m *wasm.Module, ssaBuilder ssa.Builder, offset *wazevoapi.ModuleContextOffsetData, ensureTermination bool, listenerOn bool, sourceInfo bool) *Compiler
SignatureForListener returns the signatures for the listener functions.
SignatureForWasmFunctionType returns the ssa.Signature for the given wasm.FunctionType.
WasmTypeToSSAType converts wasm.ValueType to ssa.Type.
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.