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

Function VerifyAndLinkModule

cpp/src/gandiva/engine.cc:277–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277arrow::Status VerifyAndLinkModule(llvm::Module& dest_module,
278 std::unique_ptr<llvm::Module> src_ir_module) {
279 src_ir_module->setDataLayout(dest_module.getDataLayout());
280
281 std::string error_info;
282 llvm::raw_string_ostream error_stream(error_info);
283 ARROW_RETURN_IF(
284 llvm::verifyModule(*src_ir_module, &error_stream),
285 Status::CodeGenError("verify of IR Module failed: " + error_stream.str()));
286
287 ARROW_RETURN_IF(llvm::Linker::linkModules(dest_module, std::move(src_ir_module)),
288 Status::CodeGenError("failed to link IR Modules"));
289
290 return Status::OK();
291}
292
293void RemoveBuildTargetAttributes(llvm::Module& module) {
294 // Precompiled bitcode is JIT-compiled on the runtime host, so do not retain the

Callers 2

LoadPreCompiledIRMethod · 0.85

Calls 3

CodeGenErrorFunction · 0.85
strMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected