Package org.robovm.compiler.llvm
Class Function
java.lang.Object
org.robovm.compiler.llvm.Function
- All Implemented Interfaces:
Writable
public class Function extends Object implements Writable
- Version:
- $Id$
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.robovm.compiler.llvm.Writable
Writable.Provider -
Constructor Summary
Constructors Constructor Description Function(Linkage linkage, FunctionAttribute[] attributes, String section, String name, FunctionType type, String... parameterNames) -
Method Summary
Modifier and Type Method Description Instructionadd(Instruction instruction)BasicBlockgetBasicBlock(Label label)List<BasicBlock>getBasicBlocks()BasicBlockgetCurrentBasicBlock()BasicBlockgetDefinedIn(VariableRef ref)StringgetName()String[]getParameterNames()VariableRefgetParameterRef(int index)VariableRef[]getParameterRefs()StringgetSignature()FunctionTypegetType()BasicBlocknewBasicBlock(Label label)BasicBlockRefnewBasicBlockRef(Label label)VariablenewVariable(String name, Type type)VariablenewVariable(Type type)FunctionRefref()voidsetParameterAttributes(int paramIndex, ParameterAttribute... attributes)StringtoString()voidwrite(Writer writer)
-
Constructor Details
-
Function
public Function(Linkage linkage, FunctionAttribute[] attributes, String section, String name, FunctionType type, String... parameterNames)
-
-
Method Details
-
ref
-
getName
-
getType
-
getParameterRef
-
getParameterRefs
-
getParameterNames
-
setParameterAttributes
-
newBasicBlock
-
newBasicBlockRef
-
getCurrentBasicBlock
-
getBasicBlocks
-
getBasicBlock
-
newVariable
-
newVariable
-
getDefinedIn
-
add
-
getSignature
-
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
toString
-