Skip to content

Conversation

@joker-eph
Copy link
Collaborator

This is somehow NFC, we were creating wrapper for interal functions, which are de-facto not callable.

…internal linkage

This is somehow NFC, we were creating wrapper for interal functions, which are de-facto
not callable.
@llvmbot
Copy link
Member

llvmbot commented Dec 8, 2025

@llvm/pr-subscribers-mlir-execution-engine

@llvm/pr-subscribers-mlir

Author: Mehdi Amini (joker-eph)

Changes

This is somehow NFC, we were creating wrapper for interal functions, which are de-facto not callable.


Full diff: https://github.com/llvm/llvm-project/pull/171115.diff

1 Files Affected:

  • (modified) mlir/lib/ExecutionEngine/ExecutionEngine.cpp (+2-4)
diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
index 2255633c746b3..287c52a262c11 100644
--- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -146,12 +146,10 @@ static void packFunctionArguments(Module *module) {
   llvm::IRBuilder<> builder(ctx);
   DenseSet<llvm::Function *> interfaceFunctions;
   for (auto &func : module->getFunctionList()) {
-    if (func.isDeclaration()) {
+    if (func.isDeclaration() || func.hasLocalLinkage())
       continue;
-    }
-    if (interfaceFunctions.count(&func)) {
+    if (interfaceFunctions.count(&func))
       continue;
-    }
 
     // Given a function `foo(<...>)`, define the interface function
     // `mlir_foo(i8**)`.

@joker-eph joker-eph merged commit c1d030e into llvm:main Dec 8, 2025
13 checks passed
@joker-eph joker-eph deleted the ee_private_wrapper branch December 8, 2025 13:42
honeygoyal pushed a commit to honeygoyal/llvm-project that referenced this pull request Dec 9, 2025
…internal linkage (llvm#171115)

This is somehow NFC, we were creating wrapper for interal functions,
which are de-facto not callable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants