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

Method GetDataBufferPtrReference

cpp/src/gandiva/llvm_generator.cc:190–195  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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