LLVM API Documentation
#include <Module.h>

Member Variables | |
| class | Constant |
Public Types | |
Types And Enumerations | |
| enum | Endianness { AnyEndianness, LittleEndian, BigEndian } |
| An enumeration for describing the endianess of the target machine. More... | |
| enum | PointerSize { AnyPointerSize, Pointer32, Pointer64 } |
| An enumeration for describing the size of a pointer on the target machine. More... | |
| typedef iplist< GlobalVariable > | GlobalListType |
| The type for the list of global variables. | |
| typedef iplist< Function > | FunctionListType |
| The type for the list of functions. | |
| typedef iplist< GlobalAlias > | AliasListType |
| The type for the list of aliases. | |
| typedef std::vector< std::string > | LibraryListType |
| The type for the list of dependent libraries. | |
| typedef GlobalListType::iterator | global_iterator |
| The Global Variable iterator. | |
| typedef GlobalListType::const_iterator | const_global_iterator |
| The Global Variable constant iterator. | |
| typedef FunctionListType::iterator | iterator |
| The Function iterators. | |
| typedef FunctionListType::const_iterator | const_iterator |
| The Function constant iterator. | |
| typedef AliasListType::iterator | alias_iterator |
| The Global Alias iterators. | |
| typedef AliasListType::const_iterator | const_alias_iterator |
| The Global Alias constant iterator. | |
| typedef LibraryListType::const_iterator | lib_iterator |
| The Library list iterator. | |
Public Member Functions | |
Constructors | |
| Module (const std::string &ModuleID) | |
| ~Module () | |
| The module destructor. This will dropAllReferences. | |
Module Level Accessors | |
| const std::string & | getModuleIdentifier () const |
| const std::string & | getDataLayout () const |
| const std::string & | getTargetTriple () const |
| Endianness | getEndianness () const |
| Target endian information... | |
| PointerSize | getPointerSize () const |
| Target Pointer Size information... | |
| const std::string & | getModuleInlineAsm () const |
Module Level Mutators | |
| void | setModuleIdentifier (const std::string &ID) |
| Set the module identifier. | |
| void | setDataLayout (const std::string &DL) |
| Set the data layout. | |
| void | setTargetTriple (const std::string &T) |
| Set the target triple. | |
| void | setModuleInlineAsm (const std::string &Asm) |
| Set the module-scope inline assembly blocks. | |
| void | appendModuleInlineAsm (const std::string &Asm) |
Function Accessors | |
| Constant * | getOrInsertFunction (const std::string &Name, const FunctionType *T, AttrListPtr AttributeList) |
| Constant * | getOrInsertFunction (const std::string &Name, const FunctionType *T) |
| Constant * | getOrInsertFunction (const std::string &Name, AttrListPtr AttributeList, const Type *RetTy,...) END_WITH_NULL |
| Constant * | getOrInsertFunction (const std::string &Name, const Type *RetTy,...) END_WITH_NULL |
| Function * | getFunction (const std::string &Name) const |
| Function * | getFunction (const char *Name) const |
Global Variable Accessors | |
| GlobalVariable * | getGlobalVariable (const std::string &Name, bool AllowInternal=false) const |
| GlobalVariable * | getNamedGlobal (const std::string &Name) const |
| Constant * | getOrInsertGlobal (const std::string &Name, const Type *Ty) |
Global Alias Accessors | |
| GlobalAlias * | getNamedAlias (const std::string &Name) const |
Type Accessors | |
| bool | addTypeName (const std::string &Name, const Type *Ty) |
| std::string | getTypeName (const Type *Ty) const |
| const Type * | getTypeByName (const std::string &Name) const |
Direct access to the globals list, functions list, and symbol table | |
| const GlobalListType & | getGlobalList () const |
| Get the Module's list of global variables (constant). | |
| GlobalListType & | getGlobalList () |
| Get the Module's list of global variables. | |
| const FunctionListType & | getFunctionList () const |
| Get the Module's list of functions (constant). | |
| FunctionListType & | getFunctionList () |
| Get the Module's list of functions. | |
| const AliasListType & | getAliasList () const |
| Get the Module's list of aliases (constant). | |
| AliasListType & | getAliasList () |
| Get the Module's list of aliases. | |
| const ValueSymbolTable & | getValueSymbolTable () const |
| Get the symbol table of global variable and function identifiers. | |
| ValueSymbolTable & | getValueSymbolTable () |
| Get the Module's symbol table of global variable and function identifiers. | |
| const TypeSymbolTable & | getTypeSymbolTable () const |
| Get the symbol table of types. | |
| TypeSymbolTable & | getTypeSymbolTable () |
| Get the Module's symbol table of types. | |
Global Variable Iteration | |
| global_iterator | global_begin () |
| Get an iterator to the first global variable. | |
| const_global_iterator | global_begin () const |
| Get a constant iterator to the first global variable. | |
| global_iterator | global_end () |
| Get an iterator to the last global variable. | |
| const_global_iterator | global_end () const |
| Get a constant iterator to the last global variable. | |
| bool | global_empty () const |
| Determine if the list of globals is empty. | |
Function Iteration | |
| iterator | begin () |
| Get an iterator to the first function. | |
| const_iterator | begin () const |
| Get a constant iterator to the first function. | |
| iterator | end () |
| Get an iterator to the last function. | |
| const_iterator | end () const |
| Get a constant iterator to the last function. | |
| size_t | size () const |
| Determine how many functions are in the Module's list of functions. | |
| bool | empty () const |
| Determine if the list of functions is empty. | |
Dependent Library Iteration | |
| lib_iterator | lib_begin () const |
| Get a constant iterator to beginning of dependent library list. | |
| lib_iterator | lib_end () const |
| Get a constant iterator to end of dependent library list. | |
| size_t | lib_size () const |
| Returns the number of items in the list of libraries. | |
| void | addLibrary (const std::string &Lib) |
| Add a library to the list of dependent libraries. | |
| void | removeLibrary (const std::string &Lib) |
| Remove a library from the list of dependent libraries. | |
| const LibraryListType & | getLibraries () const |
| Get all the libraries. | |
Alias Iteration | |
| alias_iterator | alias_begin () |
| Get an iterator to the first alias. | |
| const_alias_iterator | alias_begin () const |
| Get a constant iterator to the first alias. | |
| alias_iterator | alias_end () |
| Get an iterator to the last alias. | |
| const_alias_iterator | alias_end () const |
| Get a constant iterator to the last alias. | |
| size_t | alias_size () const |
| Determine how many functions are in the Module's list of aliases. | |
| bool | alias_empty () const |
| Determine if the list of aliases is empty. | |
Utility functions for printing and dumping Module objects | |
| void | print (raw_ostream &OS, AssemblyAnnotationWriter *AAW) const |
| Print the module to an output stream with AssemblyAnnotationWriter. | |
| void | print (std::ostream &OS, AssemblyAnnotationWriter *AAW) const |
| void | dump () const |
| Dump the module to stderr (for debugging). | |
| void | dropAllReferences () |
Static Public Member Functions | |
| static unsigned | getFunctionListOffset () |
| static unsigned | getGlobalVariableListOffset () |
| static unsigned | getAliasListOffset () |
A Module instance is used to store all the information related to an LLVM module. Modules are the top level container of all other LLVM Intermediate Representation (IR) objects. Each module directly contains a list of globals variables, a list of functions, a list of libraries (or other modules) this module depends on, a symbol table, and various data about the target's characteristics.
A module maintains a GlobalValRefMap object that is used to hold all constant references to global variables in the module. When a global variable is destroyed, it should have no entries in the GlobalValueRefMap.
Definition at line 67 of file Module.h.
| typedef iplist<Function> llvm::Module::FunctionListType |
| typedef iplist<GlobalAlias> llvm::Module::AliasListType |
| typedef std::vector<std::string> llvm::Module::LibraryListType |
| typedef GlobalListType::iterator llvm::Module::global_iterator |
| typedef GlobalListType::const_iterator llvm::Module::const_global_iterator |
| typedef FunctionListType::iterator llvm::Module::iterator |
| typedef FunctionListType::const_iterator llvm::Module::const_iterator |
| typedef AliasListType::iterator llvm::Module::alias_iterator |
| typedef AliasListType::const_iterator llvm::Module::const_alias_iterator |
| typedef LibraryListType::const_iterator llvm::Module::lib_iterator |
| Module::Module | ( | const std::string & | ModuleID | ) | [explicit] |
The Module constructor. Note that there is no default constructor. You must provide a name for the module upon construction.
Definition at line 75 of file Module.cpp.
References DataLayout.
| Module::~Module | ( | ) |
The module destructor. This will dropAllReferences.
Definition at line 81 of file Module.cpp.
References dropAllReferences().
| const std::string& llvm::Module::getModuleIdentifier | ( | ) | const [inline] |
Get the module identifier which is, essentially, the name of the module.
Definition at line 138 of file Module.h.
Referenced by llvm::CloneModule(), llvm::AsmPrinter::doInitialization(), EmitCamlGlobal(), llvm::Linker::LinkInArchive(), llvm::Linker::LinkModules(), llvm::ProgramInfo::ProgramInfo(), and llvm::MPPassManager::runOnModule().
| const std::string& llvm::Module::getDataLayout | ( | ) | const [inline] |
Get the data layout string for the module's target platform. This encodes the type sizes and alignments expected by this module.
Definition at line 143 of file Module.h.
References DataLayout.
Referenced by llvm::CloneModule(), llvm::Linker::LinkModules(), llvm::TargetData::TargetData(), and WriteModuleInfo().
| const std::string& llvm::Module::getTargetTriple | ( | ) | const [inline] |
Get the target triple which is a string describing the target host.
Definition at line 147 of file Module.h.
Referenced by llvm::ARMSubtarget::ARMSubtarget(), llvm::CloneModule(), llvm::XCoreTargetMachine::getModuleMatchQuality(), llvm::X86_64TargetMachine::getModuleMatchQuality(), llvm::X86_32TargetMachine::getModuleMatchQuality(), llvm::SPUTargetMachine::getModuleMatchQuality(), llvm::SparcTargetMachine::getModuleMatchQuality(), llvm::PPC64TargetMachine::getModuleMatchQuality(), llvm::PPC32TargetMachine::getModuleMatchQuality(), llvm::MipselTargetMachine::getModuleMatchQuality(), llvm::MipsTargetMachine::getModuleMatchQuality(), llvm::IA64TargetMachine::getModuleMatchQuality(), llvm::ARMTargetMachine::getModuleMatchQuality(), llvm::ThumbTargetMachine::getModuleMatchQuality(), llvm::AlphaTargetMachine::getModuleMatchQuality(), llvm::Linker::LinkModules(), llvm::MipsSubtarget::MipsSubtarget(), llvm::PPCSubtarget::PPCSubtarget(), llvm::WriteBitcodeToStream(), WriteModuleInfo(), and llvm::X86Subtarget::X86Subtarget().
| Module::Endianness Module::getEndianness | ( | ) | const |
Target endian information...
Get the target endian information.
Definition at line 92 of file Module.cpp.
References AnyEndianness, BigEndian, llvm::getToken(), and LittleEndian.
Referenced by llvm::X86_64TargetMachine::getModuleMatchQuality(), llvm::X86_32TargetMachine::getModuleMatchQuality(), llvm::SparcTargetMachine::getModuleMatchQuality(), llvm::PPC64TargetMachine::getModuleMatchQuality(), llvm::PPC32TargetMachine::getModuleMatchQuality(), llvm::ARMTargetMachine::getModuleMatchQuality(), llvm::ThumbTargetMachine::getModuleMatchQuality(), llvm::AlphaTargetMachine::getModuleMatchQuality(), and llvm::Linker::LinkModules().
| Module::PointerSize Module::getPointerSize | ( | ) | const |
Target Pointer Size information...
Get the target pointer size.
Definition at line 110 of file Module.cpp.
References AnyPointerSize, llvm::getToken(), Pointer32, Pointer64, and size().
Referenced by llvm::X86_64TargetMachine::getModuleMatchQuality(), llvm::X86_32TargetMachine::getModuleMatchQuality(), llvm::SparcTargetMachine::getModuleMatchQuality(), llvm::PPC64TargetMachine::getModuleMatchQuality(), llvm::PPC32TargetMachine::getModuleMatchQuality(), llvm::ARMTargetMachine::getModuleMatchQuality(), llvm::ThumbTargetMachine::getModuleMatchQuality(), llvm::AlphaTargetMachine::getModuleMatchQuality(), and llvm::Linker::LinkModules().
| const std::string& llvm::Module::getModuleInlineAsm | ( | ) | const [inline] |
Get any module-scope inline assembly blocks.
Definition at line 159 of file Module.h.
Referenced by llvm::CloneModule(), llvm::AsmPrinter::doInitialization(), llvm::Linker::LinkModules(), and WriteModuleInfo().
| void llvm::Module::setModuleIdentifier | ( | const std::string & | ID | ) | [inline] |
| void llvm::Module::setDataLayout | ( | const std::string & | DL | ) | [inline] |
Set the data layout.
Definition at line 169 of file Module.h.
References DataLayout.
Referenced by llvm::CloneModule(), and llvm::Linker::LinkModules().
| void llvm::Module::setTargetTriple | ( | const std::string & | T | ) | [inline] |
Set the target triple.
Definition at line 172 of file Module.h.
Referenced by llvm::CloneModule(), and llvm::Linker::LinkModules().
| void llvm::Module::setModuleInlineAsm | ( | const std::string & | Asm | ) | [inline] |
Set the module-scope inline assembly blocks.
Definition at line 175 of file Module.h.
Referenced by llvm::CloneModule(), and llvm::Linker::LinkModules().
| void llvm::Module::appendModuleInlineAsm | ( | const std::string & | Asm | ) | [inline] |
| Constant * Module::getOrInsertFunction | ( | const std::string & | Name, | |
| const FunctionType * | T, | |||
| AttrListPtr | AttributeList | |||
| ) |
getOrInsertFunction - Look up the specified function in the module symbol table. Four possibilities: 1. If it does not exist, add a prototype for the function and return it. 2. If it exists, and has internal linkage, the existing function is renamed and a new one is inserted. 3. Otherwise, if the existing function has the correct prototype, return the existing function. 4. Finally, the function exists but has the wrong prototype: return the function with a constantexpr cast to the right prototype.
Definition at line 139 of file Module.cpp.
References llvm::Function::Create(), llvm::GlobalValue::ExternalLinkage, F, llvm::ConstantExpr::getBitCast(), llvm::GlobalValue::getType(), llvm::PointerType::getUnqual(), getValueSymbolTable(), llvm::GlobalValue::hasInternalLinkage(), llvm::Function::isIntrinsic(), llvm::ValueSymbolTable::lookup(), llvm::Function::setAttributes(), and llvm::Value::setName().
Referenced by llvm::IntrinsicLowering::AddPrototypes(), EnsureFunctionExists(), llvm::Intrinsic::getDeclaration(), getOrInsertFunction(), llvm::InsertProfilingInitCall(), LowerPartSelect(), LowerPartSet(), ReplaceCallWith(), and UpgradeIntrinsicFunction1().
| Constant * Module::getOrInsertFunction | ( | const std::string & | Name, | |
| const FunctionType * | T | |||
| ) |
Definition at line 174 of file Module.cpp.
References llvm::AttrListPtr::get(), and getOrInsertFunction().
| Constant * Module::getOrInsertFunction | ( | const std::string & | Name, | |
| AttrListPtr | AttributeList, | |||
| const Type * | RetTy, | |||
| ... | ||||
| ) |
getOrInsertFunction - Look up the specified function in the module symbol table. If it does not exist, add a prototype for the function and return it. This function guarantees to return a constant of pointer to the specified function type or a ConstantExpr BitCast of that type if the named function has a different type. This version of the method takes a null terminated list of function arguments, which makes it easier for clients to use.
Definition at line 185 of file Module.cpp.
References llvm::FunctionType::get(), and getOrInsertFunction().
Definition at line 203 of file Module.cpp.
References llvm::AttrListPtr::get(), llvm::FunctionType::get(), and getOrInsertFunction().
| Function * Module::getFunction | ( | const std::string & | Name | ) | const |
getFunction - Look up the specified function in the module symbol table. If it does not exist, return null.
Definition at line 223 of file Module.cpp.
References getValueSymbolTable(), and llvm::ValueSymbolTable::lookup().
Referenced by llvm::AsmPrinter::doFinalization(), GetAllUndefinedSymbols(), LinkAlias(), and StripDebugInfo().
| Function * Module::getFunction | ( | const char * | Name | ) | const |
Definition at line 228 of file Module.cpp.
References getValueSymbolTable(), and llvm::ValueSymbolTable::lookup().
| GlobalVariable * Module::getGlobalVariable | ( | const std::string & | Name, | |
| bool | AllowInternal = false | |||
| ) | const |
getGlobalVariable - Look up the specified global variable in the module symbol table. If it does not exist, return null. If AllowInternal is set to true, this function will return types that have InternalLinkage. By default, these types are not returned.
getGlobalVariable - Look up the specified global variable in the module symbol table. If it does not exist, return null. The type argument should be the underlying type of the global, i.e., it should not have the top-level PointerType, which represents the address of the global. If AllowInternal is set to true, this function will return types that have InternalLinkage. By default, these types are not returned.
Definition at line 244 of file Module.cpp.
References llvm::dyn_cast(), llvm::GlobalValue::hasInternalLinkage(), llvm::ValueSymbolTable::lookup(), and V.
Referenced by llvm::MachineModuleInfo::AnalyzeModule(), findUsedValues(), getGlobalVariablesUsing(), getNamedGlobal(), llvm::ProgramInfo::getSourceFiles(), llvm::ProgramInfo::getSourceFunctions(), LinkAlias(), and llvm::DebugInfoBuilder::setModule().
| GlobalVariable* llvm::Module::getNamedGlobal | ( | const std::string & | Name | ) | const [inline] |
getNamedGlobal - Return the first global variable in the module with the specified name, of arbitrary type. This method returns null if a global with the specified name is not found.
Definition at line 235 of file Module.h.
References getGlobalVariable().
Referenced by llvm::ExecutionEngine::runStaticConstructorsDestructors(), and StripDebugInfo().
getOrInsertGlobal - Look up the specified global in the module symbol table. 1. If it does not exist, add a declaration of the global and return it. 2. Else, the global exists but has the wrong type: return the function with a constantexpr cast to the right type. 3. Finally, if the existing global is the correct delclaration, return the existing global.
getOrInsertGlobal - Look up the specified global in the module symbol table. 1. If it does not exist, add a declaration of the global and return it. 2. Else, the global exists but has the wrong type: return the function with a constantexpr cast to the right type. 3. Finally, if the existing global is the correct delclaration, return the existing global.
Definition at line 260 of file Module.cpp.
References llvm::GlobalValue::ExternalLinkage, llvm::ConstantExpr::getBitCast(), llvm::GlobalValue::getType(), llvm::PointerType::getUnqual(), getValueSymbolTable(), GV, and llvm::ValueSymbolTable::lookup().
| GlobalAlias * Module::getNamedAlias | ( | const std::string & | Name | ) | const |
getNamedAlias - Return the first global alias in the module with the specified name, of arbitrary type. This method returns null if a global with the specified name is not found.
Definition at line 289 of file Module.cpp.
References getValueSymbolTable(), and llvm::ValueSymbolTable::lookup().
Referenced by LinkAlias().
| bool Module::addTypeName | ( | const std::string & | Name, | |
| const Type * | Ty | |||
| ) |
addTypeName - Insert an entry in the symbol table mapping Str to Type. If there is already an entry for this name, true is returned and the symbol table is not modified.
Definition at line 303 of file Module.cpp.
References getTypeSymbolTable(), llvm::TypeSymbolTable::insert(), and llvm::TypeSymbolTable::lookup().
Referenced by llvm::CloneModule(), llvm::DIFactory::CreateBasicType(), llvm::DIFactory::CreateBlock(), llvm::DIFactory::CreateCompileUnit(), llvm::DIFactory::CreateCompositeType(), llvm::DIFactory::CreateDerivedType(), llvm::DIFactory::CreateEnumerator(), llvm::DIFactory::CreateGlobalVariable(), llvm::DIFactory::CreateSubprogram(), llvm::DIFactory::CreateVariable(), llvm::DIFactory::GetOrCreateSubrange(), llvm::DISerializer::getTagType(), and llvm::DebugInfoBuilder::setModule().
| std::string Module::getTypeName | ( | const Type * | Ty | ) | const |
getTypeName - If there is at least one entry in the symbol table for the specified type, return it.
Definition at line 325 of file Module.cpp.
References llvm::TypeSymbolTable::begin(), llvm::TypeSymbolTable::end(), and getTypeSymbolTable().
| const Type * Module::getTypeByName | ( | const std::string & | Name | ) | const |
getTypeByName - Return the type with the specified name in this module, or null if there is none by that name.
getTypeByName - Return the type with the specified name in this module, or null if there is none by that name.
Definition at line 317 of file Module.cpp.
References getTypeSymbolTable(), and llvm::TypeSymbolTable::lookup().
| const GlobalListType& llvm::Module::getGlobalList | ( | ) | const [inline] |
Get the Module's list of global variables (constant).
Definition at line 279 of file Module.h.
Referenced by llvm::GlobalVariable::eraseFromParent(), llvm::GlobalVariable::GlobalVariable(), InstallGlobalCtors(), LinkAppendingVars(), OptimizeGlobalAddressOfMalloc(), llvm::GlobalVariable::removeFromParent(), SRAGlobal(), and TryToShrinkGlobalToBoolean().
| GlobalListType& llvm::Module::getGlobalList | ( | ) | [inline] |
| const FunctionListType& llvm::Module::getFunctionList | ( | ) | const [inline] |
Get the Module's list of functions (constant).
Definition at line 283 of file Module.h.
Referenced by llvm::Function::eraseFromParent(), llvm::BasicInlinerImpl::inlineFunctions(), llvm::Function::removeFromParent(), llvm::CallGraph::removeFunctionFromModule(), and SpecializeFunction().
| FunctionListType& llvm::Module::getFunctionList | ( | ) | [inline] |
| const AliasListType& llvm::Module::getAliasList | ( | ) | const [inline] |
Get the Module's list of aliases (constant).
Definition at line 287 of file Module.h.
Referenced by llvm::GlobalAlias::eraseFromParent(), llvm::GlobalAlias::GlobalAlias(), and llvm::GlobalAlias::removeFromParent().
| AliasListType& llvm::Module::getAliasList | ( | ) | [inline] |
| const ValueSymbolTable& llvm::Module::getValueSymbolTable | ( | ) | const [inline] |
Get the symbol table of global variable and function identifiers.
Definition at line 291 of file Module.h.
Referenced by ForceRenaming(), getFunction(), getNamedAlias(), getOrInsertFunction(), getOrInsertGlobal(), llvm::ilist_traits< GlobalAlias >::getSymTab(), llvm::ilist_traits< GlobalVariable >::getSymTab(), llvm::ilist_traits< Function >::getSymTab(), LinkFunctionProtos(), LinkGlobals(), llvm::ValueEnumerator::ValueEnumerator(), and WriteModule().
| ValueSymbolTable& llvm::Module::getValueSymbolTable | ( | ) | [inline] |
| const TypeSymbolTable& llvm::Module::getTypeSymbolTable | ( | ) | const [inline] |
Get the symbol table of types.
Definition at line 295 of file Module.h.
Referenced by addTypeName(), llvm::CloneModule(), fillTypeNameTable(), getTypeByName(), getTypeName(), LinkTypes(), StripDebugInfo(), StripSymbolNames(), llvm::ValueEnumerator::ValueEnumerator(), and WriteModule().
| TypeSymbolTable& llvm::Module::getTypeSymbolTable | ( | ) | [inline] |
| global_iterator llvm::Module::global_begin | ( | ) | [inline] |
Get an iterator to the first global variable.
Definition at line 304 of file Module.h.
Referenced by llvm::ExecutionEngine::clearGlobalMappingsFromModule(), llvm::CloneModule(), llvm::X86IntelAsmPrinter::doFinalization(), llvm::X86ATTAsmPrinter::doFinalization(), llvm::MachOWriter::doFinalization(), llvm::ELFWriter::doFinalization(), llvm::X86IntelAsmPrinter::doInitialization(), dropAllReferences(), llvm::ExecutionEngine::emitGlobals(), GetAllUndefinedSymbols(), getSymbols(), LinkGlobalInits(), LinkGlobals(), llvm::Linker::LinkModules(), LLVMGetFirstGlobal(), LLVMGetLastGlobal(), LLVMGetPreviousGlobal(), llvm::Mangler::Mangler(), llvm::FindUsedTypes::runOnModule(), StripDebugInfo(), StripSymbolNames(), llvm::ValueEnumerator::ValueEnumerator(), and WriteModuleInfo().
| const_global_iterator llvm::Module::global_begin | ( | ) | const [inline] |
| global_iterator llvm::Module::global_end | ( | ) | [inline] |
Get an iterator to the last global variable.
Definition at line 308 of file Module.h.
Referenced by llvm::ExecutionEngine::clearGlobalMappingsFromModule(), llvm::CloneModule(), llvm::X86IntelAsmPrinter::doFinalization(), llvm::X86ATTAsmPrinter::doFinalization(), llvm::MachOWriter::doFinalization(), llvm::ELFWriter::doFinalization(), llvm::X86IntelAsmPrinter::doInitialization(), dropAllReferences(), llvm::ExecutionEngine::emitGlobals(), GetAllUndefinedSymbols(), getSymbols(), LinkGlobalInits(), LinkGlobals(), llvm::Linker::LinkModules(), LLVMGetFirstGlobal(), LLVMGetLastGlobal(), LLVMGetNextGlobal(), llvm::Mangler::Mangler(), llvm::FindUsedTypes::runOnModule(), StripDebugInfo(), StripSymbolNames(), llvm::ValueEnumerator::ValueEnumerator(), and WriteModuleInfo().
| const_global_iterator llvm::Module::global_end | ( | ) | const [inline] |
| bool llvm::Module::global_empty | ( | ) | const [inline] |
Determine if the list of globals is empty.
Definition at line 312 of file Module.h.
Referenced by WriteModuleInfo().
| iterator llvm::Module::begin | ( | ) | [inline] |
Get an iterator to the first function.
Definition at line 319 of file Module.h.
Referenced by llvm::IntrinsicLowering::AddPrototypes(), llvm::ExecutionEngine::clearGlobalMappingsFromModule(), llvm::CloneModule(), llvm::X86IntelAsmPrinter::doInitialization(), dropAllReferences(), GetAllUndefinedSymbols(), llvm::ProfileInfoLoader::getBlockCounts(), llvm::ProfileInfoLoader::getEdgeCounts(), llvm::ProfileInfoLoader::getFunctionCounts(), getSymbols(), LinkFunctionBodies(), LinkFunctionProtos(), LLVMGetFirstFunction(), LLVMGetLastFunction(), LLVMGetPreviousFunction(), llvm::Mangler::Mangler(), llvm::FPPassManager::runOnModule(), llvm::FunctionPass::runOnModule(), llvm::FindUsedTypes::runOnModule(), StripSymbolNames(), llvm::ValueEnumerator::ValueEnumerator(), WriteModule(), and WriteModuleInfo().
| const_iterator llvm::Module::begin | ( | ) | const [inline] |
| iterator llvm::Module::end | ( | ) | [inline] |
Get an iterator to the last function.
Definition at line 323 of file Module.h.
Referenced by llvm::IntrinsicLowering::AddPrototypes(), llvm::ExecutionEngine::clearGlobalMappingsFromModule(), llvm::CloneModule(), llvm::X86IntelAsmPrinter::doInitialization(), dropAllReferences(), GetAllUndefinedSymbols(), llvm::ProfileInfoLoader::getBlockCounts(), llvm::ProfileInfoLoader::getEdgeCounts(), llvm::ProfileInfoLoader::getFunctionCounts(), getSymbols(), LinkFunctionBodies(), LinkFunctionProtos(), LLVMGetFirstFunction(), LLVMGetLastFunction(), LLVMGetNextFunction(), llvm::Mangler::Mangler(), llvm::FPPassManager::runOnModule(), llvm::FunctionPass::runOnModule(), llvm::FindUsedTypes::runOnModule(), StripSymbolNames(), llvm::ValueEnumerator::ValueEnumerator(), WriteModule(), and WriteModuleInfo().
| const_iterator llvm::Module::end | ( | ) | const [inline] |
| size_t llvm::Module::size | ( | ) | const [inline] |
Determine how many functions are in the Module's list of functions.
Definition at line 327 of file Module.h.
Referenced by getPointerSize().
| bool llvm::Module::empty | ( | ) | const [inline] |
| lib_iterator llvm::Module::lib_begin | ( | ) | const [inline] |
Get a constant iterator to beginning of dependent library list.
Definition at line 336 of file Module.h.
Referenced by addLibrary(), llvm::CloneModule(), llvm::Linker::LinkInItems(), llvm::Linker::LinkModules(), and WriteModuleInfo().
| lib_iterator llvm::Module::lib_end | ( | ) | const [inline] |
Get a constant iterator to end of dependent library list.
Definition at line 338 of file Module.h.
Referenced by addLibrary(), llvm::CloneModule(), llvm::Linker::LinkInItems(), llvm::Linker::LinkModules(), and WriteModuleInfo().