C# Class LLVM.Function

Inheritance: Value
Show file Open project: aaronrandolph/LLVM.NET Class Usage Examples

Public Methods

Method Description
AppendBasicBlock ( BasicBlock block ) : BasicBlock
AppendBasicBlock ( string name ) : BasicBlock
Delete ( ) : void
Dump ( ) : void
Function ( LLVMValueRef handle ) : System
Function ( Module module, string name ) : System

Create a void function that takes no arguments

Function ( Module module, string name, TypeRef returnType ) : System

Create a function that takes no arguments

Function ( Module module, string name, TypeRef returnType, TypeRef paramTypes ) : System

Create a function with arguments and a return type.

Function ( string name, LLVMValueRef handle ) : System
GetParameter ( uint index ) : Value
IsDuplicate ( ) : bool
SetLinkage ( LLVMLinkage linkage ) : void
Validate ( LLVMVerifierFailureAction failureAction ) : bool

Method Details

AppendBasicBlock() public method

public AppendBasicBlock ( BasicBlock block ) : BasicBlock
block BasicBlock
return BasicBlock

AppendBasicBlock() public method

public AppendBasicBlock ( string name ) : BasicBlock
name string
return BasicBlock

Delete() public method

public Delete ( ) : void
return void

Dump() public method

public Dump ( ) : void
return void

Function() public method

public Function ( LLVMValueRef handle ) : System
handle LLVMValueRef
return System

Function() public method

Create a void function that takes no arguments
public Function ( Module module, string name ) : System
module Module
name string
return System

Function() public method

Create a function that takes no arguments
public Function ( Module module, string name, TypeRef returnType ) : System
module Module
name string
returnType TypeRef
return System

Function() public method

Create a function with arguments and a return type.
public Function ( Module module, string name, TypeRef returnType, TypeRef paramTypes ) : System
module Module
name string
returnType TypeRef
paramTypes TypeRef
return System

Function() public method

public Function ( string name, LLVMValueRef handle ) : System
name string
handle LLVMValueRef
return System

GetParameter() public method

public GetParameter ( uint index ) : Value
index uint
return Value

IsDuplicate() public method

public IsDuplicate ( ) : bool
return bool

SetLinkage() public method

public SetLinkage ( LLVMLinkage linkage ) : void
linkage LLVMLinkage
return void

Validate() public method

public Validate ( LLVMVerifierFailureAction failureAction ) : bool
failureAction LLVMVerifierFailureAction
return bool