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

Method LoadVectorAtIndex

cpp/src/gandiva/llvm_generator.cc:173–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

VisitInExpressionMethod · 0.80
BuildParamsMethod · 0.80

Calls 2

typesFunction · 0.70
ir_builderFunction · 0.70

Tested by

no test coverage detected