Documentation ¶
Index ¶
Constants ¶
View Source
const ( LLGOAuthor = "Andrew Wilkins <axwalk@gmail.com>" LLGOProducer = "llgo " + LLGOVersion + " (" + LLGOAuthor + ")" )
llgo constants.
View Source
const ( LLGOVersion = "0.1" LLGORuntimeVersion = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler interface { Compile(*token.FileSet, *ast.Package, map[ast.Expr]types.Type) (*Module, error) SetTraceEnabled(bool) SetTargetArch(string) SetTargetOs(string) }
func NewCompiler ¶
func NewCompiler() Compiler
type ConstValue ¶
ConstValue represents a constant value produced as the result of an expression.
func (ConstValue) Int64 ¶
func (v ConstValue) Int64() int64
func (ConstValue) LLVMValue ¶
func (v ConstValue) LLVMValue() llvm.Value
func (ConstValue) Type ¶
func (v ConstValue) Type() types.Type
type LLVMValue ¶
type LLVMValue struct {
// contains filtered or unexported fields
}
LLVMValue represents a dynamic value produced as the result of an expression.
type NilValue ¶
type NilValue struct {
// contains filtered or unexported fields
}
NilValue represents a nil value. All methods other than Convert will panic when called.
type TypeValue ¶
type TypeValue struct {
// contains filtered or unexported fields
}
TypeValue represents a Type result of an expression. All methods other than Type() will panic when called.
type Value ¶
type Value interface { // BinaryOp applies the specified binary operator to this value and the // specified right-hand operand, and returns a new Value. BinaryOp(op token.Token, rhs Value) Value // UnaryOp applies the specified unary operator and returns a new Value. UnaryOp(op token.Token) Value // Convert returns a new Value which has been converted to the specified // type. Convert(typ types.Type) Value // LLVMValue returns an llvm.Value for this value. LLVMValue() llvm.Value // Type returns the Type of the value. Type() types.Type }
Value is an interface for representing values returned by Go expressions.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.