OmniSciDB
a5dc49c757
|
#include <CodeGenerator.h>
Public Member Functions | |
NullCheckCodegen (CgenState *cgen_state, Executor *executor, llvm::Value *nullable_lv, const SQLTypeInfo &nullable_ti, const std::string &name="") | |
llvm::Value * | finalize (llvm::Value *null_lv, llvm::Value *notnull_lv) |
Public Attributes | |
CgenState * | cgen_state {nullptr} |
std::string | name |
llvm::BasicBlock * | nullcheck_bb {nullptr} |
llvm::PHINode * | nullcheck_value {nullptr} |
std::unique_ptr< DiamondCodegen > | null_check |
Definition at line 135 of file CodeGenerator.h.
CodeGenerator::NullCheckCodegen::NullCheckCodegen | ( | CgenState * | cgen_state, |
Executor * | executor, | ||
llvm::Value * | nullable_lv, | ||
const SQLTypeInfo & | nullable_ti, | ||
const std::string & | name = "" |
||
) |
Definition at line 1493 of file IRCodegen.cpp.
References AUTOMATIC_IR_METADATA, CHECK, CgenState::context_, CgenState::current_func_, CodeGenerator::executor(), CgenState::inlineFpNull(), CgenState::inlineIntNull(), CgenState::ir_builder_, SQLTypeInfo::is_boolean(), SQLTypeInfo::is_dict_encoded_string(), SQLTypeInfo::is_fp(), SQLTypeInfo::is_number(), SQLTypeInfo::is_time(), CgenState::llBool(), name, null_check, and nullcheck_bb.
llvm::Value * CodeGenerator::NullCheckCodegen::finalize | ( | llvm::Value * | null_lv, |
llvm::Value * | notnull_lv | ||
) |
Definition at line 1530 of file IRCodegen.cpp.
References AUTOMATIC_IR_METADATA, CHECK, CHECK_EQ, and setup::name.
Referenced by spatial_type::Transform::codegen().
CgenState* CodeGenerator::NullCheckCodegen::cgen_state {nullptr} |
Definition at line 144 of file CodeGenerator.h.
std::string CodeGenerator::NullCheckCodegen::name |
Definition at line 145 of file CodeGenerator.h.
Referenced by TableFunctionsFactory_declbracket.Bracket::__repr__(), TableFunctionsFactory_declbracket.Bracket::__str__(), TableFunctionsFactory_declbracket.Bracket::apply_column(), TableFunctionsFactory_declbracket.Bracket::apply_namespace(), TableFunctionsFactory_declbracket.Bracket::format_sizer(), TableFunctionsFactory_declbracket.Bracket::normalize(), NullCheckCodegen(), and TableFunctionsFactory_declbracket.Bracket::tostring().
std::unique_ptr<DiamondCodegen> CodeGenerator::NullCheckCodegen::null_check |
Definition at line 148 of file CodeGenerator.h.
Referenced by NullCheckCodegen().
llvm::BasicBlock* CodeGenerator::NullCheckCodegen::nullcheck_bb {nullptr} |
Definition at line 146 of file CodeGenerator.h.
Referenced by NullCheckCodegen().
llvm::PHINode* CodeGenerator::NullCheckCodegen::nullcheck_value {nullptr} |
Definition at line 147 of file CodeGenerator.h.