Lines Matching refs:Module
24 #include "llvm/IR/Module.h"
187 /// WriteTypeTable - Write out the type table for a module.
391 // Emit top-level description of module, including target triple, inline asm,
393 static void WriteModuleInfo(const Module *M,
396 // Emit various pieces of data attached to a module.
413 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
427 for (Module::const_iterator F = M->begin(), E = M->end(); F != E; ++F) {
478 for (Module::const_global_iterator GV = M->global_begin(),E = M->global_end();
508 for (Module::const_iterator F = M->begin(), E = M->end(); F != E; ++F) {
528 for (Module::const_alias_iterator AI = M->alias_begin(), E = M->alias_end();
593 static void WriteModuleMetadata(const Module *M,
633 for (Module::const_named_metadata_iterator I = M->named_metadata_begin(),
712 static void WriteModuleMetadataStore(const Module *M, BitstreamWriter &Stream) {
782 // If this is a constant pool for the module, emit module-specific abbrevs.
1454 /// WriteFunction - Emit a function body to the module stream.
1747 static void WriteModuleUseLists(const Module *M, llvm_3_2::ValueEnumerator &VE,
1751 // XXX: this modifies the module, but in a way that should never change the
1753 // contain entries in the use_list that do not exist in the Module and are
1755 for (Module::const_global_iterator I = M->global_begin(), E = M->global_end();
1760 for (Module::const_global_iterator GI = M->global_begin(),
1770 for (Module::const_iterator FI = M->begin(), FE = M->end(); FI != FE; ++FI) {
1777 for (Module::const_alias_iterator AI = M->alias_begin(), AE = M->alias_end();
1786 /// WriteModule - Emit the specified module to the bitstream.
1787 static void WriteModule(const Module *M, BitstreamWriter &Stream) {
1797 // Analyze the module, enumerating globals, functions, etc.
1806 // Emit information describing all of the types in the module.
1809 // Emit top-level description of module, including target triple, inline asm,
1830 for (Module::const_iterator F = M->begin(), E = M->end(); F != E; ++F)
1910 /// WriteBitcodeToFile - Write the specified module to the specified output
1912 void llvm_3_2::WriteBitcodeToFile(const Module *M, raw_ostream &Out) {
1922 // Emit the module into the buffer.
1934 // Emit the module.