LLVM: Function values (original) (raw)

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

Topics
Functions
LLVM_C_ABI void LLVMDeleteFunction (LLVMValueRef Fn)
Remove a function from its containing module and deletes it.
LLVM_C_ABI LLVMBool LLVMHasPersonalityFn (LLVMValueRef Fn)
Check whether the given function has a personality function.
LLVM_C_ABI LLVMValueRef LLVMGetPersonalityFn (LLVMValueRef Fn)
Obtain the personality function attached to the function.
LLVM_C_ABI void LLVMSetPersonalityFn (LLVMValueRef Fn, LLVMValueRef PersonalityFn)
Set the personality function attached to the function.
LLVM_C_ABI unsigned LLVMLookupIntrinsicID (const char *Name, size_t NameLen)
Obtain the intrinsic ID number which matches the given function name.
LLVM_C_ABI unsigned LLVMGetIntrinsicID (LLVMValueRef Fn)
Obtain the ID number from a function instance.
LLVM_C_ABI LLVMValueRef LLVMGetIntrinsicDeclaration (LLVMModuleRef Mod, unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount)
Get or insert the declaration of an intrinsic.
LLVM_C_ABI LLVMTypeRef LLVMIntrinsicGetType (LLVMContextRef Ctx, unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount)
Retrieves the type of an intrinsic.
LLVM_C_ABI const char * LLVMIntrinsicGetName (unsigned ID, size_t *NameLength)
Retrieves the name of an intrinsic.
LLVM_C_ABI char * LLVMIntrinsicCopyOverloadedName (unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount, size_t *NameLength)
Deprecated: Use LLVMIntrinsicCopyOverloadedName2 instead.
LLVM_C_ABI char * LLVMIntrinsicCopyOverloadedName2 (LLVMModuleRef Mod, unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount, size_t *NameLength)
Copies the name of an overloaded intrinsic identified by a given list of parameter types.
LLVM_C_ABI LLVMBool LLVMIntrinsicIsOverloaded (unsigned ID)
Obtain if the intrinsic identified by the given ID is overloaded.
LLVM_C_ABI unsigned LLVMGetFunctionCallConv (LLVMValueRef Fn)
Obtain the calling function of a function.
LLVM_C_ABI void LLVMSetFunctionCallConv (LLVMValueRef Fn, unsigned CC)
Set the calling convention of a function.
LLVM_C_ABI const char * LLVMGetGC (LLVMValueRef Fn)
Obtain the name of the garbage collector to use during code generation.
LLVM_C_ABI void LLVMSetGC (LLVMValueRef Fn, const char *Name)
Define the garbage collector to use during code generation.
LLVM_C_ABI LLVMValueRef LLVMGetPrefixData (LLVMValueRef Fn)
Gets the prefix data associated with a function.
LLVM_C_ABI LLVMBool LLVMHasPrefixData (LLVMValueRef Fn)
Check if a given function has prefix data.
LLVM_C_ABI void LLVMSetPrefixData (LLVMValueRef Fn, LLVMValueRef prefixData)
Sets the prefix data for the function.
LLVM_C_ABI LLVMValueRef LLVMGetPrologueData (LLVMValueRef Fn)
Gets the prologue data associated with a function.
LLVM_C_ABI LLVMBool LLVMHasPrologueData (LLVMValueRef Fn)
Check if a given function has prologue data.
LLVM_C_ABI void LLVMSetPrologueData (LLVMValueRef Fn, LLVMValueRef prologueData)
Sets the prologue data for the function.
LLVM_C_ABI void LLVMAddAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, LLVMAttributeRef A)
Add an attribute to a function.
LLVM_C_ABI unsigned LLVMGetAttributeCountAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx)
LLVM_C_ABI void LLVMGetAttributesAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, LLVMAttributeRef *Attrs)
LLVM_C_ABI LLVMAttributeRef LLVMGetEnumAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, unsigned KindID)
LLVM_C_ABI LLVMAttributeRef LLVMGetStringAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, const char *K, unsigned KLen)
LLVM_C_ABI void LLVMRemoveEnumAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, unsigned KindID)
LLVM_C_ABI void LLVMRemoveStringAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, const char *K, unsigned KLen)
LLVM_C_ABI void LLVMAddTargetDependentFunctionAttr (LLVMValueRef Fn, const char *A, const char *V)
Add a target-dependent attribute to a function.

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

See also

llvm::Function

LLVMAddAttributeAtIndex()

Add an attribute to a function.

See also

llvm::Function::addAttribute()

Definition at line 2602 of file Core.cpp.

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

LLVMAddTargetDependentFunctionAttr()

LLVMDeleteFunction()

LLVMGetAttributeCountAtIndex()

LLVMGetAttributesAtIndex()

LLVMGetEnumAttributeAtIndex()

LLVMGetFunctionCallConv()

LLVMGetGC()

LLVMGetIntrinsicDeclaration()

LLVMGetIntrinsicID()

LLVMGetPersonalityFn()

LLVMGetPrefixData()

LLVMGetPrologueData()

LLVMGetStringAttributeAtIndex()

LLVMHasPersonalityFn()

LLVMHasPrefixData()

LLVMHasPrologueData()

LLVMIntrinsicCopyOverloadedName()

LLVMIntrinsicCopyOverloadedName2()

LLVMIntrinsicGetName()

LLVMIntrinsicGetType()

LLVMIntrinsicIsOverloaded()

LLVMLookupIntrinsicID()

LLVMRemoveEnumAttributeAtIndex()

LLVMRemoveStringAttributeAtIndex()

LLVMSetFunctionCallConv()

LLVMSetGC()

LLVMSetPersonalityFn()

LLVMSetPrefixData()

LLVMSetPrologueData()