OmniSciDB  c07336695a
ExecutionEngineWrapper Class Reference

#include <CodeCache.h>

Public Member Functions

 ExecutionEngineWrapper ()
 
 ExecutionEngineWrapper (llvm::ExecutionEngine *execution_engine)
 
 ExecutionEngineWrapper (llvm::ExecutionEngine *execution_engine, const CompilationOptions &co)
 
 ExecutionEngineWrapper (const ExecutionEngineWrapper &other)=delete
 
 ExecutionEngineWrapper (ExecutionEngineWrapper &&other)=default
 
ExecutionEngineWrapperoperator= (const ExecutionEngineWrapper &other)=delete
 
ExecutionEngineWrapperoperator= (ExecutionEngineWrapper &&other)=default
 
ExecutionEngineWrapperoperator= (llvm::ExecutionEngine *execution_engine)
 
llvm::ExecutionEngine * get ()
 
const llvm::ExecutionEngine * get () const
 
llvm::ExecutionEngine & operator* ()
 
const llvm::ExecutionEngine & operator* () const
 
llvm::ExecutionEngine * operator-> ()
 
const llvm::ExecutionEngine * operator-> () const
 

Private Attributes

std::unique_ptr< llvm::ExecutionEngine > execution_engine_
 
std::unique_ptr< llvm::JITEventListener > intel_jit_listener_
 

Detailed Description

Definition at line 30 of file CodeCache.h.

Constructor & Destructor Documentation

◆ ExecutionEngineWrapper() [1/5]

ExecutionEngineWrapper::ExecutionEngineWrapper ( )

Definition at line 136 of file NativeCodegen.cpp.

Referenced by Executor::getCodeFromCache().

136 {}
+ Here is the caller graph for this function:

◆ ExecutionEngineWrapper() [2/5]

ExecutionEngineWrapper::ExecutionEngineWrapper ( llvm::ExecutionEngine *  execution_engine)

Definition at line 138 of file NativeCodegen.cpp.

139  : execution_engine_(execution_engine) {}
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55

◆ ExecutionEngineWrapper() [3/5]

ExecutionEngineWrapper::ExecutionEngineWrapper ( llvm::ExecutionEngine *  execution_engine,
const CompilationOptions co 
)

Definition at line 141 of file NativeCodegen.cpp.

References CHECK, execution_engine_, logger::INFO, intel_jit_listener_, LOG, and CompilationOptions::register_intel_jit_listener_.

143  : execution_engine_(execution_engine) {
144  if (execution_engine_) {
146  intel_jit_listener_.reset(llvm::JITEventListener::createIntelJITEventListener());
148  execution_engine_->RegisterJITEventListener(intel_jit_listener_.get());
149  LOG(INFO) << "Registered IntelJITEventListener";
150  }
151  }
152 }
#define LOG(tag)
Definition: Logger.h:182
std::unique_ptr< llvm::JITEventListener > intel_jit_listener_
Definition: CodeCache.h:56
const bool register_intel_jit_listener_
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55
#define CHECK(condition)
Definition: Logger.h:187

◆ ExecutionEngineWrapper() [4/5]

ExecutionEngineWrapper::ExecutionEngineWrapper ( const ExecutionEngineWrapper other)
delete

◆ ExecutionEngineWrapper() [5/5]

ExecutionEngineWrapper::ExecutionEngineWrapper ( ExecutionEngineWrapper &&  other)
default

Member Function Documentation

◆ get() [1/2]

llvm::ExecutionEngine* ExecutionEngineWrapper::get ( )
inline

Definition at line 45 of file CodeCache.h.

References execution_engine_.

Referenced by ReductionCode::~ReductionCode().

45 { return execution_engine_.get(); }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55
+ Here is the caller graph for this function:

◆ get() [2/2]

const llvm::ExecutionEngine* ExecutionEngineWrapper::get ( ) const
inline

Definition at line 46 of file CodeCache.h.

References execution_engine_.

46 { return execution_engine_.get(); }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55

◆ operator*() [1/2]

llvm::ExecutionEngine& ExecutionEngineWrapper::operator* ( )
inline

Definition at line 48 of file CodeCache.h.

References execution_engine_.

48 { return *execution_engine_; }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55

◆ operator*() [2/2]

const llvm::ExecutionEngine& ExecutionEngineWrapper::operator* ( ) const
inline

Definition at line 49 of file CodeCache.h.

References execution_engine_.

49 { return *execution_engine_; }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55

◆ operator->() [1/2]

llvm::ExecutionEngine* ExecutionEngineWrapper::operator-> ( )
inline

Definition at line 51 of file CodeCache.h.

References execution_engine_.

51 { return execution_engine_.get(); }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55

◆ operator->() [2/2]

const llvm::ExecutionEngine* ExecutionEngineWrapper::operator-> ( ) const
inline

Definition at line 52 of file CodeCache.h.

References execution_engine_.

52 { return execution_engine_.get(); }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55

◆ operator=() [1/3]

ExecutionEngineWrapper& ExecutionEngineWrapper::operator= ( const ExecutionEngineWrapper other)
delete

◆ operator=() [2/3]

ExecutionEngineWrapper& ExecutionEngineWrapper::operator= ( ExecutionEngineWrapper &&  other)
default

◆ operator=() [3/3]

ExecutionEngineWrapper & ExecutionEngineWrapper::operator= ( llvm::ExecutionEngine *  execution_engine)

Definition at line 154 of file NativeCodegen.cpp.

References execution_engine_, and intel_jit_listener_.

155  {
156  execution_engine_.reset(execution_engine);
157  intel_jit_listener_ = nullptr;
158  return *this;
159 }
std::unique_ptr< llvm::JITEventListener > intel_jit_listener_
Definition: CodeCache.h:56
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
Definition: CodeCache.h:55

Member Data Documentation

◆ execution_engine_

std::unique_ptr<llvm::ExecutionEngine> ExecutionEngineWrapper::execution_engine_
private

Definition at line 55 of file CodeCache.h.

Referenced by ExecutionEngineWrapper(), get(), operator*(), operator->(), and operator=().

◆ intel_jit_listener_

std::unique_ptr<llvm::JITEventListener> ExecutionEngineWrapper::intel_jit_listener_
private

Definition at line 56 of file CodeCache.h.

Referenced by ExecutionEngineWrapper(), and operator=().


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