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

Method GetPtr

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

Source from the content-addressed store, hash-verified

504}
505
506llvm::Value* CodegenAnyVal::GetPtr() {
507 // Set the second pointer value to 'ptr'.
508 DCHECK(type_.IsStringType() || type_.IsCollectionType() || type_.IsStructType());
509 llvm::Value* val = builder_->CreateExtractValue(value_, 1, name_);
510#ifdef __aarch64__
511 val = builder_->CreateIntToPtr(val, codegen_->ptr_type());
512#endif
513 return val;
514}
515
516llvm::Value* CodegenAnyVal::GetLen() {
517 // Get the high bytes of the first value.

Callers 3

NextMethod · 0.45
StructToReadWriteInfoMethod · 0.45

Calls 4

IsStringTypeMethod · 0.80
IsCollectionTypeMethod · 0.80
IsStructTypeMethod · 0.80
ptr_typeMethod · 0.80

Tested by

no test coverage detected