|
LLVM
8.0.1
|
Functions in this group operate on LLVMValueRef instances that correspond to llvm::Function instances. More...
|
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. More... | |
| LLVMBool | LLVMHasPersonalityFn (LLVMValueRef Fn) |
| Check whether the given function has a personality function. More... | |
| LLVMValueRef | LLVMGetPersonalityFn (LLVMValueRef Fn) |
| Obtain the personality function attached to the function. More... | |
| void | LLVMSetPersonalityFn (LLVMValueRef Fn, LLVMValueRef PersonalityFn) |
| Set the personality function attached to the function. More... | |
| unsigned | LLVMGetIntrinsicID (LLVMValueRef Fn) |
| Obtain the ID number from a function instance. More... | |
| LLVMValueRef | LLVMGetIntrinsicDeclaration (LLVMModuleRef Mod, unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount) |
| Create or insert the declaration of an intrinsic. More... | |
| LLVMTypeRef | LLVMIntrinsicGetType (LLVMContextRef Ctx, unsigned ID, LLVMTypeRef *ParamTypes, size_t ParamCount) |
| Retrieves the type of an intrinsic. More... | |
| const char * | LLVMIntrinsicGetName (unsigned ID, size_t *NameLength) |
| Retrieves the name of an intrinsic. More... | |
| const char * | LLVMIntrinsicCopyOverloadedName (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. More... | |
| LLVMBool | LLVMIntrinsicIsOverloaded (unsigned ID) |
| Obtain if the intrinsic identified by the given ID is overloaded. More... | |
| unsigned | LLVMGetFunctionCallConv (LLVMValueRef Fn) |
| Obtain the calling function of a function. More... | |
| void | LLVMSetFunctionCallConv (LLVMValueRef Fn, unsigned CC) |
| Set the calling convention of a function. More... | |
| const char * | LLVMGetGC (LLVMValueRef Fn) |
| Obtain the name of the garbage collector to use during code generation. More... | |
| void | LLVMSetGC (LLVMValueRef Fn, const char *Name) |
| Define the garbage collector to use during code generation. More... | |
| void | LLVMAddAttributeAtIndex (LLVMValueRef F, LLVMAttributeIndex Idx, LLVMAttributeRef A) |
| Add an attribute to a function. More... | |
| 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) |
| Add a target-dependent attribute to a function. More... | |
Functions in this group operate on LLVMValueRef instances that correspond to llvm::Function instances.
| void LLVMAddAttributeAtIndex | ( | LLVMValueRef | F, |
| LLVMAttributeIndex | Idx, | ||
| LLVMAttributeRef | A | ||
| ) |
Add an attribute to a function.
Definition at line 2360 of file Core.cpp.
References F(), and llvm::unwrap().
| void LLVMAddTargetDependentFunctionAttr | ( | LLVMValueRef | Fn, |
| const char * | A, | ||
| const char * | V | ||
| ) |
Add a target-dependent attribute to a function.
Definition at line 2400 of file Core.cpp.
References llvm::Function::addAttribute(), llvm::AttributeList::FunctionIndex, llvm::Attribute::get(), and llvm::Function::getContext().
| void LLVMDeleteFunction | ( | LLVMValueRef | Fn | ) |
Remove a function from its containing module and deletes it.
| unsigned LLVMGetAttributeCountAtIndex | ( | LLVMValueRef | F, |
| LLVMAttributeIndex | Idx | ||
| ) |
Definition at line 2365 of file Core.cpp.
References F(), llvm::Intrinsic::getAttributes(), llvm::AttributeList::getAttributes(), and llvm::AttributeSet::getNumAttributes().
| void LLVMGetAttributesAtIndex | ( | LLVMValueRef | F, |
| LLVMAttributeIndex | Idx, | ||
| LLVMAttributeRef * | Attrs | ||
| ) |
Definition at line 2370 of file Core.cpp.
References F(), llvm::Intrinsic::getAttributes(), llvm::AttributeList::getAttributes(), and llvm::wrap().
| LLVMAttributeRef LLVMGetEnumAttributeAtIndex | ( | LLVMValueRef | F, |
| LLVMAttributeIndex | Idx, | ||
| unsigned | KindID | ||
| ) |
Definition at line 2377 of file Core.cpp.
References llvm::wrap().
| unsigned LLVMGetFunctionCallConv | ( | LLVMValueRef | Fn | ) |
Obtain the calling function of a function.
The returned value corresponds to the LLVMCallConv enumeration.
| const char* LLVMGetGC | ( | LLVMValueRef | Fn | ) |
Obtain the name of the garbage collector to use during code generation.
Definition at line 2347 of file Core.cpp.
References F(), llvm::Function::getGC(), and llvm::Function::hasGC().
| LLVMValueRef LLVMGetIntrinsicDeclaration | ( | LLVMModuleRef | Mod, |
| unsigned | ID, | ||
| LLVMTypeRef * | ParamTypes, | ||
| size_t | ParamCount | ||
| ) |
Create or insert the declaration of an intrinsic.
For overloaded intrinsics, parameter types must be provided to uniquely identify an overload.
Definition at line 2299 of file Core.cpp.
References llvm::Intrinsic::getDeclaration(), llvm_map_to_intrinsic_id(), llvm::unwrap(), and llvm::wrap().
| unsigned LLVMGetIntrinsicID | ( | LLVMValueRef | Fn | ) |
Obtain the ID number from a function instance.
Definition at line 2288 of file Core.cpp.
References F(), and llvm::unwrap().
| LLVMValueRef LLVMGetPersonalityFn | ( | LLVMValueRef | Fn | ) |
Obtain the personality function attached to the function.
Definition at line 2280 of file Core.cpp.
References llvm::wrap().
| LLVMAttributeRef LLVMGetStringAttributeAtIndex | ( | LLVMValueRef | F, |
| LLVMAttributeIndex | Idx, | ||
| const char * | K, | ||
| unsigned | KLen | ||
| ) |
Definition at line 2384 of file Core.cpp.
References llvm::wrap().
| LLVMBool LLVMHasPersonalityFn | ( | LLVMValueRef | Fn | ) |
Check whether the given function has a personality function.
| const char* LLVMIntrinsicCopyOverloadedName | ( | 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.
Definition at line 2322 of file Core.cpp.
References llvm::Intrinsic::getName(), llvm_map_to_intrinsic_id(), and llvm::unwrap().
Retrieves the name of an intrinsic.
Definition at line 2308 of file Core.cpp.
References llvm::Intrinsic::getName(), and llvm_map_to_intrinsic_id().
| LLVMTypeRef LLVMIntrinsicGetType | ( | LLVMContextRef | Ctx, |
| unsigned | ID, | ||
| LLVMTypeRef * | ParamTypes, | ||
| size_t | ParamCount | ||
| ) |
Retrieves the type of an intrinsic.
For overloaded intrinsics, parameter types must be provided to uniquely identify an overload.
Definition at line 2315 of file Core.cpp.
References llvm::Intrinsic::getType(), llvm_map_to_intrinsic_id(), llvm::unwrap(), and llvm::wrap().
Obtain if the intrinsic identified by the given ID is overloaded.
Definition at line 2333 of file Core.cpp.
References llvm::Intrinsic::isOverloaded(), and llvm_map_to_intrinsic_id().
| void LLVMRemoveEnumAttributeAtIndex | ( | LLVMValueRef | F, |
| LLVMAttributeIndex | Idx, | ||
| unsigned | KindID | ||
| ) |
| void LLVMRemoveStringAttributeAtIndex | ( | LLVMValueRef | F, |
| LLVMAttributeIndex | Idx, | ||
| const char * | K, | ||
| unsigned | KLen | ||
| ) |
| void LLVMSetFunctionCallConv | ( | LLVMValueRef | Fn, |
| unsigned | CC | ||
| ) |
Set the calling convention of a function.
| Fn | Function to operate on |
| CC | LLVMCallConv to set calling convention to |
| void LLVMSetGC | ( | LLVMValueRef | Fn, |
| const char * | Name | ||
| ) |
Define the garbage collector to use during code generation.
Definition at line 2352 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.
1.8.13