codegen

package
v0.0.0-...-99d40e0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package codegen lowers Nebula IR to LLVM IR.

Index

Constants

View Source
const (
	DefaultMaxStackLen     = 1024
	DefaultMaxCallStackLen = 256
	DefaultMaxHeapBound    = 4096
)

Default configuration values.

Variables

This section is empty.

Functions

func EmitLLVMModule

func EmitLLVMModule(program *ir.Program, config Config) (llvm.Module, error)

EmitLLVMModule generates a LLVM IR module for the given program.

Types

type Config

type Config struct {
	MaxStackLen     uint
	MaxCallStackLen uint
	MaxHeapBound    uint
}

Config contains allocation size configuration for codegen.

Jump to

Keyboard shortcuts

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