OmniSciDB
a5dc49c757
|
#include "ResultSetReductionJIT.h"
#include "ResultSetReductionOps.h"
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Type.h>
Go to the source code of this file.
Functions | |
llvm::Type * | llvm_type (const Type type, llvm::LLVMContext &ctx) |
void | translate_function (const Function *function, llvm::Function *llvm_function, const ReductionCode &reduction_code, const std::unordered_map< const Function *, llvm::Function * > &f) |
llvm::Type* llvm_type | ( | const Type | type, |
llvm::LLVMContext & | ctx | ||
) |
Definition at line 26 of file ResultSetReductionCodegen.cpp.
References Double, DoublePtr, logger::FATAL, Float, FloatPtr, get_fp_type(), get_int_type(), Int1, Int32, Int32Ptr, Int64, Int64Ptr, Int64PtrPtr, Int8, Int8Ptr, LOG, run_benchmark_import::type, UNREACHABLE, Void, and VoidPtr.
Referenced by anonymous_namespace{ResultSetReductionJIT.cpp}::create_llvm_function(), StubGenerator::generateStub(), and anonymous_namespace{ResultSetReductionCodegen.cpp}::translate_body().
void translate_function | ( | const Function * | function, |
llvm::Function * | llvm_function, | ||
const ReductionCode & | reduction_code, | ||
const std::unordered_map< const Function *, llvm::Function * > & | f | ||
) |
Definition at line 366 of file ResultSetReductionCodegen.cpp.
References AUTOMATIC_IR_METADATA, ReductionCode::cgen_state, CHECK, anonymous_namespace{ResultSetReductionCodegen.cpp}::create_entry_block(), Double, f(), logger::FATAL, Float, Int32, Int64, Int8, LOG, anonymous_namespace{ResultSetReductionCodegen.cpp}::translate_body(), and verify_function_ir().
Referenced by ResultSetReductionJIT::codegen(), and GpuReductionHelperJIT::codegen().