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

Method GetDataBufferPtrReference

cpp/src/gandiva/llvm_generator.cc:189–194  ·  view source on GitHub ↗

Get reference to data array at specified index in the args list.

Source from the content-addressed store, hash-verified

187
188/// Get reference to data array at specified index in the args list.
189llvm::Value* LLVMGenerator::GetDataBufferPtrReference(llvm::Value* arg_addrs, int idx,
190 FieldPtr field) {
191 const std::string& name = field->name();
192 llvm::Value* load = LoadVectorAtIndex(arg_addrs, types()->i64_type(), idx, name);
193 return ir_builder()->CreateIntToPtr(load, types()->i8_ptr_type(), name + "_buf_ptr");
194}
195
196/// Get reference to data array at specified index in the args list.
197llvm::Value* LLVMGenerator::GetDataReference(llvm::Value* arg_addrs, int idx,

Callers

nothing calls this directly

Calls 3

typesFunction · 0.70
ir_builderFunction · 0.70
nameMethod · 0.45

Tested by

no test coverage detected