|
LLVM 23.0.0git
|
A minimum symbol interface that provides the necessary information to extract archive members and resolve LTO symbols. More...
#include "llvm/Frontend/Offloading/ArchiveLinker.h"
Public Types | |
| enum | Flags { None = 0 , Undefined = 1 << 0 , Weak = 1 << 1 } |
Public Member Functions | |
| Symbol () | |
| Symbol (Symbol::Flags F) | |
| Symbol (MemoryBufferRef File, const irsymtab::Reader::SymbolRef Sym) | |
| bool | isWeak () const |
| bool | isUndefined () const |
Static Public Member Functions | |
| static Expected< Symbol > | createFromObject (MemoryBufferRef File, const object::SymbolRef &Sym) |
| Create a Symbol from an object file symbol reference. | |
Public Attributes | |
| MemoryBufferRef | File |
| uint32_t | SymFlags |
| bool | UsedInRegularObj |
A minimum symbol interface that provides the necessary information to extract archive members and resolve LTO symbols.
Definition at line 42 of file ArchiveLinker.h.
| Enumerator | |
|---|---|
| None | |
| Undefined | |
| Weak | |
Definition at line 43 of file ArchiveLinker.h.
|
inline |
Definition at line 49 of file ArchiveLinker.h.
References File, None, SymFlags, and UsedInRegularObj.
Referenced by createFromObject().
|
inline |
Definition at line 50 of file ArchiveLinker.h.
References F, File, SymFlags, and UsedInRegularObj.
|
inline |
Definition at line 52 of file ArchiveLinker.h.
References File, if(), llvm::irsymtab::Symbol::isUndefined(), llvm::irsymtab::Symbol::isWeak(), SymFlags, Undefined, UsedInRegularObj, and Weak.
|
static |
Create a Symbol from an object file symbol reference.
Returns an error if symbol flags cannot be retrieved.
Definition at line 33 of file ArchiveLinker.cpp.
References File, llvm::object::BasicSymbolRef::getFlags(), llvm::object::BasicSymbolRef::SF_Undefined, llvm::object::BasicSymbolRef::SF_Weak, Symbol(), Undefined, and Weak.
Referenced by llvm::offloading::getSymbolsFromObject().
|
inline |
Definition at line 66 of file ArchiveLinker.h.
References SymFlags, and Undefined.
Referenced by llvm::offloading::getSymbolsFromBitcode(), and llvm::offloading::getSymbolsFromObject().
|
inline |
Definition at line 65 of file ArchiveLinker.h.
References SymFlags, and Weak.
Referenced by llvm::offloading::getSymbolsFromBitcode(), and llvm::offloading::getSymbolsFromObject().
| MemoryBufferRef llvm::offloading::Symbol::File |
Definition at line 68 of file ArchiveLinker.h.
Referenced by createFromObject(), Symbol(), Symbol(), and Symbol().
| uint32_t llvm::offloading::Symbol::SymFlags |
Definition at line 69 of file ArchiveLinker.h.
Referenced by llvm::offloading::getSymbolsFromBitcode(), llvm::offloading::getSymbolsFromObject(), isUndefined(), isWeak(), Symbol(), Symbol(), and Symbol().
| bool llvm::offloading::Symbol::UsedInRegularObj |
Definition at line 70 of file ArchiveLinker.h.
Referenced by llvm::offloading::getSymbolsFromBitcode(), llvm::offloading::getSymbolsFromObject(), Symbol(), Symbol(), and Symbol().