| 1360 | } |
| 1361 | |
| 1362 | Status 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 | } |
nothing calls this directly
no test coverage detected