OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ScalarCodeGenerator.cpp} Namespace Reference


class  UsedColumnExpressions


llvm::Typellvm_type_from_sql (const SQLTypeInfo &ti, llvm::LLVMContext &ctx)


std::vector< InputTableInfog_table_infos

Function Documentation

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(), SQLTypeInfo::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:283
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:380
llvm::Type * get_int_type(const int width, llvm::LLVMContext &context)
Definition: sqltypes.h:60

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

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

Definition at line 43 of file ScalarCodeGenerator.cpp.

Referenced by ScalarCodeGenerator::compile().