opt

package
v0.0.0-...-9dcd13a Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FoldConstexpr

func FoldConstexpr(fn *sexp.Func) bool

FoldConstexpr replaces constexpr with evaluation result.

func InlineCalls

func InlineCalls(fn *sexp.Func) bool

InlineCalls inlines suitable functions calls inside form.

func OptimizeFuncs

func OptimizeFuncs(funcs []*sexp.Func)

func ReduceStrength

func ReduceStrength(fn *sexp.Func) bool

ReduceStrength replaces operations with their less expensive equivalents.

func TryInline

func TryInline(form *sexp.Call) sexp.Form

TryInline returns inlined function body or the call expression itself if inlining is not possible/viable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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