|
LLVM
4.0.0
|
This class is used to read just the module summary index related sections out of the given object (which may contain a single module's bitcode or be a combined index bitcode file). More...
#include <ModuleSummaryIndexObjectFile.h>
Static Public Member Functions | |
| static bool | classof (const Binary *v) |
| static ErrorOr< MemoryBufferRef > | findBitcodeInObject (const ObjectFile &Obj) |
| Finds and returns bitcode embedded in the given object file, or an error code if not found. More... | |
| static ErrorOr< MemoryBufferRef > | findBitcodeInMemBuffer (MemoryBufferRef Object) |
| Finds and returns bitcode in the given memory buffer (which may be either a bitcode file or a native object file with embedded bitcode), or an error code if not found. More... | |
| static Expected < std::unique_ptr < ModuleSummaryIndexObjectFile > > | create (MemoryBufferRef Object) |
| Parse module summary index in the given memory buffer. More... | |
Static Public Member Functions inherited from llvm::object::SymbolicFile | |
| static Expected < std::unique_ptr < SymbolicFile > > | createSymbolicFile (MemoryBufferRef Object, sys::fs::file_magic Type, LLVMContext *Context) |
| static Expected < std::unique_ptr < SymbolicFile > > | createSymbolicFile (MemoryBufferRef Object) |
| static Expected< OwningBinary < SymbolicFile > > | createSymbolicFile (StringRef ObjectPath) |
| static bool | classof (const Binary *v) |
Additional Inherited Members | |
Public Types inherited from llvm::object::SymbolicFile | |
| typedef iterator_range < basic_symbol_iterator > | basic_symbol_iterator_range |
Protected Types inherited from llvm::object::Binary | |
| enum | { ID_Archive, ID_MachOUniversalBinary, ID_COFFImportFile, ID_IR, ID_ModuleSummaryIndex, ID_StartObjects, ID_COFF, ID_ELF32L, ID_ELF32B, ID_ELF64L, ID_ELF64B, ID_MachO32L, ID_MachO32B, ID_MachO64L, ID_MachO64B, ID_Wasm, ID_EndObjects } |
Protected Member Functions inherited from llvm::object::Binary | |
| Binary (unsigned int Type, MemoryBufferRef Source) | |
Static Protected Member Functions inherited from llvm::object::Binary | |
| static unsigned int | getELFType (bool isLE, bool is64Bits) |
| static unsigned int | getMachOType (bool isLE, bool is64Bits) |
Protected Attributes inherited from llvm::object::Binary | |
| MemoryBufferRef | Data |
This class is used to read just the module summary index related sections out of the given object (which may contain a single module's bitcode or be a combined index bitcode file).
It builds a ModuleSummaryIndex object.
Definition at line 31 of file ModuleSummaryIndexObjectFile.h.
| ModuleSummaryIndexObjectFile::ModuleSummaryIndexObjectFile | ( | MemoryBufferRef | Object, |
| std::unique_ptr< ModuleSummaryIndex > | I | ||
| ) |
Definition at line 31 of file ModuleSummaryIndexObjectFile.cpp.
|
override |
Definition at line 36 of file ModuleSummaryIndexObjectFile.cpp.
Definition at line 68 of file ModuleSummaryIndexObjectFile.h.
References llvm::object::Binary::isModuleSummaryIndex().
|
static |
Parse module summary index in the given memory buffer.
Return new ModuleSummaryIndexObjectFile instance containing parsed module summary/index.
Definition at line 80 of file ModuleSummaryIndexObjectFile.cpp.
References llvm::errorCodeToError(), findBitcodeInMemBuffer(), llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), and llvm::getModuleSummaryIndex().
Referenced by llvm::getModuleSummaryIndexForFile(), and llvm::ThinLTOCodeGenerator::linkCombinedIndex().
|
static |
Finds and returns bitcode in the given memory buffer (which may be either a bitcode file or a native object file with embedded bitcode), or an error code if not found.
Definition at line 57 of file ModuleSummaryIndexObjectFile.cpp.
References llvm::sys::fs::file_magic::bitcode, llvm::sys::fs::file_magic::coff_object, llvm::object::ObjectFile::createObjectFile(), llvm::sys::fs::file_magic::elf_relocatable, llvm::errorToErrorCode(), findBitcodeInObject(), llvm::Expected< T >::get(), llvm::MemoryBufferRef::getBuffer(), llvm::sys::fs::identify_magic(), llvm::object::invalid_file_type, llvm::sys::fs::file_magic::macho_object, and llvm::Expected< T >::takeError().
Referenced by create().
|
static |
Finds and returns bitcode embedded in the given object file, or an error code if not found.
Definition at line 43 of file ModuleSummaryIndexObjectFile.cpp.
References llvm::object::bitcode_section_not_found, llvm::object::Binary::getFileName(), and llvm::object::ObjectFile::sections().
Referenced by findBitcodeInMemBuffer().
|
inline |
Definition at line 62 of file ModuleSummaryIndexObjectFile.h.
|
inline |
Definition at line 65 of file ModuleSummaryIndexObjectFile.h.
|
inlineoverridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 49 of file ModuleSummaryIndexObjectFile.h.
References llvm_unreachable.
|
inlineoverridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 41 of file ModuleSummaryIndexObjectFile.h.
References llvm_unreachable.
|
inlineoverridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 44 of file ModuleSummaryIndexObjectFile.h.
References llvm_unreachable.
|
inlineoverridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 53 of file ModuleSummaryIndexObjectFile.h.
References llvm_unreachable.
|
inlineoverridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 57 of file ModuleSummaryIndexObjectFile.h.
References llvm_unreachable.
| std::unique_ptr< ModuleSummaryIndex > ModuleSummaryIndexObjectFile::takeIndex | ( | ) |
Definition at line 38 of file ModuleSummaryIndexObjectFile.cpp.
Referenced by llvm::getModuleSummaryIndexForFile().
1.8.6