LLVM  8.0.1
Classes | Namespaces | Functions
ModuleUtils.h File Reference
#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.

Classes

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 class represents lattice values for constants.
 

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...
 
Functionllvm::checkSanitizerInterfaceFunction (Constant *FuncOrBitcast)
 
Functionllvm::declareSanitizerInitFunction (Module &M, StringRef InitName, ArrayRef< Type *> InitArgTypes)
 
std::pair< Function *, Function * > llvm::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 *, Function * > llvm::getOrCreateSanitizerCtorAndInitFunctions (Module &M, StringRef CtorName, StringRef InitName, ArrayRef< Type *> InitArgTypes, ArrayRef< Value *> InitArgs, function_ref< void(Function *, Function *)> FunctionsCreatedCallback, StringRef VersionCheckName=StringRef())
 Creates sanitizer constructor function lazily. More...
 
Functionllvm::getOrCreateInitFunction (Module &M, StringRef Name)
 
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...