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

Method ClearPackedBitValueIfFalse

cpp/src/gandiva/llvm_generator.cc:483–492  ·  view source on GitHub ↗

Clear the bit in bitMap if value = false.

Source from the content-addressed store, hash-verified

481
482/// Clear the bit in bitMap if value = false.
483void LLVMGenerator::ClearPackedBitValueIfFalse(llvm::Value* bitmap, llvm::Value* position,
484 llvm::Value* value) {
485 ADD_TRACE("ClearIfFalse bit at position %T", position);
486 ADD_TRACE(" value %T ", value);
487
488 llvm::Value* bitmap8 = ir_builder()->CreateBitCast(
489 bitmap, types()->ptr_type(types()->i8_type()), "bitMapCast");
490 AddFunctionCall("bitMapClearBitIfFalse", types()->void_type(),
491 {bitmap8, position, value});
492}
493
494/// Extract the bitmap addresses, and do an intersection.
495void LLVMGenerator::ComputeBitMapsForExpr(const CompiledExpr& compiled_expr,

Callers 1

Calls 2

ir_builderFunction · 0.70
typesFunction · 0.70

Tested by

no test coverage detected