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

Method AsStruct

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

Convert to IR struct {%i128, %i1}

Source from the content-addressed store, hash-verified

540
541/// Convert to IR struct {%i128, %i1}
542llvm::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
551void 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