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

Method MakeFromInt128

cpp/src/gandiva/decimal_ir.cc:508–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508DecimalIR::ValueSplit DecimalIR::ValueSplit::MakeFromInt128(DecimalIR* decimal_ir,
509 llvm::Value* in) {
510 auto builder = decimal_ir->ir_builder();
511 auto types = decimal_ir->types();
512
513 auto high = builder->CreateLShr(in, types->i128_constant(64));
514 high = builder->CreateTrunc(high, types->i64_type());
515 auto low = builder->CreateTrunc(in, types->i64_type());
516 return ValueSplit(high, low);
517}
518
519/// Convert IR struct {%i64, %i64} to cpp class ValueSplit
520DecimalIR::ValueSplit DecimalIR::ValueSplit::MakeFromStruct(DecimalIR* decimal_ir,

Callers

nothing calls this directly

Calls 3

ValueSplitClass · 0.85
typesMethod · 0.80
ir_builderMethod · 0.45

Tested by

no test coverage detected