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

Method GetPackedValidityBitValue

cpp/src/gandiva/llvm_generator.cc:473–480  ·  view source on GitHub ↗

Return value of a bit in validity bitMap (handles null bitmaps too).

Source from the content-addressed store, hash-verified

471
472/// Return value of a bit in validity bitMap (handles null bitmaps too).
473llvm::Value* LLVMGenerator::GetPackedValidityBitValue(llvm::Value* bitmap,
474 llvm::Value* position) {
475 ADD_TRACE("fetch validity bit at position %T", position);
476
477 llvm::Value* bitmap8 = ir_builder()->CreateBitCast(
478 bitmap, types()->ptr_type(types()->i8_type()), "bitMapCast");
479 return AddFunctionCall("bitMapValidityGetBit", types()->i1_type(), {bitmap8, position});
480}
481
482/// Clear the bit in bitMap if value = false.
483void LLVMGenerator::ClearPackedBitValueIfFalse(llvm::Value* bitmap, llvm::Value* position,

Callers 1

VisitMethod · 0.80

Calls 2

ir_builderFunction · 0.70
typesFunction · 0.70

Tested by

no test coverage detected