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

Method GetPackedBitValue

cpp/src/gandiva/llvm_generator.cc:451–458  ·  view source on GitHub ↗

Return value of a bit in bitMap.

Source from the content-addressed store, hash-verified

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