Documentation
¶
Index ¶
- Variables
- func NextTemp() string
- type AllocaInst
- func (a AllocaInst) AllocatedTy() Type
- func (a AllocaInst) HasName() bool
- func (a AllocaInst) IsBinaryOp() bool
- func (a AllocaInst) IsBitBinOp() bool
- func (a AllocaInst) IsMemOp() bool
- func (a AllocaInst) IsOtherOp() bool
- func (a AllocaInst) IsTerm() bool
- func (a AllocaInst) Name() string
- func (a AllocaInst) NumOperands() int
- func (a AllocaInst) NumUses() int
- func (a AllocaInst) Opcode() Opcode
- func (a AllocaInst) Operand(int) Value
- func (a AllocaInst) OperandList() *list.List
- func (a AllocaInst) SetName(name string)
- func (a AllocaInst) String() string
- func (a AllocaInst) Type() Type
- type Argument
- type BasicBlock
- type BinaryOp
- func (b BinaryOp) HasName() bool
- func (b BinaryOp) IsBinaryOp() bool
- func (b BinaryOp) IsBitBinOp() bool
- func (b BinaryOp) IsMemOp() bool
- func (b BinaryOp) IsOtherOp() bool
- func (b BinaryOp) IsTerm() bool
- func (b BinaryOp) Name() string
- func (b BinaryOp) NumOperands() int
- func (b BinaryOp) NumUses() int
- func (b BinaryOp) Opcode() Opcode
- func (b BinaryOp) Operand(idx int) Value
- func (b BinaryOp) OperandList() *list.List
- func (b BinaryOp) SetName(name string)
- func (b BinaryOp) String() string
- func (b BinaryOp) Type() Type
- type BitVector
- type BranchInst
- func (b BranchInst) Cond() Value
- func (b BranchInst) HasName() bool
- func (b BranchInst) IsBinaryOp() bool
- func (b BranchInst) IsBitBinOp() bool
- func (b BranchInst) IsConditional() bool
- func (b BranchInst) IsMemOp() bool
- func (b BranchInst) IsOtherOp() bool
- func (b BranchInst) IsTerm() bool
- func (b BranchInst) Name() string
- func (b BranchInst) NumOperands() int
- func (b BranchInst) NumSuccessors() int
- func (b BranchInst) NumUses() int
- func (b BranchInst) Opcode() Opcode
- func (b BranchInst) Operand(idx int) Value
- func (b BranchInst) OperandList() *list.List
- func (b BranchInst) SetCond(cond Value)
- func (b BranchInst) SetName(string)
- func (b BranchInst) SetSuccessor(*BasicBlock)
- func (b BranchInst) String() string
- func (b BranchInst) Type() Type
- type Builder
- func (b *Builder) CreateAdd(lhs, rhs Value, name string) Value
- func (b *Builder) CreateAlloca(ty Type, name string) *AllocaInst
- func (b *Builder) CreateBr(dst *BasicBlock) *BranchInst
- func (b *Builder) CreateCall(fty *FunctionType, callee Value, args []Value, name string) *CallInstr
- func (b *Builder) CreateCmp(pred Opcode, lhs, rhs Value, name string) Value
- func (b *Builder) CreateCondBr(cond Value, ifTrue, ifFalse *BasicBlock) *BranchInst
- func (b *Builder) CreateLoad(ty Type, ptr Value, name string) *LoadInst
- func (b *Builder) CreateNeg(v Value, name string) Value
- func (b *Builder) CreateNot(v Value, name string) Value
- func (b *Builder) CreatePHI(ty Type, numIncomingValues uint, name string) *PHINode
- func (b *Builder) CreateRet(v Value) *ReturnInst
- func (b *Builder) CreateRetVoid() *ReturnInst
- func (b *Builder) CreateStore(Val, Dst Value) *StoreInst
- func (b *Builder) CreateSub(lhs, rhs Value, name string) Value
- func (b *Builder) CreateXOR(lhs, rhs Value, name string) Value
- func (b *Builder) GetInsertBlock() *BasicBlock
- func (b *Builder) SetInsertPoint(BB *BasicBlock)
- type CallInstr
- func (c CallInstr) HasName() bool
- func (c CallInstr) IsBinaryOp() bool
- func (c CallInstr) IsBitBinOp() bool
- func (c CallInstr) IsMemOp() bool
- func (c CallInstr) IsOtherOp() bool
- func (c CallInstr) IsTerm() bool
- func (c CallInstr) Name() string
- func (c CallInstr) NumOperands() int
- func (c CallInstr) NumUses() int
- func (c CallInstr) Opcode() Opcode
- func (c CallInstr) Operand(i int) Value
- func (c CallInstr) OperandList() *list.List
- func (c CallInstr) SetName(name string)
- func (c CallInstr) String() string
- func (c CallInstr) Type() Type
- type Constant
- type ConstantInt
- func (c ConstantInt) HasName() bool
- func (c ConstantInt) Name() string
- func (c ConstantInt) NumOperands() int
- func (c ConstantInt) NumUses() int
- func (c ConstantInt) Operand(int) Value
- func (c ConstantInt) OperandList() *list.List
- func (c ConstantInt) SetName(name string)
- func (c ConstantInt) String() string
- func (c ConstantInt) Type() Type
- type ControlFlowGraph
- func (cfg *ControlFlowGraph) AddPred(BlkName string, Predecessors ...*BasicBlock)
- func (cfg *ControlFlowGraph) AddSucc(BlkName string, Successors ...*BasicBlock)
- func (cfg *ControlFlowGraph) IsBrNode(blk string) bool
- func (cfg *ControlFlowGraph) IsJoinNode(blk string) bool
- func (cfg *ControlFlowGraph) PostOrder() []string
- func (cfg *ControlFlowGraph) ReversePostOrder() []string
- func (cfg *ControlFlowGraph) String() string
- type Function
- func (f Function) CFG() *ControlFlowGraph
- func (f Function) HasExternalLinkage() bool
- func (f Function) HasInternalLinkage() bool
- func (f Function) HasName() bool
- func (f Function) Name() string
- func (f Function) NumOperands() int
- func (f Function) NumUses() int
- func (f Function) Operand(int) Value
- func (f Function) OperandList() *list.List
- func (f Function) Parent() *Module
- func (f Function) SetName(name string)
- func (f Function) String() string
- func (f Function) SymbolTable()
- func (f Function) Type() Type
- type FunctionType
- func (f FunctionType) ArgType(i uint) Type
- func (FunctionType) IsFuncTy() bool
- func (FunctionType) IsIntegerTy() bool
- func (FunctionType) IsPtrTy() bool
- func (f FunctionType) IsVarArg() bool
- func (FunctionType) IsVoidTy() bool
- func (f FunctionType) NumArgs() int
- func (f FunctionType) ReturnType() Type
- func (f FunctionType) String() string
- type GlobalValue
- type ICmpInstr
- func (c ICmpInstr) HasName() bool
- func (c ICmpInstr) IsBinaryOp() bool
- func (c ICmpInstr) IsBitBinOp() bool
- func (c ICmpInstr) IsMemOp() bool
- func (c ICmpInstr) IsOtherOp() bool
- func (c ICmpInstr) IsTerm() bool
- func (c ICmpInstr) Name() string
- func (c ICmpInstr) NumOperands() int
- func (c ICmpInstr) NumUses() int
- func (c ICmpInstr) Opcode() Opcode
- func (c ICmpInstr) Operand(idx int) Value
- func (c ICmpInstr) OperandList() *list.List
- func (c ICmpInstr) SetName(name string)
- func (c ICmpInstr) String() string
- func (c ICmpInstr) Type() Type
- type Instruction
- type Int1
- type Int16
- type Int32
- type Int64
- type Int8
- type IntegerType
- type LabelType
- type LinkageKind
- type LoadInst
- func (l LoadInst) HasName() bool
- func (l LoadInst) IsBinaryOp() bool
- func (l LoadInst) IsBitBinOp() bool
- func (l LoadInst) IsMemOp() bool
- func (l LoadInst) IsOtherOp() bool
- func (l LoadInst) IsTerm() bool
- func (l LoadInst) Name() string
- func (l LoadInst) NumOperands() int
- func (l LoadInst) NumUses() int
- func (l LoadInst) Opcode() Opcode
- func (l LoadInst) Operand(idx int) Value
- func (l LoadInst) OperandList() *list.List
- func (l LoadInst) SetName(name string)
- func (l LoadInst) String() string
- func (l LoadInst) Type() Type
- type Module
- type Opcode
- type PHINode
- func (phi *PHINode) AddIncoming(v Value, blk *BasicBlock)
- func (phi *PHINode) HasName() bool
- func (phi *PHINode) IsBinaryOp() bool
- func (phi *PHINode) IsBitBinOp() bool
- func (phi *PHINode) IsMemOp() bool
- func (phi *PHINode) IsOtherOp() bool
- func (phi *PHINode) IsTerm() bool
- func (phi *PHINode) Name() string
- func (phi *PHINode) NumOperands() int
- func (phi *PHINode) NumUses() int
- func (phi *PHINode) Opcode() Opcode
- func (phi *PHINode) Operand(idx int) Value
- func (phi *PHINode) OperandList() *list.List
- func (phi *PHINode) SetName(name string)
- func (phi *PHINode) String() string
- func (phi *PHINode) Type() Type
- type PHINodeIncoming
- type PointerType
- type ReturnInst
- func (r ReturnInst) HasName() bool
- func (r ReturnInst) IsBinaryOp() bool
- func (r ReturnInst) IsBitBinOp() bool
- func (r ReturnInst) IsMemOp() bool
- func (r ReturnInst) IsOtherOp() bool
- func (r ReturnInst) IsTerm() bool
- func (r ReturnInst) Name() string
- func (r ReturnInst) NumOperands() int
- func (r ReturnInst) NumUses() int
- func (r ReturnInst) Opcode() Opcode
- func (r ReturnInst) Operand(idx int) Value
- func (r ReturnInst) OperandList() *list.List
- func (r ReturnInst) SetName(s string)
- func (r ReturnInst) String() string
- func (r ReturnInst) Type() Type
- type SetOfBBs
- func (s SetOfBBs) Add(blocks ...*BasicBlock)
- func (s SetOfBBs) Contains(blk string) bool
- func (s SetOfBBs) Empty() bool
- func (s SetOfBBs) Equal(other SetOfBBs) bool
- func (s SetOfBBs) Intersection(other SetOfBBs) SetOfBBs
- func (s SetOfBBs) Len() int
- func (s SetOfBBs) Pop() *BasicBlock
- func (s SetOfBBs) Remove(blk string) SetOfBBs
- func (s SetOfBBs) String() string
- func (s SetOfBBs) Union(other SetOfBBs) SetOfBBs
- type StoreInst
- func (s StoreInst) HasName() bool
- func (s StoreInst) IsBinaryOp() bool
- func (s StoreInst) IsBitBinOp() bool
- func (s StoreInst) IsMemOp() bool
- func (s StoreInst) IsOtherOp() bool
- func (s StoreInst) IsTerm() bool
- func (s StoreInst) Name() string
- func (s StoreInst) NumOperands() int
- func (s StoreInst) NumUses() int
- func (s StoreInst) Opcode() Opcode
- func (s StoreInst) Operand(idx int) Value
- func (s StoreInst) OperandList() *list.List
- func (s StoreInst) SetName(string)
- func (s StoreInst) String() string
- func (s StoreInst) Type() Type
- type Type
- type User
- type Value
- type ValueSymbolTable
- type Void
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type AllocaInst ¶
type AllocaInst struct {
// contains filtered or unexported fields
}
AllocaInst ... ---------------------
func CreateAlloca ¶
func CreateAlloca(ty Type, numElems int, align int, name string) *AllocaInst
func (AllocaInst) AllocatedTy ¶
func (a AllocaInst) AllocatedTy() Type
func (AllocaInst) HasName ¶
func (a AllocaInst) HasName() bool
func (AllocaInst) IsBinaryOp ¶
func (a AllocaInst) IsBinaryOp() bool
func (AllocaInst) IsBitBinOp ¶
func (a AllocaInst) IsBitBinOp() bool
func (AllocaInst) IsMemOp ¶
func (a AllocaInst) IsMemOp() bool
func (AllocaInst) IsOtherOp ¶
func (a AllocaInst) IsOtherOp() bool
func (AllocaInst) IsTerm ¶
func (a AllocaInst) IsTerm() bool
func (AllocaInst) Name ¶
func (a AllocaInst) Name() string
func (AllocaInst) NumOperands ¶
func (a AllocaInst) NumOperands() int
func (AllocaInst) NumUses ¶
func (a AllocaInst) NumUses() int
func (AllocaInst) Opcode ¶
func (a AllocaInst) Opcode() Opcode
func (AllocaInst) Operand ¶
func (a AllocaInst) Operand(int) Value
func (AllocaInst) OperandList ¶
func (a AllocaInst) OperandList() *list.List
func (AllocaInst) SetName ¶
func (a AllocaInst) SetName(name string)
func (AllocaInst) String ¶
func (a AllocaInst) String() string
func (AllocaInst) Type ¶
func (a AllocaInst) Type() Type
type Argument ¶
type Argument struct {
// contains filtered or unexported fields
}
Argument ... ---------------------
func CreateArgument ¶
func CreateArgument(ty *FunctionType, parent *Function, name string) *Argument
type BasicBlock ¶
type BasicBlock struct {
// contains filtered or unexported fields
}
BasicBlock ... -------------------------
func CreateBasicBlock ¶
func CreateBasicBlock(name string, parent *Function) *BasicBlock
func NewBasicBlock ¶
func NewBasicBlock(name string) *BasicBlock
func (BasicBlock) HasName ¶
func (b BasicBlock) HasName() bool
func (BasicBlock) Instr ¶
func (b BasicBlock) Instr() list.List
func (BasicBlock) Name ¶
func (b BasicBlock) Name() string
func (BasicBlock) Parent ¶
func (b BasicBlock) Parent() *Function
func (BasicBlock) SetName ¶
func (b BasicBlock) SetName(name string)
func (BasicBlock) String ¶
func (b BasicBlock) String() string
func (BasicBlock) Type ¶
func (b BasicBlock) Type() Type
type BinaryOp ¶
type BinaryOp struct {
// contains filtered or unexported fields
}
BinaryOp ... --------------------
func (BinaryOp) IsBinaryOp ¶
func (BinaryOp) IsBitBinOp ¶
func (BinaryOp) NumOperands ¶
func (BinaryOp) OperandList ¶
type BranchInst ¶
type BranchInst struct {
// contains filtered or unexported fields
}
BranchInst ... ---------------------
func CreateBr ¶
func CreateBr(dst *BasicBlock) *BranchInst
func CreateCondBrInst ¶
func CreateCondBrInst(cond Value, ifTrue, ifFalse *BasicBlock) *BranchInst
func (BranchInst) Cond ¶
func (b BranchInst) Cond() Value
func (BranchInst) HasName ¶
func (b BranchInst) HasName() bool
func (BranchInst) IsBinaryOp ¶
func (b BranchInst) IsBinaryOp() bool
func (BranchInst) IsBitBinOp ¶
func (b BranchInst) IsBitBinOp() bool
func (BranchInst) IsConditional ¶
func (b BranchInst) IsConditional() bool
func (BranchInst) IsMemOp ¶
func (b BranchInst) IsMemOp() bool
func (BranchInst) IsOtherOp ¶
func (b BranchInst) IsOtherOp() bool
func (BranchInst) IsTerm ¶
func (b BranchInst) IsTerm() bool
func (BranchInst) Name ¶
func (b BranchInst) Name() string
func (BranchInst) NumOperands ¶
func (b BranchInst) NumOperands() int
func (BranchInst) NumSuccessors ¶
func (b BranchInst) NumSuccessors() int
func (BranchInst) NumUses ¶
func (b BranchInst) NumUses() int
func (BranchInst) Opcode ¶
func (b BranchInst) Opcode() Opcode
func (BranchInst) Operand ¶
func (b BranchInst) Operand(idx int) Value
func (BranchInst) OperandList ¶
func (b BranchInst) OperandList() *list.List
func (BranchInst) SetCond ¶
func (b BranchInst) SetCond(cond Value)
func (BranchInst) SetName ¶
func (b BranchInst) SetName(string)
func (BranchInst) SetSuccessor ¶
func (b BranchInst) SetSuccessor(*BasicBlock)
func (BranchInst) String ¶
func (b BranchInst) String() string
func (BranchInst) Type ¶
func (b BranchInst) Type() Type
type Builder ¶
type Builder struct { BB *BasicBlock // the current BasicBlock where instructions are inserted CFG *ControlFlowGraph // A graph modelling control-flow for the current function }
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) CreateAlloca ¶
func (b *Builder) CreateAlloca(ty Type, name string) *AllocaInst
func (*Builder) CreateBr ¶
func (b *Builder) CreateBr(dst *BasicBlock) *BranchInst
func (*Builder) CreateCall ¶
func (*Builder) CreateCondBr ¶
func (b *Builder) CreateCondBr(cond Value, ifTrue, ifFalse *BasicBlock) *BranchInst
func (*Builder) CreateLoad ¶
func (*Builder) CreateRet ¶
func (b *Builder) CreateRet(v Value) *ReturnInst
func (*Builder) CreateRetVoid ¶
func (b *Builder) CreateRetVoid() *ReturnInst
func (*Builder) CreateStore ¶
func (*Builder) GetInsertBlock ¶
func (b *Builder) GetInsertBlock() *BasicBlock
GetInsertBlock returns the current BasicBlock where instructions are inserted
func (*Builder) SetInsertPoint ¶
func (b *Builder) SetInsertPoint(BB *BasicBlock)
SetInsertPoint updates the current BasicBlock to BB
type CallInstr ¶
type CallInstr struct {
// contains filtered or unexported fields
}
CallInstr ... --------------------
func CreateCall ¶
func CreateCall(fty *FunctionType, callee Value, args []Value, name string) *CallInstr
func (CallInstr) IsBinaryOp ¶
func (CallInstr) IsBitBinOp ¶
func (CallInstr) NumOperands ¶
func (CallInstr) OperandList ¶
type ConstantInt ¶
type ConstantInt struct {
// contains filtered or unexported fields
}
ConstantInt ... --------------------
func NewConstantInt ¶
func NewConstantInt(ty Type, value uint64, signed bool, name string) *ConstantInt
func (ConstantInt) HasName ¶
func (c ConstantInt) HasName() bool
func (ConstantInt) Name ¶
func (c ConstantInt) Name() string
func (ConstantInt) NumOperands ¶
func (c ConstantInt) NumOperands() int
func (ConstantInt) NumUses ¶
func (c ConstantInt) NumUses() int
func (ConstantInt) Operand ¶
func (c ConstantInt) Operand(int) Value
func (ConstantInt) OperandList ¶
func (c ConstantInt) OperandList() *list.List
func (ConstantInt) SetName ¶
func (c ConstantInt) SetName(name string)
func (ConstantInt) String ¶
func (c ConstantInt) String() string
func (ConstantInt) Type ¶
func (c ConstantInt) Type() Type
type ControlFlowGraph ¶
type ControlFlowGraph struct {
Entry, Exit *BasicBlock
Nodes SetOfBBs
Succ map[string][]string
Pred map[string][]string
}
ControlFlowGraph ----------------------------------------------------------------
func NewCFG ¶
func NewCFG() *ControlFlowGraph
func (*ControlFlowGraph) AddPred ¶
func (cfg *ControlFlowGraph) AddPred(BlkName string, Predecessors ...*BasicBlock)
func (*ControlFlowGraph) AddSucc ¶
func (cfg *ControlFlowGraph) AddSucc(BlkName string, Successors ...*BasicBlock)
func (*ControlFlowGraph) IsBrNode ¶
func (cfg *ControlFlowGraph) IsBrNode(blk string) bool
func (*ControlFlowGraph) IsJoinNode ¶
func (cfg *ControlFlowGraph) IsJoinNode(blk string) bool
func (*ControlFlowGraph) PostOrder ¶
func (cfg *ControlFlowGraph) PostOrder() []string
func (*ControlFlowGraph) ReversePostOrder ¶
func (cfg *ControlFlowGraph) ReversePostOrder() []string
func (*ControlFlowGraph) String ¶
func (cfg *ControlFlowGraph) String() string
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
Function ... -----------------------------
func CreateFunction ¶
func CreateFunction(ty *FunctionType, link LinkageKind, name string, module *Module) *Function
func (Function) CFG ¶
func (f Function) CFG() *ControlFlowGraph
func (Function) HasExternalLinkage ¶
func (Function) HasInternalLinkage ¶
func (Function) NumOperands ¶
func (Function) OperandList ¶
func (Function) SymbolTable ¶
func (f Function) SymbolTable()
type FunctionType ¶
type FunctionType struct {
// contains filtered or unexported fields
}
FunctionType ... ---------------------
func CreateFunctionType ¶
func CreateFunctionType(args []Type, retTy Type, varArgs bool) *FunctionType
func (FunctionType) ArgType ¶
func (f FunctionType) ArgType(i uint) Type
func (FunctionType) IsFuncTy ¶
func (FunctionType) IsFuncTy() bool
func (FunctionType) IsIntegerTy ¶
func (FunctionType) IsIntegerTy() bool
func (FunctionType) IsPtrTy ¶
func (FunctionType) IsPtrTy() bool
func (FunctionType) IsVarArg ¶
func (f FunctionType) IsVarArg() bool
func (FunctionType) IsVoidTy ¶
func (FunctionType) IsVoidTy() bool
func (FunctionType) NumArgs ¶
func (f FunctionType) NumArgs() int
func (FunctionType) ReturnType ¶
func (f FunctionType) ReturnType() Type
func (FunctionType) String ¶
func (f FunctionType) String() string
type GlobalValue ¶
type GlobalValue interface { Value Constant HasInternalLinkage() bool HasExternalLinkage() bool Parent() *Module }
GlobalValue denotes the base type of Global Variables and Functions ----------------------
type ICmpInstr ¶
type ICmpInstr struct {
// contains filtered or unexported fields
}
ICmpInstr ... --------------------------
func (ICmpInstr) IsBinaryOp ¶
func (ICmpInstr) IsBitBinOp ¶
func (ICmpInstr) NumOperands ¶
func (ICmpInstr) OperandList ¶
type Instruction ¶
type Int1 ¶
type Int1 struct {
// contains filtered or unexported fields
}
Int1 ... ----------------------
func (Int1) IsIntegerTy ¶
type Int16 ¶
type Int16 struct {
// contains filtered or unexported fields
}
Int16 ... ----------------------
func (Int16) IsIntegerTy ¶
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
Int32 ... ----------------------
func (Int32) IsIntegerTy ¶
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
Int64 ... ----------------------
func (Int64) IsIntegerTy ¶
type Int8 ¶
type Int8 struct {
// contains filtered or unexported fields
}
Int8 ... ----------------------
func (Int8) IsIntegerTy ¶
type IntegerType ¶
IntegerType ... ----------------------
func GetIntegerType ¶
func GetIntegerType(numBits uint) IntegerType
type LabelType ¶
type LabelType struct {
// contains filtered or unexported fields
}
LabelType ... ---------------------
func (LabelType) IsIntegerTy ¶
type LoadInst ¶
type LoadInst struct {
// contains filtered or unexported fields
}
LoadInst ... ----------------
func (LoadInst) IsBinaryOp ¶
func (LoadInst) IsBitBinOp ¶
func (LoadInst) NumOperands ¶
func (LoadInst) OperandList ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) GetFunction ¶
func (*Module) GetFunctionList ¶
func (*Module) GetOrInsertFunction ¶
func (m *Module) GetOrInsertFunction(name string, ty *FunctionType, link LinkageKind) *Function
type PHINode ¶
type PHINode struct {
// contains filtered or unexported fields
}
PHINode ... ---------------------
func (*PHINode) AddIncoming ¶
func (phi *PHINode) AddIncoming(v Value, blk *BasicBlock)
func (*PHINode) IsBinaryOp ¶
func (*PHINode) IsBitBinOp ¶
func (*PHINode) NumOperands ¶
func (*PHINode) OperandList ¶
type PHINodeIncoming ¶
type PHINodeIncoming struct { V Value Blk *BasicBlock }
func (PHINodeIncoming) String ¶
func (p PHINodeIncoming) String() string
type PointerType ¶
type PointerType struct {
// contains filtered or unexported fields
}
PointerType ... --------------------
func CreatePointerType ¶
func CreatePointerType(ty Type) *PointerType
func (PointerType) ElemType ¶
func (p PointerType) ElemType() Type
func (PointerType) IsFuncTy ¶
func (PointerType) IsFuncTy() bool
func (PointerType) IsIntegerTy ¶
func (PointerType) IsIntegerTy() bool
func (PointerType) IsPtrTy ¶
func (PointerType) IsPtrTy() bool
func (PointerType) IsVoidTy ¶
func (PointerType) IsVoidTy() bool
func (PointerType) String ¶
func (PointerType) String() string
type ReturnInst ¶
type ReturnInst struct {
// contains filtered or unexported fields
}
ReturnInst ... ---------------------
func CreateRet ¶
func CreateRet(ty Type, value Value) *ReturnInst
func CreateRetVoid ¶
func CreateRetVoid() *ReturnInst
func (ReturnInst) HasName ¶
func (r ReturnInst) HasName() bool
func (ReturnInst) IsBinaryOp ¶
func (r ReturnInst) IsBinaryOp() bool
func (ReturnInst) IsBitBinOp ¶
func (r ReturnInst) IsBitBinOp() bool
func (ReturnInst) IsMemOp ¶
func (r ReturnInst) IsMemOp() bool
func (ReturnInst) IsOtherOp ¶
func (r ReturnInst) IsOtherOp() bool
func (ReturnInst) IsTerm ¶
func (r ReturnInst) IsTerm() bool
func (ReturnInst) Name ¶
func (r ReturnInst) Name() string
func (ReturnInst) NumOperands ¶
func (r ReturnInst) NumOperands() int
func (ReturnInst) NumUses ¶
func (r ReturnInst) NumUses() int
func (ReturnInst) Opcode ¶
func (r ReturnInst) Opcode() Opcode
func (ReturnInst) Operand ¶
func (r ReturnInst) Operand(idx int) Value
func (ReturnInst) OperandList ¶
func (r ReturnInst) OperandList() *list.List
func (ReturnInst) SetName ¶
func (r ReturnInst) SetName(s string)
func (ReturnInst) String ¶
func (r ReturnInst) String() string
func (ReturnInst) Type ¶
func (r ReturnInst) Type() Type
type SetOfBBs ¶
type SetOfBBs map[string]*BasicBlock
SetOfBBs -----------------------------------------------------------------------
func (SetOfBBs) Add ¶
func (s SetOfBBs) Add(blocks ...*BasicBlock)
func (SetOfBBs) Intersection ¶
func (SetOfBBs) Pop ¶
func (s SetOfBBs) Pop() *BasicBlock
type StoreInst ¶
type StoreInst struct {
// contains filtered or unexported fields
}
StoreInst ... -------------------
func CreateStore ¶
func (StoreInst) IsBinaryOp ¶
func (StoreInst) IsBitBinOp ¶
func (StoreInst) NumOperands ¶
func (StoreInst) OperandList ¶
type Value ¶
type Value interface { Type() Type Name() string SetName(string) HasName() bool String() string NumUses() int }