LLVM 19.0.0git
Public Member Functions | List of all members
llvm::jitlink::TableManager< TableManagerImplT > Class Template Reference

A CRTP base for tables that are built on demand, e.g. More...

#include "llvm/ExecutionEngine/JITLink/TableManager.h"

Inheritance diagram for llvm::jitlink::TableManager< TableManagerImplT >:
Inheritance graph
[legend]

Public Member Functions

SymbolgetEntryForTarget (LinkGraph &G, Symbol &Target)
 Return the constructed entry.
 
bool registerPreExistingEntry (Symbol &Target, Symbol &Entry)
 Register a pre-existing entry.
 

Detailed Description

template<typename TableManagerImplT>
class llvm::jitlink::TableManager< TableManagerImplT >

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.

Member Function Documentation

◆ getEntryForTarget()

template<typename TableManagerImplT >
Symbol & llvm::jitlink::TableManager< TableManagerImplT >::getEntryForTarget ( LinkGraph G,
Symbol Target 
)
inline

◆ registerPreExistingEntry()

template<typename TableManagerImplT >
bool llvm::jitlink::TableManager< TableManagerImplT >::registerPreExistingEntry ( Symbol Target,
Symbol Entry 
)
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().


The documentation for this class was generated from the following file: