Return value of a bit in bitMap.
| 449 | |
| 450 | /// Return value of a bit in bitMap. |
| 451 | llvm::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. |
| 461 | void LLVMGenerator::SetPackedBitValue(llvm::Value* bitmap, llvm::Value* position, |
no test coverage detected