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

Method AsStruct

cpp/src/gandiva/decimal_ir.cc:548–554  ·  view source on GitHub ↗

Convert to IR struct {%i128, %i1}

Source from the content-addressed store, hash-verified

546
547/// Convert to IR struct {%i128, %i1}
548llvm::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
557void DecimalIR::AddTrace(const std::string& fmt, std::vector<llvm::Value*> args) {

Callers 1

Calls 2

valueFunction · 0.50
ir_builderMethod · 0.45

Tested by

no test coverage detected