wasm

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2025 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package wasm contains an IR->WASM compiler backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWasmEnabled added in v0.41.0

func IsWasmEnabled(bi string) bool

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

Compiler implements an IR->WASM compiler backend.

func New

func New() *Compiler

New returns a new compiler object.

func (*Compiler) ABIVersion added in v0.27.0

func (*Compiler) ABIVersion() ast.WasmABIVersion

ABIVersion returns the Wasm ABI version this compiler emits.

func (*Compiler) Compile

func (c *Compiler) Compile() (*module.Module, error)

Compile returns a compiled WASM module.

func (*Compiler) WithDebug added in v0.27.0

func (c *Compiler) WithDebug(sink io.Writer) *Compiler

WithDebug sets the sink for debug logs emitted by the compiler.

func (*Compiler) WithPolicy

func (c *Compiler) WithPolicy(p *ir.Policy) *Compiler

WithPolicy sets the policy to compile.

Directories

Path Synopsis
Package opa contains bytecode for the OPA-WASM library.
Package opa contains bytecode for the OPA-WASM library.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL