LLVM 20.0.0git
|
A CRTP base for tables that are built on demand, e.g. More...
#include "llvm/ExecutionEngine/JITLink/TableManager.h"
Public Member Functions | |
Symbol & | getEntryForTarget (LinkGraph &G, Symbol &Target) |
Return the constructed entry. | |
bool | registerPreExistingEntry (Symbol &Target, Symbol &Entry) |
Register a pre-existing entry. | |
A CRTP base for tables that are built on demand, e.g.
Global Offset Tables and Procedure Linkage Tables. The getEntyrForTarget function returns the table entry corresponding to the given target, calling down to the implementation class to build an entry if one does not already exist.
Definition at line 27 of file TableManager.h.
|
inline |
Return the constructed entry.
Use parameter G to construct the entry for target symbol
Definition at line 32 of file TableManager.h.
References assert(), llvm::dbgs(), DEBUG_WITH_TYPE, G, and llvm::Target::getName().
Referenced by llvm::jitlink::aarch64::PLTTableManager::createEntry(), llvm::jitlink::i386::PLTTableManager::createEntry(), llvm::jitlink::loongarch::PLTTableManager::createEntry(), and llvm::jitlink::x86_64::PLTTableManager::createEntry().
|
inline |
Register a pre-existing entry.
Objects may include pre-existing table entries (e.g. for GOTs). This method can be used to register those entries so that they will not be duplicated by createEntry the first time that getEntryForTarget is called.
Definition at line 61 of file TableManager.h.
References assert(), and llvm::Target::getName().