MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / compileGetResult

Method compileGetResult

src/AggregateFunctions/AggregateFunctionCount.cpp:170–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170llvm::Value * AggregateFunctionCount::compileGetResult(llvm::IRBuilderBase & builder, llvm::Value * aggregate_data_ptr) const
171{
172 llvm::IRBuilder<> & b = static_cast<llvm::IRBuilder<> &>(builder);
173
174 auto * return_type = toNativeType(b, this->getResultType());
175 auto * count_value_ptr = aggregate_data_ptr;
176
177 return b.CreateLoad(return_type, count_value_ptr);
178}
179
180bool AggregateFunctionCountNotNullUnary::isCompilable() const
181{

Callers

nothing calls this directly

Calls 2

toNativeTypeFunction · 0.85
getResultTypeMethod · 0.45

Tested by

no test coverage detected