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

Method AddMappings

cpp/src/gandiva/external_c_functions.cc:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66namespace gandiva {
67Status ExternalCFunctions::AddMappings(Engine* engine) const {
68 const auto& c_funcs = function_registry_->GetCFunctions();
69 const auto types = engine->types();
70 for (auto& [func, func_ptr] : c_funcs) {
71 for (const auto& sig : func.signatures()) {
72 ARROW_ASSIGN_OR_RAISE(auto llvm_signature, MapToLLVMSignature(sig, func, types));
73 auto& [args, ret_llvm_type] = llvm_signature;
74 engine->AddGlobalMappingForFunc(func.pc_name(), ret_llvm_type, args, func_ptr);
75 }
76 }
77 return Status::OK();
78}
79} // namespace gandiva

Callers

nothing calls this directly

Calls 3

typesMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected