OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NativeCodegen.cpp File Reference
#include "QueryEngine/Execute.h"
#include <llvm/Analysis/ScopedNoAliasAA.h>
#include <llvm/Analysis/TypeBasedAliasAnalysis.h>
#include <llvm/Bitcode/BitcodeReader.h>
#include <llvm/Bitcode/BitcodeWriter.h>
#include <llvm/ExecutionEngine/MCJIT.h>
#include <llvm/IR/Attributes.h>
#include <llvm/IR/GlobalValue.h>
#include <llvm/IR/InstIterator.h>
#include <llvm/IR/IntrinsicInst.h>
#include <llvm/IR/Intrinsics.h>
#include <llvm/IR/LegacyPassManager.h>
#include <llvm/IR/Verifier.h>
#include <llvm/IRReader/IRReader.h>
#include <llvm/Linker/Linker.h>
#include <llvm/Support/Casting.h>
#include <llvm/Support/FileSystem.h>
#include <llvm/Support/FormattedStream.h>
#include <llvm/Support/MemoryBuffer.h>
#include <llvm/Support/SourceMgr.h>
#include <llvm/Support/TargetRegistry.h>
#include <llvm/Support/TargetSelect.h>
#include <llvm/Support/raw_os_ostream.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Transforms/IPO.h>
#include <llvm/Transforms/IPO/AlwaysInliner.h>
#include <llvm/Transforms/IPO/InferFunctionAttrs.h>
#include <llvm/Transforms/IPO/PassManagerBuilder.h>
#include <llvm/Transforms/InstCombine/InstCombine.h>
#include <llvm/Transforms/Instrumentation.h>
#include <llvm/Transforms/Scalar.h>
#include <llvm/Transforms/Scalar/GVN.h>
#include <llvm/Transforms/Scalar/InstSimplifyPass.h>
#include <llvm/Transforms/Utils.h>
#include <llvm/Transforms/Utils/BasicBlockUtils.h>
#include <llvm/Transforms/Utils/Cloning.h>
#include "CudaMgr/CudaMgr.h"
#include "OSDependent/omnisci_path.h"
#include "QueryEngine/CodeGenerator.h"
#include "QueryEngine/ExtensionFunctionsWhitelist.h"
#include "QueryEngine/GpuSharedMemoryUtils.h"
#include "QueryEngine/LLVMFunctionAttributesUtil.h"
#include "QueryEngine/Optimization/AnnotateInternalFunctionsPass.h"
#include "QueryEngine/OutputBufferInitialization.h"
#include "QueryEngine/QueryTemplateGenerator.h"
#include "Shared/InlineNullValues.h"
#include "Shared/MathUtils.h"
#include "StreamingTopN.h"
+ Include dependency graph for NativeCodegen.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{NativeCodegen.cpp}
 

Macros

#define SHOW_DEFINED(MODULE)
 
#define SHOW_FUNCTIONS(MODULE)
 

Functions

void anonymous_namespace{NativeCodegen.cpp}::throw_parseIR_error (const llvm::SMDiagnostic &parse_error, std::string src="", const bool is_gpu=false)
 
template<typename T = void>
void anonymous_namespace{NativeCodegen.cpp}::show_defined (llvm::Module &module)
 
template<typename T = void>
void anonymous_namespace{NativeCodegen.cpp}::show_defined (llvm::Module *module)
 
template<typename T = void>
void anonymous_namespace{NativeCodegen.cpp}::show_defined (std::unique_ptr< llvm::Module > &module)
 
template<typename T = void>
void anonymous_namespace{NativeCodegen.cpp}::scan_function_calls (llvm::Function &F, std::unordered_set< std::string > &defined, std::unordered_set< std::string > &undefined, const std::unordered_set< std::string > &ignored)
 
template<typename T = void>
void anonymous_namespace{NativeCodegen.cpp}::scan_function_calls (llvm::Module &module, std::unordered_set< std::string > &defined, std::unordered_set< std::string > &undefined, const std::unordered_set< std::string > &ignored)
 
template<typename T = void>
std::tuple< std::unordered_set
< std::string >
, std::unordered_set
< std::string > > 
anonymous_namespace{NativeCodegen.cpp}::scan_function_calls (llvm::Module &module, const std::unordered_set< std::string > &ignored={})
 
