LLVM 20.0.0git
|
Functions in this group relate to indirect functions. More...
Functions | |
LLVMValueRef | LLVMAddGlobalIFunc (LLVMModuleRef M, const char *Name, size_t NameLen, LLVMTypeRef Ty, unsigned AddrSpace, LLVMValueRef Resolver) |
Add a global indirect function to a module under a specified name. | |
LLVMValueRef | LLVMGetNamedGlobalIFunc (LLVMModuleRef M, const char *Name, size_t NameLen) |
Obtain a GlobalIFunc value from a Module by its name. | |
LLVMValueRef | LLVMGetFirstGlobalIFunc (LLVMModuleRef M) |
Obtain an iterator to the first GlobalIFunc in a Module. | |
LLVMValueRef | LLVMGetLastGlobalIFunc (LLVMModuleRef M) |
Obtain an iterator to the last GlobalIFunc in a Module. | |
LLVMValueRef | LLVMGetNextGlobalIFunc (LLVMValueRef IFunc) |
Advance a GlobalIFunc iterator to the next GlobalIFunc. | |
LLVMValueRef | LLVMGetPreviousGlobalIFunc (LLVMValueRef IFunc) |
Decrement a GlobalIFunc iterator to the previous GlobalIFunc. | |
LLVMValueRef | LLVMGetGlobalIFuncResolver (LLVMValueRef IFunc) |
Retrieves the resolver function associated with this indirect function, or NULL if it doesn't not exist. | |
void | LLVMSetGlobalIFuncResolver (LLVMValueRef IFunc, LLVMValueRef Resolver) |
Sets the resolver function associated with this indirect function. | |
void | LLVMEraseGlobalIFunc (LLVMValueRef IFunc) |
Remove a global indirect function from its parent module and delete it. | |
void | LLVMRemoveGlobalIFunc (LLVMValueRef IFunc) |
Remove a global indirect function from its parent module. | |
Functions in this group relate to indirect functions.
Functions in this group expect LLVMValueRef instances that correspond to llvm::GlobalIFunc instances.
LLVMValueRef LLVMAddGlobalIFunc | ( | LLVMModuleRef | M, |
const char * | Name, | ||
size_t | NameLen, | ||
LLVMTypeRef | Ty, | ||
unsigned | AddrSpace, | ||
LLVMValueRef | Resolver | ||
) |
Add a global indirect function to a module under a specified name.
Definition at line 2679 of file Core.cpp.
References llvm::GlobalIFunc::create(), llvm::GlobalValue::ExternalLinkage, Name, unwrap(), and llvm::wrap().
void LLVMEraseGlobalIFunc | ( | LLVMValueRef | IFunc | ) |
Remove a global indirect function from its parent module and delete it.
LLVMValueRef LLVMGetFirstGlobalIFunc | ( | LLVMModuleRef | M | ) |
Obtain an iterator to the first GlobalIFunc in a Module.
Definition at line 2694 of file Core.cpp.
References I, Mod, unwrap(), and llvm::wrap().
LLVMValueRef LLVMGetGlobalIFuncResolver | ( | LLVMValueRef | IFunc | ) |
Retrieves the resolver function associated with this indirect function, or NULL if it doesn't not exist.
Definition at line 2726 of file Core.cpp.
References llvm::wrap().
LLVMValueRef LLVMGetLastGlobalIFunc | ( | LLVMModuleRef | M | ) |
Obtain an iterator to the last GlobalIFunc in a Module.
Definition at line 2702 of file Core.cpp.
References I, Mod, unwrap(), and llvm::wrap().
LLVMValueRef LLVMGetNamedGlobalIFunc | ( | LLVMModuleRef | M, |
const char * | Name, | ||
size_t | NameLen | ||
) |
Obtain a GlobalIFunc value from a Module by its name.
The returned value corresponds to a llvm::GlobalIFunc value.
Definition at line 2689 of file Core.cpp.
References Name, unwrap(), and llvm::wrap().
LLVMValueRef LLVMGetNextGlobalIFunc | ( | LLVMValueRef | IFunc | ) |
Advance a GlobalIFunc iterator to the next GlobalIFunc.
Returns NULL if the iterator was already at the end and there are no more global aliases.
Definition at line 2710 of file Core.cpp.
References llvm::GlobalValue::getParent(), I, llvm::Module::ifunc_end(), and llvm::wrap().
LLVMValueRef LLVMGetPreviousGlobalIFunc | ( | LLVMValueRef | IFunc | ) |
Decrement a GlobalIFunc iterator to the previous GlobalIFunc.
Returns NULL if the iterator was already at the beginning and there are no previous global aliases.
Definition at line 2718 of file Core.cpp.
References llvm::GlobalValue::getParent(), I, llvm::Module::ifunc_begin(), and llvm::wrap().
void LLVMRemoveGlobalIFunc | ( | LLVMValueRef | IFunc | ) |
Remove a global indirect function from its parent module.
This unlinks the global indirect function from its containing module but keeps it alive.
void LLVMSetGlobalIFuncResolver | ( | LLVMValueRef | IFunc, |
LLVMValueRef | Resolver | ||
) |
Sets the resolver function associated with this indirect function.