Convert to IR struct {%i128, %i1}
| 540 | |
| 541 | /// Convert to IR struct {%i128, %i1} |
| 542 | llvm::Value* DecimalIR::ValueWithOverflow::AsStruct(DecimalIR* decimal_ir) const { |
| 543 | auto builder = decimal_ir->ir_builder(); |
| 544 | |
| 545 | auto undef = llvm::UndefValue::get(decimal_ir->i128_with_overflow_struct_type_); |
| 546 | auto struct_val = builder->CreateInsertValue(undef, value(), 0); |
| 547 | return builder->CreateInsertValue(struct_val, overflow(), 1); |
| 548 | } |
| 549 | |
| 550 | /// debug traces |
| 551 | void DecimalIR::AddTrace(const std::string& fmt, std::vector<llvm::Value*> args) { |
no test coverage detected