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

Method MakeFromStruct

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

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

Source from the content-addressed store, hash-verified

512
513/// Convert IR struct {%i64, %i64} to cpp class ValueSplit
514DecimalIR::ValueSplit DecimalIR::ValueSplit::MakeFromStruct(DecimalIR* decimal_ir,
515 llvm::Value* dstruct) {
516 auto builder = decimal_ir->ir_builder();
517 auto high = builder->CreateExtractValue(dstruct, 0);
518 auto low = builder->CreateExtractValue(dstruct, 1);
519 return DecimalIR::ValueSplit(high, low);
520}
521
522llvm::Value* DecimalIR::ValueSplit::AsInt128(DecimalIR* decimal_ir) const {
523 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