22 #include <llvm/IR/Function.h>
23 #include <llvm/IR/IRBuilder.h>
24 #include <llvm/IR/InstIterator.h>
25 #include <llvm/IR/Module.h>
26 #include <llvm/IR/Value.h>
27 #include <llvm/Linker/Linker.h>
28 #include <llvm/Transforms/Utils/BasicBlockUtils.h>
46 llvm::LLVMContext& context,
48 const std::vector<TargetInfo>& targets,
49 const std::vector<int64_t>& init_agg_values,
50 const size_t executor_id);
91 llvm::Function*
getFunction(
const std::string& func_name)
const;
const QueryMemoryDescriptor query_mem_desc_
llvm::Function * getInitFunction() const
llvm::Function * createInitFunction() const
llvm::LLVMContext & context_
void codegenInitialization()
GpuSharedMemCodeBuilder(llvm::Module *module, llvm::LLVMContext &context, const QueryMemoryDescriptor &qmd, const std::vector< TargetInfo > &targets, const std::vector< int64_t > &init_agg_values, const size_t executor_id)
std::string toString() const
const std::vector< int64_t > init_agg_values_
llvm::Function * init_func_
Descriptor for the result set buffer layout.
const std::vector< TargetInfo > targets_
Basic constructors and methods of the row set interface.
llvm::Function * getFunction(const std::string &func_name) const
void injectFunctionsInto(llvm::Function *query_func)
llvm::Function * reduction_func_
llvm::Function * createReductionFunction() const
llvm::Function * getReductionFunction() const