LLVM  mainline
Modules | Functions
Function values
Constants

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

Collaboration diagram for Function values:

Modules

 Function Parameters
 

Functions in this group relate to arguments/parameters on functions.


Functions

void LLVMDeleteFunction (LLVMValueRef Fn)
 Remove a function from its containing module and deletes it.
LLVMValueRef LLVMGetPersonalityFn (LLVMValueRef Fn)
 Obtain the personality function attached to the function.
void LLVMSetPersonalityFn (LLVMValueRef Fn, LLVMValueRef PersonalityFn)
 Set the personality function attached to the function.
unsigned LLVMGetIntrinsicID (LLVMValueRef Fn)
 Obtain the ID number from a function instance.
unsigned LLVMGetFunctionCallConv (LLVMValueRef Fn)
 Obtain the calling function of a function.
void LLVMSetFunctionCallConv (LLVMValueRef Fn, unsigned CC)
 Set the calling convention of a function.
const char * LLVMGetGC (LLVMValueRef Fn)
 Obtain the name of the garbage collector to use during code generation.
void LLVMSetGC (LLVMValueRef Fn, const char *Name)
 Define the garbage collector to use during code generation.
void LLVMAddFunctionAttr (LLVMValueRef Fn, LLVMAttribute PA)
 Add an attribute to a function.
void LLVMAddTargetDependentFunctionAttr (LLVMValueRef Fn, const char *A, const char *V)
 Add a target-dependent attribute to a function.
LLVMAttribute LLVMGetFunctionAttr (LLVMValueRef Fn)
 Obtain an attribute from a function.
void LLVMRemoveFunctionAttr (LLVMValueRef Fn, LLVMAttribute PA)
 Remove an attribute from a function.

Detailed Description

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

See also:
llvm::Function

Function Documentation

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

Add a target-dependent attribute to a function.

See also:
llvm::AttrBuilder::addAttribute()

Definition at line 1747 of file Core.cpp.

References llvm::AttrBuilder::addAttribute(), llvm::Function::addAttributes(), B, llvm::AttributeSet::FunctionIndex, and llvm::Function::getContext().

Remove a function from its containing module and deletes it.

See also:
llvm::Function::eraseFromParent()

Definition at line 1696 of file Core.cpp.

Obtain an attribute from a function.

See also:
llvm::Function::getAttributes()

Definition at line 1770 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:
llvm::Function::getCallingConv()

Definition at line 1714 of file Core.cpp.

const char* LLVMGetGC ( LLVMValueRef  Fn)

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

See also:
llvm::Function::getGC()

Definition at line 1723 of file Core.cpp.

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

Obtain the ID number from a function instance.

See also:
llvm::Function::getIntrinsicID()

Definition at line 1708 of file Core.cpp.

References F, and llvm::unwrap().

Obtain the personality function attached to the function.

See also:
llvm::Function::getPersonalityFn()

Definition at line 1700 of file Core.cpp.

References llvm::wrap().

Set the calling convention of a function.

See also:
llvm::Function::setCallingConv()
Parameters:
FnFunction to operate on
CCLLVMCallConv to set calling convention to

Definition at line 1718 of file Core.cpp.

void LLVMSetGC ( LLVMValueRef  Fn,
const char *  Name 
)

Define the garbage collector to use during code generation.

See also:
llvm::Function::setGC()

Definition at line 1728 of file Core.cpp.

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

void LLVMSetPersonalityFn ( LLVMValueRef  Fn,
LLVMValueRef  PersonalityFn 
)

Set the personality function attached to the function.

See also:
llvm::Function::setPersonalityFn()

Definition at line 1704 of file Core.cpp.