LLVM  7.0.0svn
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 115 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 130 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 139 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 122 of file SymbolStringPool.h.

References I, llvm::Lock, and SymbolStringPtr.

Referenced by llvm::orc::JITSymbolResolverAdapter::lookup(), and llvm::orc::JITSymbolResolverAdapter::lookupFlags().

Friends And Related Function Documentation

◆ SymbolStringPtr

friend class SymbolStringPtr
friend

Definition at line 28 of file SymbolStringPool.h.

Referenced by intern(), and llvm::orc::SymbolStringPtr::operator*().


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