|
void | LLVMDeleteFunction (LLVMValueRef Fn) |
|
LLVMBool | LLVMHasPersonalityFn (LLVMValueRef Fn) |
|
LLVMValueRef | LLVMGetPersonalityFn (LLVMValueRef Fn) |
|
void | LLVMSetPersonalityFn (LLVMValueRef Fn, LLVMValueRef PersonalityFn) |
|
unsigned | LLVMLookupIntrinsicID (const char *Name, size_t NameLen) |
|
unsigned | LLVMGetIntrinsicID (LLVMValueRef Fn) |
|
LLVMValueRef | LLVMGetIntrinsicDeclaration (LLVMModuleRef Mod, unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount) |
|
LLVMTypeRef | LLVMIntrinsicGetType (LLVMContextRef Ctx, unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount) |
|
const char * | LLVMIntrinsicGetName (unsigned ID, size_t *NameLength) |
|
const char * | LLVMIntrinsicCopyOverloadedName (unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount, size_t *NameLength) |
|
const char * | LLVMIntrinsicCopyOverloadedName2 (LLVMModuleRef Mod, unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount, size_t *NameLength) |
|
LLVMBool | LLVMIntrinsicIsOverloaded (unsigned ID) |
|
unsigned | LLVMGetFunctionCallConv (LLVMValueRef Fn) |
|
void | LLVMSetFunctionCallConv (LLVMValueRef Fn, unsigned CC) |
|
const char * | LLVMGetGC (LLVMValueRef Fn) |
|
void | LLVMSetGC (LLVMValueRef Fn, const char *Name) |
|
void | LLVMAddAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, LLVMAttributeRef A) |
|
unsigned | LLVMGetAttributeCountAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx) |
|
void | LLVMGetAttributesAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, LLVMAttributeRef *Attrs) |
|
LLVMAttributeRef | LLVMGetEnumAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, unsigned KindID) |
|
LLVMAttributeRef | LLVMGetStringAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, const char *K, unsigned KLen) |
|
void | LLVMRemoveEnumAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, unsigned KindID) |
|
void | LLVMRemoveStringAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, const char *K, unsigned KLen) |
|
void | LLVMAddTargetDependentFunctionAttr (LLVMValueRef Fn, const char *A, const char *V) |
|
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()
◆ LLVMAddTargetDependentFunctionAttr()
void LLVMAddTargetDependentFunctionAttr |
( |
LLVMValueRef |
Fn, |
|
|
const char * |
A, |
|
|
const char * |
V |
|
) |
| |
Add a target-dependent attribute to a function
- See also
- llvm::AttrBuilder::addAttribute()
◆ LLVMDeleteFunction()
Remove a function from its containing module and deletes it.
- See also
- llvm::Function::eraseFromParent()
◆ LLVMGetAttributeCountAtIndex()
◆ LLVMGetAttributesAtIndex()
◆ LLVMGetEnumAttributeAtIndex()
◆ LLVMGetFunctionCallConv()
Obtain the calling function of a function.
The returned value corresponds to the LLVMCallConv enumeration.
- See also
- llvm::Function::getCallingConv()
◆ LLVMGetGC()
Obtain the name of the garbage collector to use during code generation.
- See also
- llvm::Function::getGC()
◆ LLVMGetIntrinsicDeclaration()
Create or insert the declaration of an intrinsic. For overloaded intrinsics, parameter types must be provided to uniquely identify an overload.
- See also
- llvm::Intrinsic::getDeclaration()
◆ LLVMGetIntrinsicID()
Obtain the ID number from a function instance.
- See also
- llvm::Function::getIntrinsicID()
◆ LLVMGetPersonalityFn()
Obtain the personality function attached to the function.
- See also
- llvm::Function::getPersonalityFn()
◆ LLVMGetStringAttributeAtIndex()
◆ LLVMHasPersonalityFn()
Check whether the given function has a personality function.
- See also
- llvm::Function::hasPersonalityFn()
◆ LLVMIntrinsicCopyOverloadedName()
const char * LLVMIntrinsicCopyOverloadedName |
( |
unsigned |
ID, |
|
|
LLVMTypeRef * |
ParamTypes, |
|
|
size_t |
ParamCount, |
|
|
size_t * |
NameLength |
|
) |
| |
Deprecated: Use LLVMIntrinsicCopyOverloadedName2 instead.
◆ LLVMIntrinsicCopyOverloadedName2()
const 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.
Unlike LLVMIntrinsicGetName, the caller is responsible for freeing the returned string.
This version also supports unnamed types.
- See also
- llvm::Intrinsic::getName()
◆ LLVMIntrinsicGetName()
const char * LLVMIntrinsicGetName |
( |
unsigned |
ID, |
|
|
size_t * |
NameLength |
|
) |
| |
Retrieves the name of an intrinsic.
- See also
- llvm::Intrinsic::getName()
◆ LLVMIntrinsicGetType()
Retrieves the type of an intrinsic. For overloaded intrinsics, parameter types must be provided to uniquely identify an overload.
- See also
- llvm::Intrinsic::getType()
◆ LLVMIntrinsicIsOverloaded()
LLVMBool LLVMIntrinsicIsOverloaded |
( |
unsigned |
ID | ) |
|
Obtain if the intrinsic identified by the given ID is overloaded.
- See also
- llvm::Intrinsic::isOverloaded()
◆ LLVMLookupIntrinsicID()
unsigned LLVMLookupIntrinsicID |
( |
const char * |
Name, |
|
|
size_t |
NameLen |
|
) |
| |
Obtain the intrinsic ID number which matches the given function name.
- See also
- llvm::Function::lookupIntrinsicID()
◆ LLVMRemoveEnumAttributeAtIndex()
◆ LLVMRemoveStringAttributeAtIndex()
◆ LLVMSetFunctionCallConv()
void LLVMSetFunctionCallConv |
( |
LLVMValueRef |
Fn, |
|
|
unsigned |
CC |
|
) |
| |
Set the calling convention of a function.
- See also
- llvm::Function::setCallingConv()
- Parameters
-
Fn | Function to operate on |
CC | LLVMCallConv to set calling convention to |
◆ LLVMSetGC()
Define the garbage collector to use during code generation.
- See also
- llvm::Function::setGC()
◆ LLVMSetPersonalityFn()
Set the personality function attached to the function.
- See also
- llvm::Function::setPersonalityFn()