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

Method AddMappings

cpp/src/gandiva/gdv_hash_function_stubs.cc:223–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221namespace gandiva {
222
223arrow::Status ExportedHashFunctions::AddMappings(Engine* engine) const {
224 std::vector<llvm::Type*> args;
225 auto types = engine->types();
226
227 // gdv_fn_md5_int8
228 args = {
229 types->i64_type(), // context
230 types->i8_type(), // value
231 types->i1_type(), // validity
232 types->i32_ptr_type() // out_length
233 };
234 engine->AddGlobalMappingForFunc("gdv_fn_md5_int8", types->i8_ptr_type() /*return_type*/,
235 args, reinterpret_cast<void*>(gdv_fn_md5_int8));
236
237 // gdv_fn_md5_int16
238 args = {
239 types->i64_type(), // context
240 types->i16_type(), // value
241 types->i1_type(), // validity
242 types->i32_ptr_type() // out_length
243 };
244 engine->AddGlobalMappingForFunc("gdv_fn_md5_int16",
245 types->i8_ptr_type() /*return_type*/, args,
246 reinterpret_cast<void*>(gdv_fn_md5_int16));
247
248 // gdv_fn_md5_int32
249 args = {
250 types->i64_type(), // context
251 types->i32_type(), // value
252 types->i1_type(), // validity
253 types->i32_ptr_type() // out_length
254 };
255 engine->AddGlobalMappingForFunc("gdv_fn_md5_int32",
256 types->i8_ptr_type() /*return_type*/, args,
257 reinterpret_cast<void*>(gdv_fn_md5_int32));
258
259 // gdv_fn_md5_int32
260 args = {
261 types->i64_type(), // context
262 types->i64_type(), // value
263 types->i1_type(), // validity
264 types->i32_ptr_type() // out_length
265 };
266 engine->AddGlobalMappingForFunc("gdv_fn_md5_int64",
267 types->i8_ptr_type() /*return_type*/, args,
268 reinterpret_cast<void*>(gdv_fn_md5_int64));
269
270 // gdv_fn_md5_uint8
271 args = {
272 types->i64_type(), // context
273 types->i8_type(), // value
274 types->i1_type(), // validity
275 types->i32_ptr_type() // out_length
276 };
277 engine->AddGlobalMappingForFunc("gdv_fn_md5_uint8",
278 types->i8_ptr_type() /*return_type*/, args,
279 reinterpret_cast<void*>(gdv_fn_md5_uint8));
280

Callers

nothing calls this directly

Calls 3

typesMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected