wasm

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package wasm contains an IR->WASM compiler backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) Compile

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

Compile returns a compiled WASM module.

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