void anonymous_namespace{NativeCodegen.cpp}::eliminate_dead_self_recursive_funcs (llvm::Module &M, const std::unordered_set< llvm::Function * > &live_funcs)
 
void anonymous_namespace{NativeCodegen.cpp}::optimize_ir (llvm::Function *query_func, llvm::Module *module, llvm::legacy::PassManager &pass_manager, const std::unordered_set< llvm::Function * > &live_funcs, const CompilationOptions &co)
 
void verify_function_ir (const llvm::Function *func)
 
std::string anonymous_namespace{NativeCodegen.cpp}::assemblyForCPU (ExecutionEngineWrapper &execution_engine, llvm::Module *module)
 
std::string anonymous_namespace{NativeCodegen.cpp}::cpp_to_llvm_name (const std::string &s)
 
std::string anonymous_namespace{NativeCodegen.cpp}::gen_array_any_all_sigs ()
 
std::string anonymous_namespace{NativeCodegen.cpp}::gen_translate_null_key_sigs ()
 
llvm::StringRef get_gpu_target_triple_string ()
 
llvm::StringRef get_gpu_data_layout ()
 
std::map< std::string,
std::string > 
get_device_parameters (bool cpu_only)
 
bool anonymous_namespace{NativeCodegen.cpp}::is_udf_module_present (bool cpu_only=false)
 
llvm::Module * read_template_module (llvm::LLVMContext &context)
 
void anonymous_namespace{NativeCodegen.cpp}::bind_pos_placeholders (const std::string &pos_fn_name, const bool use_resume_param, llvm::Function *query_func, llvm::Module *module)
 
void anonymous_namespace{NativeCodegen.cpp}::set_row_func_argnames (llvm::Function *row_func, const size_t in_col_count, const size_t agg_col_count, const bool hoist_literals)
 
llvm::Function * anonymous_namespace{NativeCodegen.cpp}::create_row_function (const size_t in_col_count, const size_t agg_col_count, const bool hoist_literals, llvm::Module *module, llvm::LLVMContext &context)
 
void anonymous_namespace{NativeCodegen.cpp}::bind_query (llvm::Function *query_func, const std::string &query_fname, llvm::Function *multifrag_query_func, llvm::Module *module)
 
std::vector< std::string > anonymous_namespace{NativeCodegen.cpp}::get_agg_fnames (const std::vector< Analyzer::Expr * > &target_exprs, const bool is_group_by)
 
std::unique_ptr< llvm::Module > g_rt_module (read_template_module(getGlobalLLVMContext()))
 
bool is_rt_udf_module_present (bool cpu_only)
 
void anonymous_namespace{NativeCodegen.cpp}::read_udf_gpu_module (const std::string &udf_ir_filename)
 
void anonymous_namespace{NativeCodegen.cpp}::read_udf_cpu_module (const std::string &udf_ir_filename)
 
void read_rt_udf_gpu_module (const std::string &udf_ir_string)
 
void read_rt_udf_cpu_module (const std::string &udf_ir_string)
 
template<typename InstType >
llvm::Value * anonymous_namespace{NativeCodegen.cpp}::find_variable_in_basic_block (llvm::Function *func, std::string bb_name, std::string variable_name)
 
size_t anonymous_namespace{NativeCodegen.cpp}::get_shared_memory_size (const bool shared_mem_used, const QueryMemoryDescriptor *query_mem_desc_ptr)
 
bool anonymous_namespace{NativeCodegen.cpp}::is_gpu_shared_mem_supported (const QueryMemoryDescriptor *query_mem_desc_ptr, const RelAlgExecutionUnit &ra_exe_unit, const CudaMgr_Namespace::CudaMgr *cuda_mgr, const ExecutorDeviceType device_type, const unsigned gpu_blocksize, const unsigned num_blocks_per_mp)
 
std::string anonymous_namespace{NativeCodegen.cpp}::serialize_llvm_metadata_footnotes (llvm::Function *query_func, CgenState *cgen_state)
 
std::unique_ptr< llvm::Module > runtime_module_shallow_copy (CgenState *cgen_state)
 
std::vector< llvm::Value * > generate_column_heads_load (const int num_columns, llvm::Value *byte_stream_arg, llvm::IRBuilder<> &ir_builder, llvm::LLVMContext &ctx)
 

