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

Method GetUnloweredPtr

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

Source from the content-addressed store, hash-verified

622}
623
624llvm::Value* CodegenAnyVal::GetUnloweredPtr(const string& name) const {
625 // Get an unlowered pointer by creating a lowered pointer then bitcasting it.
626 // TODO: if the original value was unlowered, this generates roundabout code that
627 // lowers the value and casts it back. Generally LLVM's optimiser can reason
628 // about what's going on and undo our shenanigans to generate sane code, but it
629 // would be nice to just emit reasonable code in the first place.
630 return builder_->CreateBitCast(
631 GetLoweredPtr(), GetUnloweredPtrType(codegen_, type_), name);
632}
633
634llvm::Value* CodegenAnyVal::GetAnyValPtr(const std::string& name) const {
635 return builder_->CreateBitCast(

Callers 2

CodegenCallUdaMethod · 0.80
EqMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected