LLVM  16.0.0git
Classes | Namespaces | Functions
ModuleUtils.h File Reference
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Alignment.h"
#include "llvm/Support/MemoryBufferRef.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.

Classes

class  llvm::SmallVectorImpl< T >
 This class consists of common code factored out of the SmallVector class to reduce code duplication based on the SmallVector 'N' template parameter. More...
 
class  llvm::ArrayRef< T >
 ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory), i.e. More...
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
 llvm::VFABI
 

Functions

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 (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::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. More...
 
void llvm::VFABI::setVectorVariantNames (CallInst *CI, ArrayRef< std::string > VariantMappings)
 Overwrite the Vector Function ABI variants attribute with the names provide in VariantMappings. More...