Variables

float g_fraction_code_cache_to_evict = 0.2
 
std::unique_ptr< llvm::Module > udf_gpu_module
 
std::unique_ptr< llvm::Module > udf_cpu_module
 
std::unique_ptr< llvm::Module > rt_udf_gpu_module
 
std::unique_ptr< llvm::Module > rt_udf_cpu_module
 
std::unique_ptr< llvm::Module > g_rt_module
 
const std::string anonymous_namespace{NativeCodegen.cpp}::cuda_rt_decls
 

Macro Definition Documentation

#define SHOW_DEFINED (   MODULE)
Value:
{ \
std::cout << __func__ << "#" << __LINE__ << ": " #MODULE << " "; \
::show_defined(MODULE); \
}
void show_defined(llvm::Module &module)

Definition at line 150 of file NativeCodegen.cpp.

#define SHOW_FUNCTIONS (   MODULE)
Value:
{ \
std::cout << __func__ << "#" << __LINE__ << ": " #MODULE << " "; \
::show_functions(MODULE); \
}

Definition at line 156 of file NativeCodegen.cpp.

Function Documentation

std::unique_ptr<llvm::Module> g_rt_module ( read_template_module(getGlobalLLVMContext())  )
std::vector<llvm::Value*> generate_column_heads_load ( const int  num_columns,
llvm::Value *  byte_stream_arg,
llvm::IRBuilder<> &  ir_builder,
llvm::LLVMContext &  ctx 
)

Loads individual columns from a single, packed pointers buffer (the byte stream arg)

Definition at line 3193 of file NativeCodegen.cpp.

Referenced by TableFunctionCompilationContext::generateEntryPoint().

3196  {
3197  CHECK(byte_stream_arg);
3198  const auto max_col_local_id = num_columns - 1;
3199 
3200  std::vector<llvm::Value*> col_heads;
3201  for (int col_id = 0; col_id <= max_col_local_id; ++col_id) {
3202  col_heads.emplace_back(ir_builder.CreateLoad(ir_builder.CreateGEP(
3203  byte_stream_arg, llvm::ConstantInt::get(llvm::Type::getInt32Ty(ctx), col_id))));
3204  }
3205  return col_heads;
3206 }
#define CHECK(condition)
Definition: Logger.h:209

+ Here is the caller graph for this function:

std::map<std::string, std::string> get_device_parameters ( bool  cpu_only)

Definition at line 915 of file NativeCodegen.cpp.

