OmniSciDB
a5dc49c757
|
#include <InValuesBitmap.h>
Classes | |
struct | BitIsSetParams |
Public Member Functions | |
InValuesBitmap (const std::vector< int64_t > &values, const int64_t null_val, const Data_Namespace::MemoryLevel memory_level, const int device_count, Data_Namespace::DataMgr *data_mgr, CompilationOptions const &co) | |
~InValuesBitmap () | |
llvm::Value * | codegen (llvm::Value *needle, Executor *executor) const |
bool | isEmpty () const |
bool | hasNull () const |
size_t | gpuBuffers () const |
BitIsSetParams | prepareBitIsSetParams (Executor *executor, std::vector< std::shared_ptr< const Analyzer::Constant >> const &constant_owned) const |
Private Attributes | |
std::vector < Data_Namespace::AbstractBuffer * > | gpu_buffers_ |
std::vector< int8_t * > | bitsets_ |
bool | rhs_has_null_ |
int64_t | min_val_ |
int64_t | max_val_ |
const int64_t | null_val_ |
const Data_Namespace::MemoryLevel | memory_level_ |
const int | device_count_ |
Data_Namespace::DataMgr * | data_mgr_ |
CompilationOptions | co_ |
Definition at line 42 of file InValuesBitmap.h.
InValuesBitmap::InValuesBitmap | ( | const std::vector< int64_t > & | values, |
const int64_t | null_val, | ||
const Data_Namespace::MemoryLevel | memory_level, | ||
const int | device_count, | ||
Data_Namespace::DataMgr * | data_mgr, | ||
CompilationOptions const & | co | ||
) |
Definition at line 35 of file InValuesBitmap.cpp.
References agg_count_distinct_bitmap(), Data_Namespace::DataMgr::alloc(), bitsets_, CHECK, CHECK_EQ, checked_calloc(), Data_Namespace::CPU_LEVEL, data_mgr_, device_count_, g_bitmap_memory_limit, getQueryEngineCudaStreamForDevice(), gpu_buffers_, Data_Namespace::GPU_LEVEL, max_val_, memory_level_, min_val_, and rhs_has_null_.
InValuesBitmap::~InValuesBitmap | ( | ) |
Definition at line 111 of file InValuesBitmap.cpp.
References bitsets_, CHECK, CHECK_EQ, Data_Namespace::CPU_LEVEL, data_mgr_, Data_Namespace::DataMgr::free(), gpu_buffers_, and memory_level_.
llvm::Value * InValuesBitmap::codegen | ( | llvm::Value * | needle, |
Executor * | executor | ||
) | const |
Definition at line 166 of file InValuesBitmap.cpp.
References Parser::IntLiteral::analyzeValue(), AUTOMATIC_IR_METADATA, bitsets_, CHECK, CHECK_EQ, inline_int_null_val(), kBOOLEAN, kENCODING_NONE, and prepareBitIsSetParams().
Referenced by CodeGenerator::codegen().
|
inline |
Definition at line 58 of file InValuesBitmap.h.
References gpu_buffers_.
bool InValuesBitmap::hasNull | ( | ) | const |
bool InValuesBitmap::isEmpty | ( | ) | const |
InValuesBitmap::BitIsSetParams InValuesBitmap::prepareBitIsSetParams | ( | Executor * | executor, |
std::vector< std::shared_ptr< const Analyzer::Constant >> const & | constant_owned | ||
) | const |
Definition at line 126 of file InValuesBitmap.cpp.
References InValuesBitmap::BitIsSetParams::bitmap_ptr_lv, bitsets_, CHECK_EQ, co_, CodeGenerator::codegenHoistedConstants(), device_count_, get_int_type(), CodegenUtil::hoistLiteral(), kBIGINT, kENCODING_NONE, max_val_, InValuesBitmap::BitIsSetParams::max_val_lv, min_val_, InValuesBitmap::BitIsSetParams::min_val_lv, null_val_, InValuesBitmap::BitIsSetParams::null_val_lv, and report::params.
Referenced by codegen().
|
private |
Definition at line 73 of file InValuesBitmap.h.
Referenced by codegen(), InValuesBitmap(), isEmpty(), prepareBitIsSetParams(), and ~InValuesBitmap().
|
private |
Definition at line 81 of file InValuesBitmap.h.
Referenced by prepareBitIsSetParams().
|
private |
Definition at line 80 of file InValuesBitmap.h.
Referenced by InValuesBitmap(), and ~InValuesBitmap().
|
private |
Definition at line 79 of file InValuesBitmap.h.
Referenced by InValuesBitmap(), and prepareBitIsSetParams().
|
private |
Definition at line 72 of file InValuesBitmap.h.
Referenced by gpuBuffers(), InValuesBitmap(), and ~InValuesBitmap().
|
private |
Definition at line 76 of file InValuesBitmap.h.
Referenced by InValuesBitmap(), and prepareBitIsSetParams().
|
private |
Definition at line 78 of file InValuesBitmap.h.
Referenced by InValuesBitmap(), and ~InValuesBitmap().
|
private |
Definition at line 75 of file InValuesBitmap.h.
Referenced by InValuesBitmap(), and prepareBitIsSetParams().
|
private |
Definition at line 77 of file InValuesBitmap.h.
Referenced by prepareBitIsSetParams().
|
private |
Definition at line 74 of file InValuesBitmap.h.
Referenced by hasNull(), and InValuesBitmap().