LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Modules | Functions
Function values
Collaboration diagram for Function values:

Modules

 Function Parameters
 

Functions

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
llvm::Function

Function Documentation

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

Add a target-dependent attribute to a fuction

See Also
llvm::AttrBuilder::addAttribute()

Definition at line 1509 of file Core.cpp.

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

void LLVMDeleteFunction ( LLVMValueRef  Fn)

Remove a function from its containing module and deletes it.

See Also
llvm::Function::eraseFromParent()

Definition at line 1466 of file Core.cpp.

LLVMAttribute LLVMGetFunctionAttr ( LLVMValueRef  Fn)

Obtain an attribute from a function.

See Also
llvm::Function::getAttributes()

Definition at line 1532 of file Core.cpp.

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

unsigned LLVMGetFunctionCallConv ( LLVMValueRef  Fn)

Obtain the calling function of a function.

The returned value corresponds to the LLVMCallConv enumeration.

See Also
llvm::Function::getCallingConv()

Definition at line 1476 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 1485 of file Core.cpp.

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

unsigned LLVMGetIntrinsicID ( LLVMValueRef  Fn)

Obtain the ID number from a function instance.

See Also
llvm::Function::getIntrinsicID()

Definition at line 1470 of file Core.cpp.

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

void LLVMRemoveFunctionAttr ( LLVMValueRef  Fn,
LLVMAttribute  PA 
)
void LLVMSetFunctionCallConv ( LLVMValueRef  Fn,
unsigned  CC 
)

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 1480 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 1490 of file Core.cpp.

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