OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TargetExprBuilder.cpp File Reference

Helpers for codegen of target expressions. More...

+ Include dependency graph for TargetExprBuilder.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{TargetExprBuilder.cpp}
 

Macros

#define LL_CONTEXT   executor->cgen_state_->context_
 
#define LL_BUILDER   executor->cgen_state_->ir_builder_
 
#define LL_BOOL(v)   executor->ll_bool(v)
 
#define LL_INT(v)   executor->cgen_state_->llInt(v)
 
#define LL_FP(v)   executor->cgen_state_->llFp(v)
 
#define ROW_FUNC   executor->cgen_state_->row_func_
 

Functions

bool anonymous_namespace{TargetExprBuilder.cpp}::is_varlen_projection (const Analyzer::Expr *target_expr, const SQLTypeInfo &ti)
 
std::vector< std::string > anonymous_namespace{TargetExprBuilder.cpp}::agg_fn_base_names (const TargetInfo &target_info, const bool is_varlen_projection)
 
bool anonymous_namespace{TargetExprBuilder.cpp}::is_columnar_projection (const QueryMemoryDescriptor &query_mem_desc)
 
bool anonymous_namespace{TargetExprBuilder.cpp}::is_simple_count (const TargetInfo &target_info)
 
bool anonymous_namespace{TargetExprBuilder.cpp}::target_has_geo (const TargetInfo &target_info)
 
int64_t anonymous_namespace{TargetExprBuilder.cpp}::get_initial_agg_val (const TargetInfo &target_info, const QueryMemoryDescriptor &query_mem_desc)
 
std::ostream & operator<< (std::ostream &os, const TargetExprCodegen &target_expr_codegen)
 

Detailed Description

Helpers for codegen of target expressions.

Definition in file TargetExprBuilder.cpp.

Macro Definition Documentation

#define LL_BOOL (   v)    executor->ll_bool(v)

Definition at line 34 of file TargetExprBuilder.cpp.

#define LL_BUILDER   executor->cgen_state_->ir_builder_
#define LL_CONTEXT   executor->cgen_state_->context_
#define LL_FP (   v)    executor->cgen_state_->llFp(v)

Definition at line 36 of file TargetExprBuilder.cpp.

#define LL_INT (   v)    executor->cgen_state_->llInt(v)
#define ROW_FUNC   executor->cgen_state_->row_func_

Definition at line 37 of file TargetExprBuilder.cpp.

Referenced by TargetExprCodegen::codegenAggregate().

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const TargetExprCodegen target_expr_codegen 
)

Definition at line 993 of file TargetExprBuilder.cpp.

References TargetExprCodegen::base_slot_index, TargetExprCodegen::is_group_by, TargetExprCodegen::target_expr, TargetExprCodegen::target_idx, TargetExprCodegen::target_info, TargetInfo::toString(), and Analyzer::Expr::toString().

993  {
994  os << "(target_expr: " << target_expr_codegen.target_expr->toString()
995  << ", target_info: " << target_expr_codegen.target_info.toString()
996  << ", base_slot_index: " << target_expr_codegen.base_slot_index
997  << ", target_idx:" << target_expr_codegen.target_idx
998  << ", is_group_by: " << target_expr_codegen.is_group_by << ")";
999  return os;
1000 }
std::string toString() const
Definition: TargetInfo.h:59
virtual std::string toString() const =0
const Analyzer::Expr * target_expr

+ Here is the call graph for this function: