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

Method ReplaceHashTableConstants

be/src/exec/hash-table.cc:1362–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1360}
1361
1362Status HashTableCtx::ReplaceHashTableConstants(LlvmCodeGen* codegen,
1363 const HashTableConfig& config, bool stores_duplicates, int num_build_tuples,
1364 llvm::Function* fn, HashTableReplacedConstants* replacement_counts) {
1365 replacement_counts->stores_nulls = codegen->ReplaceCallSitesWithBoolConst(
1366 fn, config.stores_nulls, "stores_nulls");
1367 replacement_counts->finds_some_nulls = codegen->ReplaceCallSitesWithBoolConst(
1368 fn, config.finds_some_nulls, "finds_some_nulls");
1369 replacement_counts->stores_tuples = codegen->ReplaceCallSitesWithBoolConst(
1370 fn, num_build_tuples == 1, "stores_tuples");
1371 replacement_counts->stores_duplicates = codegen->ReplaceCallSitesWithBoolConst(
1372 fn, stores_duplicates, "stores_duplicates");
1373 replacement_counts->quadratic_probing = codegen->ReplaceCallSitesWithBoolConst(
1374 fn, FLAGS_enable_quadratic_probing, "quadratic_probing");
1375 return Status::OK();
1376}

Callers

nothing calls this directly

Calls 2

OKFunction · 0.85

Tested by

no test coverage detected