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

Method AsInt128

cpp/src/gandiva/decimal_ir.cc:522–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522llvm::Value* DecimalIR::ValueSplit::AsInt128(DecimalIR* decimal_ir) const {
523 auto builder = decimal_ir->ir_builder();
524 auto types = decimal_ir->types();
525
526 auto value = builder->CreateSExt(high_, types->i128_type());
527 value = builder->CreateShl(value, types->i128_constant(64));
528 value = builder->CreateAdd(value, builder->CreateZExt(low_, types->i128_type()));
529 return value;
530}
531
532/// Convert IR struct {%i128, %i1} to cpp class ValueWithOverflow
533DecimalIR::ValueWithOverflow DecimalIR::ValueWithOverflow::MakeFromStruct(

Callers 2

AddLargeMethod · 0.80
CallDecimalFunctionMethod · 0.80

Calls 2

typesMethod · 0.80
ir_builderMethod · 0.45

Tested by

no test coverage detected