MCPcopy Create free account
hub / github.com/apache/arrow / LoadVectorAtIndex

Method LoadVectorAtIndex

cpp/src/gandiva/llvm_generator.cc:174–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174llvm::Value* LLVMGenerator::LoadVectorAtIndex(llvm::Value* arg_addrs, llvm::Type* type,
175 int idx, const std::string& name) {
176 auto* idx_val = types()->i32_constant(idx);
177 auto* offset = ir_builder()->CreateGEP(type, arg_addrs, idx_val, name + "_mem_addr");
178 return ir_builder()->CreateLoad(type, offset, name + "_mem");
179}
180
181/// Get reference to validity array at specified index in the args list.
182llvm::Value* LLVMGenerator::GetValidityReference(llvm::Value* arg_addrs, int idx,

Callers 3

VisitInExpressionMethod · 0.80
DecimalScalar128>Method · 0.80
BuildParamsMethod · 0.80

Calls 2

typesFunction · 0.70
ir_builderFunction · 0.70

Tested by

no test coverage detected