Skip to content

[MLIR] [PDLL] Check linkage and install MLIRPDLLParser #154677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jackalcooper
Copy link
Contributor

  • MLIRPDLLParser is defined by llvm_add_library, it requires extra installation declaration like MLIRTableGen
  • The correspondent header mlir/Tools/PDLL/Parser/Parser.h will be installed, so we should also install the library.
  • Useful for downstream users want to extend PDLL features or adding custom pre-processing and reflection.

@llvmbot llvmbot added mlir:core MLIR Core Infrastructure mlir labels Aug 21, 2025
@llvmbot
Copy link
Member

llvmbot commented Aug 21, 2025

@llvm/pr-subscribers-mlir

Author: Shenghang Tsai (jackalcooper)

Changes
  • MLIRPDLLParser is defined by llvm_add_library, it requires extra installation declaration like MLIRTableGen
  • The correspondent header mlir/Tools/PDLL/Parser/Parser.h will be installed, so we should also install the library.
  • Useful for downstream users want to extend PDLL features or adding custom pre-processing and reflection.

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

1 Files Affected:

  • (modified) mlir/lib/Tools/PDLL/Parser/CMakeLists.txt (+4)
diff --git a/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt b/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
index 7953677d1957e..2998bc660b4e4 100644
--- a/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
+++ b/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
@@ -15,3 +15,7 @@ llvm_add_library(MLIRPDLLParser STATIC
   MLIRSupport
   MLIRTableGen
   )
+
+mlir_check_all_link_libraries(MLIRPDLLParser)
+
+add_mlir_library_install(MLIRPDLLParser)

@llvmbot
Copy link
Member

llvmbot commented Aug 21, 2025

@llvm/pr-subscribers-mlir-core

Author: Shenghang Tsai (jackalcooper)

Changes
  • MLIRPDLLParser is defined by llvm_add_library, it requires extra installation declaration like MLIRTableGen
  • The correspondent header mlir/Tools/PDLL/Parser/Parser.h will be installed, so we should also install the library.
  • Useful for downstream users want to extend PDLL features or adding custom pre-processing and reflection.

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

1 Files Affected:

  • (modified) mlir/lib/Tools/PDLL/Parser/CMakeLists.txt (+4)
diff --git a/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt b/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
index 7953677d1957e..2998bc660b4e4 100644
--- a/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
+++ b/mlir/lib/Tools/PDLL/Parser/CMakeLists.txt
@@ -15,3 +15,7 @@ llvm_add_library(MLIRPDLLParser STATIC
   MLIRSupport
   MLIRTableGen
   )
+
+mlir_check_all_link_libraries(MLIRPDLLParser)
+
+add_mlir_library_install(MLIRPDLLParser)

@jackalcooper jackalcooper changed the title [MLIR] Check linkage and install MLIRPDLLParser [MLIR] [PDLL] Check linkage and install MLIRPDLLParser Aug 21, 2025
@jackalcooper
Copy link
Contributor Author

Hi @River707 could you review and merge this PR?

@jackalcooper
Copy link
Contributor Author

@joker-eph could you help review this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:core MLIR Core Infrastructure mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants