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

Method GetPackedBitValue

cpp/src/gandiva/llvm_generator.cc:452–459  ·  view source on GitHub ↗

Return value of a bit in bitMap.

Source from the content-addressed store, hash-verified

450
451/// Return value of a bit in bitMap.
452llvm::Value* LLVMGenerator::GetPackedBitValue(llvm::Value* bitmap,
453 llvm::Value* position) {
454 ADD_TRACE("fetch bit at position %T", position);
455
456 llvm::Value* bitmap8 = ir_builder()->CreateBitCast(
457 bitmap, types()->ptr_type(types()->i8_type()), "bitMapCast");
458 return AddFunctionCall("bitMapGetBit", types()->i1_type(), {bitmap8, position});
459}
460
461/// Set the value of a bit in bitMap.
462void LLVMGenerator::SetPackedBitValue(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