package
0.36.0
Repository: https://github.com/tinygo-org/tinygo.git
Documentation: pkg.go.dev

# Functions

AddStandardAttributes is a helper function to add standard function attributes to a function.
CreateStackSizeLoads replaces internal/task.getGoroutineStackSize calls with loads from internal/task.stackSizes that will be updated after linking.
LowerInterfaces lowers all intermediate interface calls and globals that are emitted by the compiler as higher-level intrinsics.
LowerInterrupts creates interrupt handlers for the interrupts created by runtime/interrupt.New.
MakeGCStackSlots converts all calls to runtime.trackPointer to explicit stores to stack slots that are scannable by the GC.
Optimize runs a number of optimization and transformation passes over the given module.
OptimizeAllocs tries to replace heap allocations with stack allocations whenever possible.
OptimizeMaps eliminates created but unused maps.
OptimizePackage runs optimization passes over the LLVM module for the given Go package.
OptimizeReflectImplements optimizes the following code: implements := someType.Implements(someInterfaceType) where someType is an arbitrary reflect.Type and someInterfaceType is a reflect.Type of interface kind, to the following code: _, implements := someType.(interfaceType) if the interface type is known at compile time (that is, someInterfaceType is a LLVM constant aggregate).
OptimizeStringEqual transforms runtime.stringEqual(...) calls into simple integer comparisons if at least one of the sides of the comparison is zero.
OptimizeStringToBytes transforms runtime.stringToBytes(...) calls into const []byte slices whenever possible.

# Structs

ErrMissingIntrinsic is an error indicating that a required intrinsic was not found in the module.