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

Method SetPackedBitValue

cpp/src/gandiva/llvm_generator.cc:462–470  ·  view source on GitHub ↗

Set the value of a bit in bitMap.

Source from the content-addressed store, hash-verified

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