|
void | llvm::appendToGlobalCtors (Module &M, Function *F, int Priority, Constant *Data=nullptr) |
| Append F to the list of global ctors of module M with the given Priority.
|
|
void | llvm::appendToGlobalDtors (Module &M, Function *F, int Priority, Constant *Data=nullptr) |
| Same as appendToGlobalCtors(), but for global dtors.
|
|
void | llvm::transformGlobalCtors (Module &M, const GlobalCtorTransformFn &Fn) |
|
void | llvm::transformGlobalDtors (Module &M, const GlobalCtorTransformFn &Fn) |
|
void | llvm::setKCFIType (Module &M, Function &F, StringRef MangledType) |
| Sets the KCFI type for the function.
|
|
FunctionCallee | llvm::declareSanitizerInitFunction (Module &M, StringRef InitName, ArrayRef< Type * > InitArgTypes, bool Weak=false) |
|
Function * | llvm::createSanitizerCtor (Module &M, StringRef CtorName) |
| Creates sanitizer constructor function.
|
|
std::pair< Function *, FunctionCallee > | llvm::createSanitizerCtorAndInitFunctions (Module &M, StringRef CtorName, StringRef InitName, ArrayRef< Type * > InitArgTypes, ArrayRef< Value * > InitArgs, StringRef VersionCheckName=StringRef(), bool Weak=false) |
| Creates sanitizer constructor function, and calls sanitizer's init function from it.
|
|
std::pair< Function *, FunctionCallee > | llvm::getOrCreateSanitizerCtorAndInitFunctions (Module &M, StringRef CtorName, StringRef InitName, ArrayRef< Type * > InitArgTypes, ArrayRef< Value * > InitArgs, function_ref< void(Function *, FunctionCallee)> FunctionsCreatedCallback, StringRef VersionCheckName=StringRef(), bool Weak=false) |
| Creates sanitizer constructor function lazily.
|
|
bool | llvm::nameUnamedGlobals (Module &M) |
| Rename all the anon globals in the module using a hash computed from the list of public globals in the module.
|
|
void | llvm::appendToUsed (Module &M, ArrayRef< GlobalValue * > Values) |
| Adds global values to the llvm.used list.
|
|
void | llvm::appendToCompilerUsed (Module &M, ArrayRef< GlobalValue * > Values) |
| Adds global values to the llvm.compiler.used list.
|
|
void | llvm::removeFromUsedLists (Module &M, function_ref< bool(Constant *)> ShouldRemove) |
| Removes global values from the llvm.used and llvm.compiler.used arrays.
|
|
void | llvm::filterDeadComdatFunctions (SmallVectorImpl< Function * > &DeadComdatFunctions) |
| Filter out potentially dead comdat functions where other entries keep the entire comdat group alive.
|
|
std::string | llvm::getUniqueModuleId (Module *M) |
| Produce a unique identifier for this module by taking the MD5 sum of the names of the module's strong external symbols that are not comdat members.
|
|
void | llvm::embedBufferInModule (Module &M, MemoryBufferRef Buf, StringRef SectionName, Align Alignment=Align(1)) |
| Embed the memory buffer Buf into the module M as a global using the specified section name.
|
|
bool | llvm::lowerGlobalIFuncUsersAsGlobalCtor (Module &M, ArrayRef< GlobalIFunc * > IFuncsToLower={}) |
| Lower all calls to ifuncs by replacing uses with indirect calls loaded out of a global table initialized in a global constructor.
|
|