OmniSciDB  95562058bd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CpuCompilationContext Class Reference

#include <CompilationContext.h>

+ Inheritance diagram for CpuCompilationContext:
+ Collaboration diagram for CpuCompilationContext:

Public Member Functions

 CpuCompilationContext (ExecutionEngineWrapper &&execution_engine)
 
void setFunctionPointer (llvm::Function *function)
 
void * func () const
 
- Public Member Functions inherited from CompilationContext
virtual ~CompilationContext ()
 

Private Attributes

void * func_ {nullptr}
 
ExecutionEngineWrapper execution_engine_
 

Detailed Description

Definition at line 61 of file CompilationContext.h.

Constructor & Destructor Documentation

CpuCompilationContext::CpuCompilationContext ( ExecutionEngineWrapper &&  execution_engine)
inline

Definition at line 63 of file CompilationContext.h.

64  : execution_engine_(std::move(execution_engine)) {}
ExecutionEngineWrapper execution_engine_

Member Function Documentation

void* CpuCompilationContext::func ( ) const
inline

Definition at line 71 of file CompilationContext.h.

References func_.

Referenced by QueryExecutionContext::launchCpuCode().

71 { return func_; }

+ Here is the caller graph for this function:

void CpuCompilationContext::setFunctionPointer ( llvm::Function *  function)
inline

Definition at line 66 of file CompilationContext.h.

References CHECK, execution_engine_, and func_.

66  {
67  func_ = execution_engine_->getPointerToFunction(function);
68  CHECK(func_);
69  }
ExecutionEngineWrapper execution_engine_
#define CHECK(condition)
Definition: Logger.h:197

Member Data Documentation

ExecutionEngineWrapper CpuCompilationContext::execution_engine_
private

Definition at line 75 of file CompilationContext.h.

Referenced by setFunctionPointer().

void* CpuCompilationContext::func_ {nullptr}
private

Definition at line 74 of file CompilationContext.h.

Referenced by func(), and setFunctionPointer().


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