LLVM  12.0.0git
Public Member Functions | Friends | List of all members
llvm::orc::SymbolStringPool Class Reference

String pool for symbol names used by the JIT. More...

#include "llvm/ExecutionEngine/Orc/SymbolStringPool.h"

Public Member Functions

 ~SymbolStringPool ()
 Destroy a SymbolStringPool. More...
 
SymbolStringPtr intern (StringRef S)
 Create a symbol string pointer from the given string. More...
 
void clearDeadEntries ()
 Remove from the pool any entries that are no longer referenced. More...
 
bool empty () const
 Returns true if the pool is empty. More...
 

Friends

class SymbolStringPtr
 

Detailed Description

String pool for symbol names used by the JIT.

Definition at line 27 of file SymbolStringPool.h.

Constructor & Destructor Documentation

◆ ~SymbolStringPool()

llvm::orc::SymbolStringPool::~SymbolStringPool ( )
inline

Destroy a SymbolStringPool.

Definition at line 148 of file SymbolStringPool.h.

References assert(), and clearDeadEntries().

Member Function Documentation

◆ clearDeadEntries()

void llvm::orc::SymbolStringPool::clearDeadEntries ( )
inline

Remove from the pool any entries that are no longer referenced.

Definition at line 163 of file SymbolStringPool.h.

References E, I, and llvm::Lock.

Referenced by ~SymbolStringPool().

◆ empty()

bool llvm::orc::SymbolStringPool::empty ( ) const
inline

Returns true if the pool is empty.

Definition at line 172 of file SymbolStringPool.h.

References llvm::Lock.

◆ intern()

SymbolStringPtr llvm::orc::SymbolStringPool::intern ( StringRef  S)
inline

Create a symbol string pointer from the given string.

Definition at line 155 of file SymbolStringPool.h.

References I, llvm::Lock, and SymbolStringPtr.

Friends And Related Function Documentation

◆ SymbolStringPtr

friend class SymbolStringPtr
friend

Definition at line 28 of file SymbolStringPool.h.

Referenced by intern().


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