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

Method ToIR

be/src/runtime/descriptors.cc:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86llvm::Constant* NullIndicatorOffset::ToIR(LlvmCodeGen* codegen) const {
87 llvm::StructType* null_indicator_offset_type =
88 codegen->GetStructType<NullIndicatorOffset>();
89 // Populate padding at end of struct with zeroes.
90 llvm::ConstantAggregateZero* zeroes =
91 llvm::ConstantAggregateZero::get(null_indicator_offset_type);
92 return llvm::ConstantStruct::get(null_indicator_offset_type,
93 {codegen->GetI32Constant(byte_offset),
94 codegen->GetI8Constant(bit_mask),
95 zeroes->getStructElement(2)});
96}
97
98llvm::Constant* NullIndicatorOffset::ToIRPacked(LlvmCodeGen* codegen) const {
99 uint64_t packed = ((uint64_t)bit_mask << 32) | ((uint64_t)byte_offset);

Callers

nothing calls this directly

Calls 2

GetI32ConstantMethod · 0.80
GetI8ConstantMethod · 0.80

Tested by

no test coverage detected