915  {
916  std::map<std::string, std::string> result;
917 
918  result.insert(std::make_pair("cpu_name", llvm::sys::getHostCPUName()));
919  result.insert(std::make_pair("cpu_triple", llvm::sys::getProcessTriple()));
920  result.insert(
921  std::make_pair("cpu_cores", std::to_string(llvm::sys::getHostNumPhysicalCores())));
922  result.insert(std::make_pair("cpu_threads", std::to_string(cpu_threads())));
923 
924  // https://en.cppreference.com/w/cpp/language/types
925  std::string sizeof_types;
926  sizeof_types += "bool:" + std::to_string(sizeof(bool)) + ";";
927  sizeof_types += "size_t:" + std::to_string(sizeof(size_t)) + ";";
928  sizeof_types += "ssize_t:" + std::to_string(sizeof(ssize_t)) + ";";
929  sizeof_types += "char:" + std::to_string(sizeof(char)) + ";";
930  sizeof_types += "uchar:" + std::to_string(sizeof(unsigned char)) + ";";
931  sizeof_types += "short:" + std::to_string(sizeof(short)) + ";";
932  sizeof_types += "ushort:" + std::to_string(sizeof(unsigned short int)) + ";";
933  sizeof_types += "int:" + std::to_string(sizeof(int)) + ";";
934  sizeof_types += "uint:" + std::to_string(sizeof(unsigned int)) + ";";
935  sizeof_types += "long:" + std::to_string(sizeof(long int)) + ";";
936  sizeof_types += "ulong:" + std::to_string(sizeof(unsigned long int)) + ";";
937  sizeof_types += "longlong:" + std::to_string(sizeof(long long int)) + ";";
938  sizeof_types += "ulonglong:" + std::to_string(sizeof(unsigned long long int)) + ";";
939  sizeof_types += "float:" + std::to_string(sizeof(float)) + ";";
940  sizeof_types += "double:" + std::to_string(sizeof(double)) + ";";
941  sizeof_types += "longdouble:" + std::to_string(sizeof(long double)) + ";";
942  sizeof_types += "voidptr:" + std::to_string(sizeof(void*)) + ";";
943 
944  result.insert(std::make_pair("type_sizeof", sizeof_types));
945 
946  std::string null_values;
947  null_values += "boolean1:" + std::to_string(serialized_null_value<bool>()) + ";";
948  null_values += "boolean8:" + std::to_string(serialized_null_value<int8_t>()) + ";";
949  null_values += "int8:" + std::to_string(serialized_null_value<int8_t>()) + ";";
950  null_values += "int16:" + std::to_string(serialized_null_value<int16_t>()) + ";";
951  null_values += "int32:" + std::to_string(serialized_null_value<int32_t>()) + ";";
952  null_values += "int64:" + std::to_string(serialized_null_value<int64_t>()) + ";";
953  null_values += "uint8:" + std::to_string(serialized_null_value<uint8_t>()) + ";";
954  null_values += "uint16:" + std::to_string(serialized_null_value<uint16_t>()) + ";";
955  null_values += "uint32:" + std::to_string(serialized_null_value<uint32_t>()) + ";";
956  null_values += "uint64:" + std::to_string(serialized_null_value<uint64_t>()) + ";";
957  null_values += "float32:" + std::to_string(serialized_null_value<float>()) + ";";
958  null_values += "float64:" + std::to_string(serialized_null_value<double>()) + ";";
959  null_values +=
960  "Array<boolean8>:" + std::to_string(serialized_null_value<int8_t, true>()) + ";";
961  null_values +=
962  "Array<int8>:" + std::to_string(serialized_null_value<int8_t, true>()) + ";";
963  null_values +=
964  "Array<int16>:" + std::to_string(serialized_null_value<int16_t, true>()) + ";";
965  null_values +=
966  "Array<int32>:" + std::to_string(serialized_null_value<int32_t, true>()) + ";";
967  null_values +=
968  "Array<int64>:" + std::to_string(serialized_null_value<int64_t, true>()) + ";";
969  null_values +=
970  "Array<float32>:" + std::to_string(serialized_null_value<float, true>()) + ";";
971  null_values +=
972  "Array<float64>:" + std::to_string(serialized_null_value<double, true>()) + ";";
973 
974  result.insert(std::make_pair("null_values", null_values));
975 
976  llvm::StringMap<bool> cpu_features;
977  if (llvm::sys::getHostCPUFeatures(cpu_features)) {
978  std::string features_str = "";
979  for (auto it = cpu_features.begin(); it != cpu_features.end(); ++it) {
980  features_str += (it->getValue() ? " +" : " -");
981  features_str += it->getKey().str();
982  }
983  result.insert(std::make_pair("cpu_features", features_str));
984  }
985 
986  result.insert(std::make_pair("llvm_version",
987  std::to_string(LLVM_VERSION_MAJOR) + "." +
988  std::to_string(LLVM_VERSION_MINOR) + "." +
989  std::to_string(LLVM_VERSION_PATCH)));
990 
991 #ifdef HAVE_CUDA
992  if (!cpu_only) {
993  int device_count = 0;
994  checkCudaErrors(cuDeviceGetCount(&device_count));
995  if (device_count) {
996  CUdevice device{};
997  char device_name[256];
998  int major = 0, minor = 0;
999  int driver_version;
1000  checkCudaErrors(cuDeviceGet(&device, 0)); // assuming homogeneous multi-GPU system
1001  checkCudaErrors(cuDeviceGetName(device_name, 256, device));
1002  checkCudaErrors(cuDeviceGetAttribute(
1003  &major, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, device));
1004  checkCudaErrors(cuDeviceGetAttribute(
1005  &minor, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, device));
1006  checkCudaErrors(cuDriverGetVersion(&driver_version));
1007 
1008  result.insert(std::make_pair("gpu_name", device_name));
1009  result.insert(std::make_pair("gpu_count", std::to_string(device_count)));
1010  result.insert(std::make_pair("gpu_compute_capability",
1011  std::to_string(major) + "." + std::to_string(minor)));
1012  result.insert(std::make_pair("gpu_triple", get_gpu_target_triple_string()));
1013  result.insert(std::make_pair("gpu_datalayout", get_gpu_data_layout()));
1014  result.insert(std::make_pair("gpu_driver",
1015  "CUDA " + std::to_string(driver_version / 1000) + "." +
1016  std::to_string((driver_version % 1000) / 10)));
1017  }
1018  }
1019 #endif
1020 
1021  return result;
1022 }
void checkCudaErrors(CUresult err)
Definition: sample.cpp:38
llvm::StringRef get_gpu_data_layout()
std::string to_string(char const *&&v)
llvm::StringRef get_gpu_target_triple_string()
int CUdevice
Definition: nocuda.h:20
int cpu_threads()
Definition: thread_count.h:24
llvm::StringRef get_gpu_data_layout ( )

