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

Method ClearPackedBitValueIfFalse

cpp/src/gandiva/llvm_generator.cc:482–491  ·  view source on GitHub ↗

Clear the bit in bitMap if value = false.

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

ir_builderFunction · 0.70
typesFunction · 0.70

Tested by

no test coverage detected