LLVM 19.0.0git
Classes | Namespaces | Typedefs | Functions
IRSymtab.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/IR/Comdat.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/Object/SymbolicFile.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Error.h"
#include <cassert>
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

struct  llvm::irsymtab::storage::Str
 A reference to a string in the string table. More...
 
struct  llvm::irsymtab::storage::Range< T >
 A reference to a range of objects in the symbol table. More...
 
struct  llvm::irsymtab::storage::Module
 Describes the range of a particular module's symbols within the symbol table. More...
 
struct  llvm::irsymtab::storage::Comdat
 This is equivalent to an IR comdat. More...
 
struct  llvm::irsymtab::storage::Symbol
 Contains the information needed by linkers for symbol resolution, as well as by the LTO implementation itself. More...
 
struct  llvm::irsymtab::storage::Uncommon
 This data structure contains rarely used symbol fields and is optionally referenced by a Symbol. More...
 
struct  llvm::irsymtab::storage::Header
 
struct  llvm::irsymtab::Symbol
 This represents a symbol that has been read from a storage::Symbol and possibly a storage::Uncommon. More...
 
class  llvm::irsymtab::Reader
 This class can be used to read a Symtab and Strtab produced by irsymtab::build. More...
 
class  llvm::irsymtab::Reader::SymbolRef
 Ephemeral symbols produced by Reader::symbols() and Reader::module_symbols(). More...
 
struct  llvm::irsymtab::FileContents
 The contents of the irsymtab in a bitcode file. More...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::irsymtab
 
namespace  llvm::irsymtab::storage
 

Typedefs

using llvm::irsymtab::storage::Word = support::ulittle32_t
 

Functions

Error llvm::irsymtab::build (ArrayRef< Module * > Mods, SmallVector< char, 0 > &Symtab, StringTableBuilder &StrtabBuilder, BumpPtrAllocator &Alloc)
 Fills in Symtab and StrtabBuilder with a valid symbol and string table for Mods.
 
Expected< FileContentsllvm::irsymtab::readBitcode (const BitcodeFileContents &BFC)
 Reads the contents of a bitcode file, creating its irsymtab if necessary.