Definition at line 907 of file NativeCodegen.cpp.

907  {
908  return llvm::StringRef(
909  "e-p:64:64:64-i1:8:8-i8:8:8-"
910  "i16:16:16-i32:32:32-i64:64:64-"
911  "f32:32:32-f64:64:64-v16:16:16-"
912  "v32:32:32-v64:64:64-v128:128:128-n16:32:64");
913 }
llvm::StringRef get_gpu_target_triple_string ( )

Definition at line 903 of file NativeCodegen.cpp.

903  {
904  return llvm::StringRef("nvptx64-nvidia-cuda");
905 }
bool is_rt_udf_module_present ( bool  cpu_only)

Definition at line 1769 of file NativeCodegen.cpp.

1769  {
1770  return (cpu_only || rt_udf_gpu_module != nullptr) && (rt_udf_cpu_module != nullptr);
1771 }
std::unique_ptr< llvm::Module > rt_udf_cpu_module
std::unique_ptr< llvm::Module > rt_udf_gpu_module
void read_rt_udf_cpu_module ( const std::string &  udf_ir_string)

Definition at line 1839 of file NativeCodegen.cpp.

Referenced by DBHandler::register_runtime_extension_functions().

1839  {
1840  llvm::SMDiagnostic parse_error;
1841 
1842  auto buf =
1843  std::make_unique<llvm::MemoryBufferRef>(udf_ir_string, "Runtime UDF for CPU");
1844 
1845  rt_udf_cpu_module = llvm::parseIR(*buf, parse_error, getGlobalLLVMContext());
1846  if (!rt_udf_cpu_module) {
1847  LOG(IR) << "read_rt_udf_cpu_module:LLVM IR:\n" << udf_ir_string << "\nEnd of LLVM IR";
1848  throw_parseIR_error(parse_error);
1849  }
1850 }
std::unique_ptr< llvm::Module > rt_udf_cpu_module
#define LOG(tag)
Definition: Logger.h:203
void throw_parseIR_error(const llvm::SMDiagnostic &parse_error, std::string src="", const bool is_gpu=false)
llvm::LLVMContext & getGlobalLLVMContext()

+ Here is the caller graph for this function:

void read_rt_udf_gpu_module ( const std::string &  udf_ir_string)

Definition at line 1816 of file NativeCodegen.cpp.

Referenced by DBHandler::register_runtime_extension_functions().

1816  {
1817  llvm::SMDiagnostic parse_error;
1818 
1819  auto buf =
1820  std::make_unique<llvm::MemoryBufferRef>(udf_ir_string, "Runtime UDF for GPU");
1821 
1822  rt_udf_gpu_module = llvm::parseIR(*buf, parse_error, getGlobalLLVMContext());
1823  if (!rt_udf_gpu_module) {
1824  LOG(IR) << "read_rt_udf_gpu_module:NVVM IR:\n" << udf_ir_string << "\nEnd of NNVM IR";
1825  throw_parseIR_error(parse_error, "", /* is_gpu= */ true);
1826  }
1827 
1828  llvm::Triple gpu_triple(rt_udf_gpu_module->getTargetTriple());
1829  if (!gpu_triple.isNVPTX()) {
1830  LOG(IR) << "read_rt_udf_gpu_module:NVVM IR:\n" << udf_ir_string << "\nEnd of NNVM IR";
1831  LOG(WARNING) << "Expected triple nvptx64-nvidia-cuda for NVVM IR but got "
1832  << gpu_triple.str()
1833  << ". Executing runtime UDFs on GPU will be disabled.";
1834  rt_udf_gpu_module = nullptr;
1835  return;
1836  }
1837 }
#define LOG(tag)
Definition: Logger.h:203
std::unique_ptr< llvm::Module > rt_udf_gpu_module
void throw_parseIR_error(const llvm::SMDiagnostic &parse_error, std::string src="", const bool is_gpu=false)
llvm::LLVMContext & getGlobalLLVMContext()

