LLVM  14.0.0git
Classes | Namespaces | Functions
ModuleUtils.h File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include <utility>
Include dependency graph for ModuleUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  llvm::ArrayRef< T >
 ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory), i.e. More...


 This is an optimization pass for GlobalISel generic memory operations.


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. More...
void llvm::appendToGlobalDtors (Module &M, Function *F, int Priority, Constant *Data=nullptr)
 Same as appendToGlobalCtors(), but for global dtors. More...
FunctionCallee llvm::declareSanitizerInitFunction (Module &M, StringRef InitName, ArrayRef< Type * > InitArgTypes)
Functionllvm::createSanitizerCtor (Module &M, StringRef CtorName)
 Creates sanitizer constructor function. More...
std::pair< Function *, FunctionCalleellvm::createSanitizerCtorAndInitFunctions (Module &M, StringRef CtorName, StringRef InitName, ArrayRef< Type * > InitArgTypes, ArrayRef< Value * > InitArgs, StringRef VersionCheckName=StringRef())
 Creates sanitizer constructor function, and calls sanitizer's init function from it. More...
std::pair< Function *, FunctionCalleellvm::getOrCreateSanitizerCtorAndInitFunctions (Module &M, StringRef CtorName, StringRef InitName, ArrayRef< Type * > InitArgTypes, ArrayRef< Value * > InitArgs, function_ref< void(Function *, FunctionCallee)> FunctionsCreatedCallback, StringRef VersionCheckName=StringRef())
 Creates sanitizer constructor function lazily. More...
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. More...
void llvm::appendToUsed (Module &M, ArrayRef< GlobalValue * > Values)
 Adds global values to the llvm.used list. More...
void llvm::appendToCompilerUsed (Module &M, ArrayRef< GlobalValue * > Values)
 Adds global values to the llvm.compiler.used list. More...
void llvm::filterDeadComdatFunctions (Module &M, SmallVectorImpl< Function * > &DeadComdatFunctions)
 Filter out potentially dead comdat functions where other entries keep the entire comdat group alive. More...
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. More...
void llvm::VFABI::setVectorVariantNames (CallInst *CI, const SmallVector< std::string, 8 > &VariantMappings)
 Overwrite the Vector Function ABI variants attribute with the names provide in VariantMappings. More...