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

Method GetPackedValidityBitValue

cpp/src/gandiva/llvm_generator.cc:472–479  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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