+ Here is the caller graph for this function:

llvm::Module* read_template_module ( llvm::LLVMContext &  context)

Definition at line 1420 of file NativeCodegen.cpp.

1420  {
1421  llvm::SMDiagnostic err;
1422 
1423  auto buffer_or_error = llvm::MemoryBuffer::getFile(omnisci::get_root_abs_path() +
1424  "/QueryEngine/RuntimeFunctions.bc");
1425  CHECK(!buffer_or_error.getError()) << "root path=" << omnisci::get_root_abs_path();
1426  llvm::MemoryBuffer* buffer = buffer_or_error.get().get();
1427 
1428  auto owner = llvm::parseBitcodeFile(buffer->getMemBufferRef(), context);
1429  CHECK(!owner.takeError());
1430  auto module = owner.get().release();
1431  CHECK(module);
1432 
1433  return module;
1434 }
#define CHECK(condition)
Definition: Logger.h:209
std::string get_root_abs_path()
std::unique_ptr<llvm::Module> runtime_module_shallow_copy ( CgenState cgen_state)

Makes a shallow copy (just declarations) of the runtime module. Function definitions are cloned only if they're used from the generated code.

Definition at line 3181 of file NativeCodegen.cpp.

Referenced by ResultSetReductionJIT::codegen(), GpuReductionHelperJIT::codegen(), TableFunctionCompilationContext::compile(), and StubGenerator::generateStub().

3181  {
3182  return llvm::CloneModule(
3183  *g_rt_module.get(), cgen_state->vmap_, [](const llvm::GlobalValue* gv) {
3184  auto func = llvm::dyn_cast<llvm::Function>(gv);
3185  if (!func) {
3186  return true;
3187  }
3188  return (func->getLinkage() == llvm::GlobalValue::LinkageTypes::PrivateLinkage ||
3189  func->getLinkage() == llvm::GlobalValue::LinkageTypes::InternalLinkage);
3190  });
3191 }
std::unique_ptr< llvm::Module > g_rt_module
llvm::ValueToValueMapTy vmap_
Definition: CgenState.h:339

+ Here is the caller graph for this function:

void verify_function_ir ( const llvm::Function *  func)

Definition at line 389 of file NativeCodegen.cpp.

References logger::FATAL, and LOG.

Referenced by GpuSharedMemCodeBuilder::codegen(), anonymous_namespace{JoinLoopTest.cpp}::create_loop_test_function(), TableFunctionCompilationContext::generateEntryPoint(), StubGenerator::generateStub(), and translate_function().

389  {
390  std::stringstream err_ss;
391  llvm::raw_os_ostream err_os(err_ss);
392  err_os << "\n-----\n";
393  if (llvm::verifyFunction(*func, &err_os)) {
394  err_os << "\n-----\n";
395  func->print(err_os, nullptr);
396  err_os << "\n-----\n";
397  LOG(FATAL) << err_ss.str();
398  }
399 }
#define LOG(tag)
Definition: Logger.h:203

+ Here is the caller graph for this function:

Variable Documentation

float g_fraction_code_cache_to_evict = 0.2

Definition at line 76 of file NativeCodegen.cpp.

Referenced by CommandLineOptions::fillAdvancedOptions().

std::unique_ptr<llvm::Module> g_rt_module
std::unique_ptr<llvm::Module> rt_udf_cpu_module
std::unique_ptr<llvm::Module> rt_udf_gpu_module
std::unique_ptr<llvm::Module> udf_cpu_module

Definition at line 79 of file NativeCodegen.cpp.

std::unique_ptr<llvm::Module> udf_gpu_module