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

Method AddGlobalMappingForFunc

cpp/src/gandiva/engine.cc:600–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600void Engine::AddGlobalMappingForFunc(const std::string& name, llvm::Type* ret_type,
601 const std::vector<llvm::Type*>& args, void* func) {
602 const auto prototype = llvm::FunctionType::get(ret_type, args, /*is_var_arg*/ false);
603 llvm::Function::Create(prototype, llvm::GlobalValue::ExternalLinkage, name, module());
604 AddAbsoluteSymbol(*lljit_, name, func);
605}
606
607arrow::Status Engine::AddGlobalMappings() {
608 ARROW_RETURN_NOT_OK(ExportedFuncsRegistry::AddMappings(this));

Callers 7

AddMappingsMethod · 0.80
AddMappingsMethod · 0.80
AddMappingsMethod · 0.80
AddMappingsMethod · 0.80
AddMappingsMethod · 0.80
AddMappingsMethod · 0.80
AddMappingsMethod · 0.80

Calls 2

moduleFunction · 0.85
AddAbsoluteSymbolFunction · 0.85

Tested by

no test coverage detected