MCPcopy Create free account
hub / github.com/apache/impala / SetLen

Method SetLen

be/src/codegen/codegen-anyval.cc:533–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533void CodegenAnyVal::SetLen(llvm::Value* len) {
534 // Set the high bytes of the first value to 'len'.
535 DCHECK(type_.IsStringType() || type_.type == TYPE_FIXED_UDA_INTERMEDIATE
536 || type_.IsCollectionType() || type_.IsStructType());
537 llvm::Value* v = builder_->CreateExtractValue(value_, 0);
538 v = SetHighBits(32, len, v);
539 value_ = builder_->CreateInsertValue(value_, v, 0, name_);
540}
541
542llvm::Value* CodegenAnyVal::GetTimeOfDay() {
543 // Get the second i64 value.

Callers 7

LiteralMethod · 0.45
BYTE_ARRAY>Method · 0.45
ReadValueInternalMethod · 0.45
TEST_FFunction · 0.45

Calls 3

IsStringTypeMethod · 0.80
IsCollectionTypeMethod · 0.80
IsStructTypeMethod · 0.80

Tested by 1

TEST_FFunction · 0.36