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