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

Method SetPackedBitValue

cpp/src/gandiva/llvm_generator.cc:461–469  ·  view source on GitHub ↗

Set the value of a bit in bitMap.

Source from the content-addressed store, hash-verified

459
460/// Set the value of a bit in bitMap.
461void LLVMGenerator::SetPackedBitValue(llvm::Value* bitmap, llvm::Value* position,
462 llvm::Value* value) {
463 ADD_TRACE("set bit at position %T", position);
464 ADD_TRACE(" to value %T ", value);
465
466 llvm::Value* bitmap8 = ir_builder()->CreateBitCast(
467 bitmap, types()->ptr_type(types()->i8_type()), "bitMapCast");
468 AddFunctionCall("bitMapSetBit", types()->void_type(), {bitmap8, position, value});
469}
470
471/// Return value of a bit in validity bitMap (handles null bitmaps too).
472llvm::Value* LLVMGenerator::GetPackedValidityBitValue(llvm::Value* bitmap,

Callers

nothing calls this directly

Calls 2

ir_builderFunction · 0.70
typesFunction · 0.70

Tested by

no test coverage detected