MCPcopy Create free account
hub / github.com/apache/impala / FillCodegendComputeFnConstantFalse

Method FillCodegendComputeFnConstantFalse

be/src/exprs/tuple-is-null-predicate.cc:97–110  ·  view source on GitHub ↗

Sample IR: define i16 @TupleIsNullPredicate(%"class.impala::ScalarExprEvaluator"* %eval, %"class.impala::TupleRow"* %row) #50 { return_false: ret i16 0 }

Source from the content-addressed store, hash-verified

95/// ret i16 0
96/// }
97void TupleIsNullPredicate::FillCodegendComputeFnConstantFalse(
98 LlvmCodeGen* codegen, llvm::Function* function) const {
99 llvm::LLVMContext& context = codegen->context();
100 LlvmBuilder builder(context);
101
102 llvm::BasicBlock* return_false_block =
103 llvm::BasicBlock::Create(context, "return_false", function);
104 builder.SetInsertPoint(return_false_block);
105
106 CodegenAnyVal ret_val = CodegenAnyVal::GetNonNullVal(
107 codegen, &builder, ColumnType(TYPE_BOOLEAN), "ret_val");
108 ret_val.SetVal(false);
109 builder.CreateRet(ret_val.GetLoweredValue());
110}
111
112/// Sample IR:
113/// define i16 @TupleIsNullPredicate(%"class.impala::ScalarExprEvaluator"* %eval,

Callers

nothing calls this directly

Calls 5

CreateClass · 0.85
contextMethod · 0.80
SetValMethod · 0.80
GetLoweredValueMethod · 0.80
ColumnTypeClass · 0.50

Tested by

no test coverage detected