OmniSciDB  5ade3759e0
anonymous_namespace{ScalarCodeGenerator.cpp} Namespace Reference

Classes

class  UsedColumnExpressions
 

Functions

llvm::Type * llvm_type_from_sql (const SQLTypeInfo &ti, llvm::LLVMContext &ctx)
 

Variables

std::vector< InputTableInfog_table_infos
 

Function Documentation

◆ llvm_type_from_sql()

llvm::Type* anonymous_namespace{ScalarCodeGenerator.cpp}::llvm_type_from_sql ( const SQLTypeInfo ti,
llvm::LLVMContext &  ctx 
)

Definition at line 45 of file ScalarCodeGenerator.cpp.

References logger::FATAL, get_int_type(), SQLTypeInfoCore< TYPE_FACET_PACK >::get_type(), kINT, and LOG.

Referenced by ScalarCodeGenerator::compile().

45  {
46  switch (ti.get_type()) {
47  case kINT: {
48  return get_int_type(32, ctx);
49  }
50  default: {
51  LOG(FATAL) << "Unsupported type";
52  return nullptr; // satisfy -Wreturn-type
53  }
54  }
55 }
#define LOG(tag)
Definition: Logger.h:182
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:323
llvm::Type * get_int_type(const int width, llvm::LLVMContext &context)
Definition: sqltypes.h:47
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ g_table_infos

std::vector<InputTableInfo> anonymous_namespace{ScalarCodeGenerator.cpp}::g_table_infos

Definition at line 43 of file ScalarCodeGenerator.cpp.

Referenced by ScalarCodeGenerator::compile().