| 556 | } |
| 557 | |
| 558 | std::shared_ptr<DecimalLValue> LLVMGenerator::BuildDecimalLValue(llvm::Value* value, |
| 559 | DataTypePtr arrow_type) { |
| 560 | // only decimals of size 128-bit supported. |
| 561 | DCHECK(is_decimal_128(arrow_type)); |
| 562 | auto decimal_type = |
| 563 | arrow::internal::checked_cast<arrow::DecimalType*>(arrow_type.get()); |
| 564 | return std::make_shared<DecimalLValue>(value, nullptr, |
| 565 | types()->i32_constant(decimal_type->precision()), |
| 566 | types()->i32_constant(decimal_type->scale())); |
| 567 | } |
| 568 | |
| 569 | #define ADD_VISITOR_TRACE(...) \ |
| 570 | if (generator_->enable_ir_traces_) { \ |
no test coverage detected