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

Method MakeFromStruct

cpp/src/gandiva/decimal_ir.cc:520–526  ·  view source on GitHub ↗

Convert IR struct {%i64, %i64} to cpp class ValueSplit

Source from the content-addressed store, hash-verified

518
519/// Convert IR struct {%i64, %i64} to cpp class ValueSplit
520DecimalIR::ValueSplit DecimalIR::ValueSplit::MakeFromStruct(DecimalIR* decimal_ir,
521 llvm::Value* dstruct) {
522 auto builder = decimal_ir->ir_builder();
523 auto high = builder->CreateExtractValue(dstruct, 0);
524 auto low = builder->CreateExtractValue(dstruct, 1);
525 return DecimalIR::ValueSplit(high, low);
526}
527
528llvm::Value* DecimalIR::ValueSplit::AsInt128(DecimalIR* decimal_ir) const {
529 auto builder = decimal_ir->ir_builder();

Callers

nothing calls this directly

Calls 3

ValueSplitClass · 0.85
ValueWithOverflowClass · 0.85
ir_builderMethod · 0.45

Tested by

no test coverage detected