OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QueryTemplateGenerator.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 HEAVY.AI, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef QUERYENGINE_QUERYTEMPLATEGENERATOR_H
18 #define QUERYENGINE_QUERYTEMPLATEGENERATOR_H
19 
20 #include "GroupByAndAggregate.h"
21 
22 #include <llvm/IR/Function.h>
23 #include <llvm/IR/Module.h>
24 
25 #include <string>
26 
27 std::tuple<llvm::Function*, llvm::CallInst*> query_template(
28  llvm::Module*,
29  const size_t aggr_col_count,
30  const bool hoist_literals,
31  const bool is_estimate_query,
32  const GpuSharedMemoryContext& gpu_smem_context);
33 std::tuple<llvm::Function*, llvm::CallInst*> query_group_by_template(
34  llvm::Module*,
35  const bool hoist_literals,
37  const ExecutorDeviceType,
38  const bool check_scan_limit,
39  const GpuSharedMemoryContext& gpu_smem_context);
40 
41 #endif // QUERYENGINE_QUERYTEMPLATEGENERATOR_H
std::tuple< llvm::Function *, llvm::CallInst * > query_template(llvm::Module *mod, const size_t aggr_col_count, const bool hoist_literals, const bool is_estimate_query, const GpuSharedMemoryContext &gpu_smem_context)
std::tuple< llvm::Function *, llvm::CallInst * > query_group_by_template(llvm::Module *mod, const bool hoist_literals, const QueryMemoryDescriptor &query_mem_desc, const ExecutorDeviceType device_type, const bool check_scan_limit, const GpuSharedMemoryContext &gpu_smem_context)
ExecutorDeviceType