OmniSciDB
a5dc49c757
|
Functions | |
llvm::ICmpInst::Predicate | llvm_predicate (const ICmp::Predicate predicate) |
llvm::BinaryOperator::BinaryOps | llvm_binary_op (const BinaryOperator::BinaryOp op) |
llvm::Instruction::CastOps | llvm_cast_op (const Cast::CastOp op) |
void | return_early (llvm::Value *cond, const ReductionCode &reduction_code, llvm::Function *func, llvm::Value *error_code) |
llvm::Value * | mapped_value (const Value *val, const std::unordered_map< const Value *, llvm::Value * > &m) |
llvm::Function * | mapped_function (const Function *function, const std::unordered_map< const Function *, llvm::Function * > &f) |
std::vector< llvm::Value * > | llvm_args (const std::vector< const Value * > args, const std::unordered_map< const Value *, llvm::Value * > &m) |
void | translate_for (const For *for_loop, Function *ir_reduce_loop, const ReductionCode &reduction_code, std::unordered_map< const Value *, llvm::Value * > &m, const std::unordered_map< const Function *, llvm::Function * > &f) |
void | translate_body (const std::vector< std::unique_ptr< Instruction >> &body, const Function *function, llvm::Function *llvm_function, const ReductionCode &reduction_code, std::unordered_map< const Value *, llvm::Value * > &m, const std::unordered_map< const Function *, llvm::Function * > &f) |
void | create_entry_block (llvm::Function *function, CgenState *cgen_state) |
void anonymous_namespace{ResultSetReductionCodegen.cpp}::create_entry_block | ( | llvm::Function * | function, |
CgenState * | cgen_state | ||
) |
Definition at line 357 of file ResultSetReductionCodegen.cpp.
References AUTOMATIC_IR_METADATA, CgenState::context_, and CgenState::ir_builder_.
Referenced by translate_function().
std::vector<llvm::Value*> anonymous_namespace{ResultSetReductionCodegen.cpp}::llvm_args | ( | const std::vector< const Value * > | args, |
const std::unordered_map< const Value *, llvm::Value * > & | m | ||
) |
Definition at line 184 of file ResultSetReductionCodegen.cpp.
References mapped_value(), and shared::transform().
Referenced by translate_body().
llvm::BinaryOperator::BinaryOps anonymous_namespace{ResultSetReductionCodegen.cpp}::llvm_binary_op | ( | const BinaryOperator::BinaryOp | op | ) |
Definition at line 99 of file ResultSetReductionCodegen.cpp.
References BinaryOperator::Add, logger::FATAL, LOG, BinaryOperator::Mul, and UNREACHABLE.
Referenced by translate_body().
llvm::Instruction::CastOps anonymous_namespace{ResultSetReductionCodegen.cpp}::llvm_cast_op | ( | const Cast::CastOp | op | ) |
Definition at line 116 of file ResultSetReductionCodegen.cpp.
References Cast::BitCast, logger::FATAL, LOG, Cast::SExt, Cast::Trunc, and UNREACHABLE.
Referenced by translate_body().
llvm::ICmpInst::Predicate anonymous_namespace{ResultSetReductionCodegen.cpp}::llvm_predicate | ( | const ICmp::Predicate | predicate | ) |
Definition at line 82 of file ResultSetReductionCodegen.cpp.
References ICmp::EQ, logger::FATAL, LOG, ICmp::NE, and UNREACHABLE.
Referenced by translate_body().
llvm::Function* anonymous_namespace{ResultSetReductionCodegen.cpp}::mapped_function | ( | const Function * | function, |
const std::unordered_map< const Function *, llvm::Function * > & | f | ||
) |
Definition at line 174 of file ResultSetReductionCodegen.cpp.
References CHECK.
Referenced by translate_body(), and translate_for().
llvm::Value* anonymous_namespace{ResultSetReductionCodegen.cpp}::mapped_value | ( | const Value * | val, |
const std::unordered_map< const Value *, llvm::Value * > & | m | ||
) |
Definition at line 162 of file ResultSetReductionCodegen.cpp.
References CHECK.
Referenced by llvm_args(), translate_body(), and translate_for().
void anonymous_namespace{ResultSetReductionCodegen.cpp}::return_early | ( | llvm::Value * | cond, |
const ReductionCode & | reduction_code, | ||
llvm::Function * | func, | ||
llvm::Value * | error_code | ||
) |
Definition at line 139 of file ResultSetReductionCodegen.cpp.
References AUTOMATIC_IR_METADATA, ReductionCode::cgen_state, and CHECK.
Referenced by translate_body().
void anonymous_namespace{ResultSetReductionCodegen.cpp}::translate_body | ( | const std::vector< std::unique_ptr< Instruction >> & | body, |
const Function * | function, | ||
llvm::Function * | llvm_function, | ||
const ReductionCode & | reduction_code, | ||
std::unordered_map< const Value *, llvm::Value * > & | m, | ||
const std::unordered_map< const Function *, llvm::Function * > & | f | ||
) |
Definition at line 202 of file ResultSetReductionCodegen.cpp.
References run_benchmark_import::args, AUTOMATIC_IR_METADATA, ReductionCode::cgen_state, CHECK, f(), logger::FATAL, ReductionCode::ir_reduce_loop, llvm_args(), llvm_binary_op(), llvm_cast_op(), LLVM_MAYBE_ALIGN, llvm_predicate(), llvm_type(), boost::serialization::load(), LOG, mapped_function(), mapped_value(), pointee_type(), return_early(), shared::transform(), and translate_for().
Referenced by translate_for(), and translate_function().
void anonymous_namespace{ResultSetReductionCodegen.cpp}::translate_for | ( | const For * | for_loop, |
Function * | ir_reduce_loop, | ||
const ReductionCode & | reduction_code, | ||
std::unordered_map< const Value *, llvm::Value * > & | m, | ||
const std::unordered_map< const Function *, llvm::Function * > & | f | ||
) |
Definition at line 293 of file ResultSetReductionCodegen.cpp.
References AUTOMATIC_IR_METADATA, ReductionCode::cgen_state, JoinLoop::codegen(), For::end(), f(), get_int_type(), INNER, mapped_function(), mapped_value(), For::start(), translate_body(), JoinLoopDomain::upper_bound, gpu_enabled::upper_bound(), and UpperBound.
Referenced by translate_body().