21 #include "gen-cpp/Exprs_types.h"
25 using namespace impala_udf;
46 DCHECK_EQ(type_.type,
TYPE_INT) << type_;
66 DCHECK(type_.IsStringType()) << type_;
87 if (ir_compute_fn_ != NULL) {
92 DCHECK_EQ(GetNumChildren(), 0);
96 *fn = CreateIrFunctionPrototype(codegen,
"NullLiteral", &args);
97 BasicBlock* entry_block = BasicBlock::Create(codegen->
context(),
"entry", *fn);
100 Value* v = CodegenAnyVal::GetNullVal(codegen, type());
101 builder.CreateRet(v);
103 ir_compute_fn_ = *fn;
#define RETURN_IF_ERROR(stmt)
some generally useful macros
This object has a compatible storage format with boost::ptime.
static SmallIntVal null()
LLVM code generator. This is the top level object to generate jitted code.
static TimestampVal null()
std::string DebugString(const T &val)
Status GetCodegen(LlvmCodeGen **codegen, bool initialize=true)
llvm::Function * FinalizeFunction(llvm::Function *function)
llvm::LLVMContext & context()