MCPcopy Create free account
hub / github.com/apache/arrow / BuildCombinedValidity

Method BuildCombinedValidity

cpp/src/gandiva/llvm_generator.cc:1358–1369  ·  view source on GitHub ↗

Bitwise-AND of a vector of bits to get the combined validity.

Source from the content-addressed store, hash-verified

1356
1357// Bitwise-AND of a vector of bits to get the combined validity.
1358llvm::Value* LLVMGenerator::Visitor::BuildCombinedValidity(const DexVector& validities) {
1359 llvm::IRBuilder<>* builder = ir_builder();
1360 LLVMTypes* types = generator_->types();
1361
1362 llvm::Value* isValid = types->true_constant();
1363 for (auto& dex : validities) {
1364 dex->Accept(*this);
1365 isValid = builder->CreateAnd(isValid, result()->data(), "validityBitAnd");
1366 }
1367 ADD_VISITOR_TRACE("combined validity is %T", isValid);
1368 return isValid;
1369}
1370
1371llvm::Value* LLVMGenerator::Visitor::GetBufferReference(int idx, BufferType buffer_type,
1372 FieldPtr field) {

Callers

nothing calls this directly

Calls 5

resultFunction · 0.85
typesMethod · 0.80
ir_builderFunction · 0.70
AcceptMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected