OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExecutionEngineWrapper Class Reference

#include <CompilationContext.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 34 of file CompilationContext.h.

Constructor & Destructor Documentation

ExecutionEngineWrapper::ExecutionEngineWrapper ( )

Definition at line 358 of file NativeCodegen.cpp.

358 {}
ExecutionEngineWrapper::ExecutionEngineWrapper ( llvm::ExecutionEngine *  execution_engine)

Definition at line 360 of file NativeCodegen.cpp.

361  : execution_engine_(execution_engine) {}
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
ExecutionEngineWrapper::ExecutionEngineWrapper ( llvm::ExecutionEngine *  execution_engine,
const CompilationOptions co 
)

Definition at line 363 of file NativeCodegen.cpp.

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

365  : execution_engine_(execution_engine) {
366  if (execution_engine_) {
368 #ifdef ENABLE_INTEL_JIT_LISTENER
369  intel_jit_listener_.reset(llvm::JITEventListener::createIntelJITEventListener());
371  execution_engine_->RegisterJITEventListener(intel_jit_listener_.get());
372  LOG(INFO) << "Registered IntelJITEventListener";
373 #else
374  LOG(WARNING) << "This build is not Intel JIT Listener enabled. Ignoring Intel JIT "
375  "listener configuration parameter.";
376 #endif // ENABLE_INTEL_JIT_LISTENER
377  }
378  }
379 }
#define LOG(tag)
Definition: Logger.h:285
std::unique_ptr< llvm::JITEventListener > intel_jit_listener_
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
#define CHECK(condition)
Definition: Logger.h:291
ExecutionEngineWrapper::ExecutionEngineWrapper ( const ExecutionEngineWrapper other)
delete
ExecutionEngineWrapper::ExecutionEngineWrapper ( ExecutionEngineWrapper &&  other)
default

Member Function Documentation

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

Definition at line 49 of file CompilationContext.h.

References execution_engine_.

Referenced by ScalarCodeGenerator::generateNativeCode().

49 { return execution_engine_.get(); }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_

+ Here is the caller graph for this function:

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

Definition at line 50 of file CompilationContext.h.

References execution_engine_.

50 { return execution_engine_.get(); }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
llvm::ExecutionEngine& ExecutionEngineWrapper::operator* ( )
inline

Definition at line 52 of file CompilationContext.h.

References execution_engine_.

52 { return *execution_engine_; }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
const llvm::ExecutionEngine& ExecutionEngineWrapper::operator* ( ) const
inline

Definition at line 53 of file CompilationContext.h.

References execution_engine_.

53 { return *execution_engine_; }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
llvm::ExecutionEngine* ExecutionEngineWrapper::operator-> ( )
inline

Definition at line 55 of file CompilationContext.h.

References execution_engine_.

55 { return execution_engine_.get(); }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
const llvm::ExecutionEngine* ExecutionEngineWrapper::operator-> ( ) const
inline

Definition at line 56 of file CompilationContext.h.

References execution_engine_.

56 { return execution_engine_.get(); }
std::unique_ptr< llvm::ExecutionEngine > execution_engine_
ExecutionEngineWrapper& ExecutionEngineWrapper::operator= ( const ExecutionEngineWrapper other)
delete
ExecutionEngineWrapper& ExecutionEngineWrapper::operator= ( ExecutionEngineWrapper &&  other)
default
ExecutionEngineWrapper & ExecutionEngineWrapper::operator= ( llvm::ExecutionEngine *  execution_engine)

Definition at line 381 of file NativeCodegen.cpp.

References execution_engine_, and intel_jit_listener_.

382  {
383  execution_engine_.reset(execution_engine);
384  intel_jit_listener_ = nullptr;
385  return *this;
386 }
std::unique_ptr< llvm::JITEventListener > intel_jit_listener_
std::unique_ptr< llvm::ExecutionEngine > execution_engine_

Member Data Documentation

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

Definition at line 59 of file CompilationContext.h.

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

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

Definition at line 60 of file CompilationContext.h.

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


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