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

Method SetPtr

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

Source from the content-addressed store, hash-verified

521}
522
523void CodegenAnyVal::SetPtr(llvm::Value* ptr) {
524 // Set the second pointer value to 'ptr'.
525 DCHECK(type_.IsStringType() || type_.type == TYPE_FIXED_UDA_INTERMEDIATE
526 || type_.IsCollectionType() || type_.IsStructType());
527#ifdef __aarch64__
528 ptr = builder_->CreatePtrToInt(ptr, codegen_->i64_type());
529#endif
530 value_ = builder_->CreateInsertValue(value_, ptr, 1, name_);
531}
532
533void CodegenAnyVal::SetLen(llvm::Value* len) {
534 // Set the high bytes of the first value to 'len'.

Callers 5

AddResultTupleMethod · 0.45
CopyToBufferMethod · 0.45

Calls 4

IsStringTypeMethod · 0.80
IsCollectionTypeMethod · 0.80
IsStructTypeMethod · 0.80
i64_typeMethod · 0.80

Tested by

no test coverage detected