OmniSciDB
c1a53651b2
|
Functions | |
llvm::Function * | generate_entry_point (const CgenState *cgen_state) |
llvm::Type * | get_llvm_type_from_sql_column_type (const SQLTypeInfo elem_ti, llvm::LLVMContext &ctx) |
void | initialize_ptr_member (llvm::Value *member_ptr, llvm::Type *member_llvm_type, llvm::Value *value_ptr, llvm::IRBuilder<> &ir_builder) |
void | initialize_int64_member (llvm::Value *member_ptr, llvm::Value *value, int64_t default_value, llvm::LLVMContext &ctx, llvm::IRBuilder<> &ir_builder) |
std::tuple< llvm::Value *, llvm::Value * > | alloc_column (std::string col_name, const size_t index, const SQLTypeInfo &data_target_info, llvm::Value *data_ptr, llvm::Value *data_size, llvm::Value *data_str_dict_proxy_ptr, llvm::LLVMContext &ctx, llvm::IRBuilder<> &ir_builder) |
llvm::Value * | alloc_column_list (std::string col_list_name, const SQLTypeInfo &data_target_info, llvm::Value *data_ptrs, int length, llvm::Value *data_size, llvm::Value *data_str_dict_proxy_ptrs, llvm::LLVMContext &ctx, llvm::IRBuilder<> &ir_builder) |
static bool | columnTypeRequiresCasting (const SQLTypeInfo &ti) |
llvm::Value * | cast_value (llvm::Value *value, SQLTypeInfo &orig_ti, SQLTypeInfo &dest_ti, bool nullable, CodeGenerator &codeGenerator) |
void | cast_column (llvm::Value *col_base_ptr, llvm::Function *func, SQLTypeInfo &orig_ti, SQLTypeInfo &dest_ti, std::string index, llvm::IRBuilder<> &ir_builder, llvm::LLVMContext &ctx, CodeGenerator &codeGenerator) |
std::string | exprsKey (const std::vector< Analyzer::Expr * > &exprs) |
std::tuple<llvm::Value*, llvm::Value*> anonymous_namespace{TableFunctionCompilationContext.cpp}::alloc_column | ( | std::string | col_name, |
const size_t | index, | ||
const SQLTypeInfo & | data_target_info, | ||
llvm::Value * | data_ptr, | ||
llvm::Value * | data_size, | ||
llvm::Value * | data_str_dict_proxy_ptr, | ||
llvm::LLVMContext & | ctx, | ||
llvm::IRBuilder<> & | ir_builder | ||
) |
Definition at line 129 of file TableFunctionCompilationContext.cpp.
References SQLTypeInfo::get_compression(), get_llvm_type_from_sql_column_type(), initialize_int64_member(), initialize_ptr_member(), SQLTypeInfo::is_string(), and kENCODING_DICT.
Referenced by TableFunctionCompilationContext::generateEntryPoint().
llvm::Value* anonymous_namespace{TableFunctionCompilationContext.cpp}::alloc_column_list | ( | std::string | col_list_name, |
const SQLTypeInfo & | data_target_info, | ||
llvm::Value * | data_ptrs, | ||
int | length, | ||
llvm::Value * | data_size, | ||
llvm::Value * | data_str_dict_proxy_ptrs, | ||
llvm::LLVMContext & | ctx, | ||
llvm::IRBuilder<> & | ir_builder | ||
) |
Definition at line 200 of file TableFunctionCompilationContext.cpp.
References CHECK, SQLTypeInfo::get_compression(), initialize_int64_member(), initialize_ptr_member(), SQLTypeInfo::is_string(), and kENCODING_DICT.
Referenced by TableFunctionCompilationContext::generateEntryPoint().
void anonymous_namespace{TableFunctionCompilationContext.cpp}::cast_column | ( | llvm::Value * | col_base_ptr, |
llvm::Function * | func, | ||
SQLTypeInfo & | orig_ti, | ||
SQLTypeInfo & | dest_ti, | ||
std::string | index, | ||
llvm::IRBuilder<> & | ir_builder, | ||
llvm::LLVMContext & | ctx, | ||
CodeGenerator & | codeGenerator | ||
) |
Definition at line 311 of file TableFunctionCompilationContext.cpp.
References cast_value(), and get_llvm_type_from_sql_column_type().
Referenced by TableFunctionCompilationContext::generateCastsForInputTypes().
llvm::Value* anonymous_namespace{TableFunctionCompilationContext.cpp}::cast_value | ( | llvm::Value * | value, |
SQLTypeInfo & | orig_ti, | ||
SQLTypeInfo & | dest_ti, | ||
bool | nullable, | ||
CodeGenerator & | codeGenerator | ||
) |
Definition at line 293 of file TableFunctionCompilationContext.cpp.
References CodeGenerator::codegenCastBetweenTimestamps(), SQLTypeInfo::get_notnull(), SQLTypeInfo::get_type_name(), and SQLTypeInfo::is_timestamp().
Referenced by cast_column().
|
static |
Definition at line 275 of file TableFunctionCompilationContext.cpp.
References SQLTypeInfo::get_precision(), SQLTypeInfo::get_subtype(), SQLTypeInfo::is_column(), and kTIMESTAMP.
Referenced by TableFunctionCompilationContext::generateEntryPoint().
std::string anonymous_namespace{TableFunctionCompilationContext.cpp}::exprsKey | ( | const std::vector< Analyzer::Expr * > & | exprs | ) |
Definition at line 402 of file TableFunctionCompilationContext.cpp.
References run_benchmark_import::result.
Referenced by TableFunctionCompilationContext::compile().
llvm::Function* anonymous_namespace{TableFunctionCompilationContext.cpp}::generate_entry_point | ( | const CgenState * | cgen_state | ) |
Definition at line 31 of file TableFunctionCompilationContext.cpp.
References CgenState::context_, get_int_type(), and CgenState::module_.
Referenced by TableFunctionCompilationContext::compile().
|
inline |
Definition at line 66 of file TableFunctionCompilationContext.cpp.
References CHECK, logger::FATAL, SQLTypeInfo::get_compression(), get_fp_ptr_type(), get_int_ptr_type(), SQLTypeInfo::get_size(), SQLTypeInfo::is_array(), SQLTypeInfo::is_boolean(), SQLTypeInfo::is_bytes(), SQLTypeInfo::is_fp(), SQLTypeInfo::is_integer(), SQLTypeInfo::is_string(), SQLTypeInfo::is_timestamp(), kENCODING_DICT, LOG, and toString().
Referenced by alloc_column(), and cast_column().
void anonymous_namespace{TableFunctionCompilationContext.cpp}::initialize_int64_member | ( | llvm::Value * | member_ptr, |
llvm::Value * | value, | ||
int64_t | default_value, | ||
llvm::LLVMContext & | ctx, | ||
llvm::IRBuilder<> & | ir_builder | ||
) |
Definition at line 106 of file TableFunctionCompilationContext.cpp.
References CHECK.
Referenced by alloc_column(), and alloc_column_list().
void anonymous_namespace{TableFunctionCompilationContext.cpp}::initialize_ptr_member | ( | llvm::Value * | member_ptr, |
llvm::Type * | member_llvm_type, | ||
llvm::Value * | value_ptr, | ||
llvm::IRBuilder<> & | ir_builder | ||
) |
Definition at line 90 of file TableFunctionCompilationContext.cpp.
Referenced by alloc_column(), and alloc_column_list().