LLVM  mainline
Modules | Functions
Function values
Collaboration diagram for Function values:


 Function Parameters


void LLVMDeleteFunction (LLVMValueRef Fn)
unsigned LLVMGetIntrinsicID (LLVMValueRef Fn)
unsigned LLVMGetFunctionCallConv (LLVMValueRef Fn)
void LLVMSetFunctionCallConv (LLVMValueRef Fn, unsigned CC)
const char * LLVMGetGC (LLVMValueRef Fn)
void LLVMSetGC (LLVMValueRef Fn, const char *Name)
void LLVMAddFunctionAttr (LLVMValueRef Fn, LLVMAttribute PA)
void LLVMAddTargetDependentFunctionAttr (LLVMValueRef Fn, const char *A, const char *V)
LLVMAttribute LLVMGetFunctionAttr (LLVMValueRef Fn)
void LLVMRemoveFunctionAttr (LLVMValueRef Fn, LLVMAttribute PA)

Detailed Description

Functions in this group operate on LLVMValueRef instances that correspond to llvm::Function instances.

See also:

Function Documentation

void LLVMAddTargetDependentFunctionAttr ( LLVMValueRef  Fn,
const char *  A,
const char *  V 

Remove a function from its containing module and deletes it.

See also:

Definition at line 1686 of file Core.cpp.

Obtain an attribute from a function.

See also:

Definition at line 1752 of file Core.cpp.

References llvm::AttributeSet::FunctionIndex, llvm::Function::getAttributes(), and llvm::AttributeSet::Raw().

Obtain the calling function of a function.

The returned value corresponds to the LLVMCallConv enumeration.

See also:

Definition at line 1696 of file Core.cpp.

const char* LLVMGetGC ( LLVMValueRef  Fn)

Obtain the name of the garbage collector to use during code generation.

See also:

Definition at line 1705 of file Core.cpp.

References F(), llvm::Function::getGC(), and llvm::Function::hasGC().

Obtain the ID number from a function instance.

See also:

Definition at line 1690 of file Core.cpp.

References F(), and llvm::unwrap().

Set the calling convention of a function.

See also:
FnFunction to operate on
CCLLVMCallConv to set calling convention to

Definition at line 1700 of file Core.cpp.

void LLVMSetGC ( LLVMValueRef  Fn,
const char *  Name 

Define the garbage collector to use during code generation.

See also:

Definition at line 1710 of file Core.cpp.

References llvm::Function::clearGC(), F(), and llvm::Function::setGC().