Skip to content

[mlir][core] Move InitAll*** implementation into static library.#150805

Merged
Hardcode84 merged 3 commits into
llvm:mainfrom
Hardcode84:init-all
Jul 29, 2025
Merged

[mlir][core] Move InitAll*** implementation into static library.#150805
Hardcode84 merged 3 commits into
llvm:mainfrom
Hardcode84:init-all

Conversation

@Hardcode84

@Hardcode84 Hardcode84 commented Jul 26, 2025

Copy link
Copy Markdown
Contributor

InitAll*** functions are used by opt-style tools to init all MLIR dialects/passes/extensions. Currently they are implemeted as inline functions and include essentially the entire MLIR header tree. Each file which includes this header (~10 currently) takes 10+ sec and multiple GB of ram to compile (tested with clang-19), which limits amount of parallel compiler jobs which can be run. Also, flang just includes this file into one of its headers.

Move the actual registration code to the static library, so it's compiled only once.

Discourse thread https://discourse.llvm.org/t/rfc-moving-initall-implementation-into-static-library/87559

Comment thread mlir/lib/CMakeLists.txt Outdated

@joker-eph joker-eph Jul 27, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we split this in separate libraries? MLIRRegisterAllDialects MLIRRegisterAllExtensions ``MLIRRegisterAllPasses.cpp`
I would also rename the source files to the same name as each library.
And provide one separate header for each of these files (so that there is a direct correspondence between the header your have to include to get the API and the library you have to link to match the API call).

This will allow finer grain dependencies: otherwise I see places that are currently only depending on dialect initialization that would depend on all passes after your patch right now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, although, it's not so fine grained in practice, as MLIRRegisterAllPasses has to include ${dialect_libs} too.

@Hardcode84 Hardcode84 marked this pull request as ready for review July 27, 2025 21:42
@llvmbot llvmbot added clang Clang issues not falling into any other category mlir:core MLIR Core Infrastructure mlir:llvm mlir flang Flang issues not falling into any other category mlir:execution-engine flang:fir-hlfir ClangIR Anything related to the ClangIR project labels Jul 27, 2025
@llvmbot

llvmbot commented Jul 27, 2025

Copy link
Copy Markdown
Member

@llvm/pr-subscribers-clangir
@llvm/pr-subscribers-mlir
@llvm/pr-subscribers-mlir-core

@llvm/pr-subscribers-clang

Author: Ivan Butygin (Hardcode84)

Changes

InitAll*** functions are used by opt-style tools to init all MLIR dialects/passes/extensions. Currently they are implemeted as inline functions and include essentially the entire MLIR header tree. Each file which includes this header (~10 currently) takes 10+ sec and multiple GB of ram to compile (tested with clang-19), which limits amount of parallel compiler jobs which can be run. Also, flang just includes this file into one of its headers.

Move the actual registration code to the static library, so it's compiled only once.


Patch is 59.14 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/150805.diff

30 Files Affected:

  • (modified) clang/tools/cir-lsp-server/CMakeLists.txt (+6-9)
  • (modified) flang/include/flang/Optimizer/Support/InitFIR.h (+8)
  • (modified) flang/lib/Optimizer/Support/CMakeLists.txt (+3-6)
  • (modified) mlir/examples/standalone/standalone-opt/CMakeLists.txt (+6-8)
  • (modified) mlir/examples/standalone/standalone-opt/standalone-opt.cpp (+2)
  • (modified) mlir/examples/toy/Ch5/CMakeLists.txt (+4-5)
  • (modified) mlir/examples/toy/Ch5/toyc.cpp (+1)
  • (modified) mlir/examples/toy/Ch6/CMakeLists.txt (+4-7)
  • (modified) mlir/examples/toy/Ch6/toyc.cpp (+1)
  • (modified) mlir/examples/toy/Ch7/CMakeLists.txt (+4-7)
  • (modified) mlir/examples/toy/Ch7/toyc.cpp (+1)
  • (modified) mlir/examples/transform-opt/CMakeLists.txt (+3-7)
  • (modified) mlir/examples/transform-opt/mlir-transform-opt.cpp (+1)
  • (modified) mlir/include/mlir/InitAllDialects.h (+4-189)
  • (modified) mlir/include/mlir/InitAllExtensions.h (+2-97)
  • (modified) mlir/include/mlir/InitAllPasses.h (+4-82)
  • (modified) mlir/lib/CAPI/RegisterEverything/CMakeLists.txt (+4-7)
  • (modified) mlir/lib/CMakeLists.txt (+32)
  • (added) mlir/lib/RegisterAllDialects.cpp (+207)
  • (added) mlir/lib/RegisterAllExtensions.cpp (+115)
  • (added) mlir/lib/RegisterAllPasses.cpp (+99)
  • (modified) mlir/tools/mlir-lsp-server/CMakeLists.txt (+4-17)
  • (modified) mlir/tools/mlir-lsp-server/mlir-lsp-server.cpp (+1)
  • (modified) mlir/tools/mlir-opt/CMakeLists.txt (+3-16)
  • (modified) mlir/tools/mlir-query/CMakeLists.txt (+1-3)
  • (modified) mlir/tools/mlir-reduce/CMakeLists.txt (+2-8)
  • (modified) mlir/tools/mlir-rewrite/CMakeLists.txt (+4-6)
  • (modified) mlir/tools/mlir-rewrite/mlir-rewrite.cpp (+1)
  • (modified) mlir/unittests/ExecutionEngine/CMakeLists.txt (+1-2)
  • (modified) mlir/unittests/Target/LLVM/CMakeLists.txt (+1-3)
diff --git a/clang/tools/cir-lsp-server/CMakeLists.txt b/clang/tools/cir-lsp-server/CMakeLists.txt
index aad2646ce0187..f421215173e62 100644
--- a/clang/tools/cir-lsp-server/CMakeLists.txt
+++ b/clang/tools/cir-lsp-server/CMakeLists.txt
@@ -1,26 +1,23 @@
-get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
-get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
-
 include_directories(${LLVM_MAIN_SRC_DIR}/../mlir/include)
 include_directories(${CMAKE_BINARY_DIR}/tools/mlir/include)
 
 set(LIBS
-  ${dialect_libs}
-  ${conversion_libs}
   ${test_libs}
   clangCIR
   clangCIRLoweringDirectToLLVM
-  MLIRCIR
   MLIRAffineAnalysis
   MLIRAnalysis
+  MLIRCIR
   MLIRDialect
+  MLIRIR
   MLIRLspServerLib
   MLIRParser
   MLIRPass
-  MLIRTransforms
-  MLIRTransformUtils
+  MLIRRegisterAllDialects
+  MLIRRegisterAllPasses
   MLIRSupport
-  MLIRIR
+  MLIRTransformUtils
+  MLIRTransforms
   )
 
 add_mlir_tool(cir-lsp-server
diff --git a/flang/include/flang/Optimizer/Support/InitFIR.h b/flang/include/flang/Optimizer/Support/InitFIR.h
index aacba233a2b32..3e42ffd41591e 100644
--- a/flang/include/flang/Optimizer/Support/InitFIR.h
+++ b/flang/include/flang/Optimizer/Support/InitFIR.h
@@ -20,12 +20,20 @@
 #include "flang/Optimizer/OpenACC/Support/RegisterOpenACCExtensions.h"
 #include "flang/Optimizer/OpenMP/Support/RegisterOpenMPExtensions.h"
 #include "mlir/Conversion/Passes.h"
+#include "mlir/Dialect/Affine/IR/AffineOps.h"
 #include "mlir/Dialect/Affine/Passes.h"
 #include "mlir/Dialect/Complex/IR/Complex.h"
+#include "mlir/Dialect/ControlFlow/IR/ControlFlow.h"
+#include "mlir/Dialect/DLTI/DLTI.h"
 #include "mlir/Dialect/Func/Extensions/InlinerExtension.h"
+#include "mlir/Dialect/Func/IR/FuncOps.h"
 #include "mlir/Dialect/Index/IR/IndexDialect.h"
 #include "mlir/Dialect/LLVMIR/NVVMDialect.h"
+#include "mlir/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.h"
+#include "mlir/Dialect/Math/IR/Math.h"
+#include "mlir/Dialect/OpenACC/OpenACC.h"
 #include "mlir/Dialect/OpenACC/Transforms/Passes.h"
+#include "mlir/Dialect/SCF/IR/SCF.h"
 #include "mlir/Dialect/SCF/Transforms/Passes.h"
 #include "mlir/InitAllDialects.h"
 #include "mlir/Pass/Pass.h"
diff --git a/flang/lib/Optimizer/Support/CMakeLists.txt b/flang/lib/Optimizer/Support/CMakeLists.txt
index 7ccdd4fd9c25c..38038e1e9821d 100644
--- a/flang/lib/Optimizer/Support/CMakeLists.txt
+++ b/flang/lib/Optimizer/Support/CMakeLists.txt
@@ -1,6 +1,3 @@
-get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
-get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
-
 add_flang_library(FIRSupport
   DataLayout.cpp
   InitFIR.cpp
@@ -23,12 +20,12 @@ add_flang_library(FIRSupport
   ${extension_libs}
 
   MLIR_LIBS
-  ${dialect_libs}
-  ${extension_libs}
   MLIRBuiltinToLLVMIRTranslation
+  MLIRLLVMToLLVMIRTranslation
   MLIROpenACCToLLVMIRTranslation
   MLIROpenMPToLLVMIRTranslation
-  MLIRLLVMToLLVMIRTranslation
+  MLIRRegisterAllDialects
+  MLIRRegisterAllExtensions
   MLIRTargetLLVMIRExport
   MLIRTargetLLVMIRImport
 )
diff --git a/mlir/examples/standalone/standalone-opt/CMakeLists.txt b/mlir/examples/standalone/standalone-opt/CMakeLists.txt
index 27f81284c4d9f..4b38de7d12fbe 100644
--- a/mlir/examples/standalone/standalone-opt/CMakeLists.txt
+++ b/mlir/examples/standalone/standalone-opt/CMakeLists.txt
@@ -1,12 +1,10 @@
-get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
-get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
 set(LIBS
-        ${dialect_libs}
-        ${conversion_libs}
-        MLIRArithDialect
-        MLIROptLib
-        MLIRStandalone
-        )
+    MLIRArithDialect
+    MLIROptLib
+    MLIRRegisterAllDialects
+    MLIRRegisterAllPasses
+    MLIRStandalone
+  )
 add_llvm_executable(standalone-opt standalone-opt.cpp)
 
 llvm_update_compile_flags(standalone-opt)
diff --git a/mlir/examples/standalone/standalone-opt/standalone-opt.cpp b/mlir/examples/standalone/standalone-opt/standalone-opt.cpp
index e39fa967019a8..eebfcb7b776b2 100644
--- a/mlir/examples/standalone/standalone-opt/standalone-opt.cpp
+++ b/mlir/examples/standalone/standalone-opt/standalone-opt.cpp
@@ -6,6 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "mlir/Dialect/Arith/IR/Arith.h"
+#include "mlir/Dialect/Func/IR/FuncOps.h"
 #include "mlir/IR/MLIRContext.h"
 #include "mlir/InitAllDialects.h"
 #include "mlir/InitAllPasses.h"
diff --git a/mlir/examples/toy/Ch5/CMakeLists.txt b/mlir/examples/toy/Ch5/CMakeLists.txt
index f4f0fec712f5b..454ca56c2dd47 100644
--- a/mlir/examples/toy/Ch5/CMakeLists.txt
+++ b/mlir/examples/toy/Ch5/CMakeLists.txt
@@ -27,12 +27,8 @@ add_toy_chapter(toyc-ch5
 
 include_directories(${CMAKE_CURRENT_BINARY_DIR})
 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
-get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
-get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
 target_link_libraries(toyc-ch5
   PRIVATE
-    ${dialect_libs}
-    ${extension_libs}
     MLIRAnalysis
     MLIRCallInterfaces
     MLIRCastInterfaces
@@ -40,6 +36,9 @@ target_link_libraries(toyc-ch5
     MLIRIR
     MLIRParser
     MLIRPass
+    MLIRRegisterAllDialects
+    MLIRRegisterAllExtensions
     MLIRSideEffectInterfaces
     MLIRSupport
-    MLIRTransforms)
+    MLIRTransforms
+  )
diff --git a/mlir/examples/toy/Ch5/toyc.cpp b/mlir/examples/toy/Ch5/toyc.cpp
index 6a0c6318bae2a..afdf782d8ea47 100644
--- a/mlir/examples/toy/Ch5/toyc.cpp
+++ b/mlir/examples/toy/Ch5/toyc.cpp
@@ -11,6 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "mlir/Dialect/Func/Extensions/AllExtensions.h"
+#include "mlir/Dialect/Func/IR/FuncOps.h"
 #include "mlir/IR/Diagnostics.h"
 #include "toy/AST.h"
 #include "toy/Dialect.h"
diff --git a/mlir/examples/toy/Ch6/CMakeLists.txt b/mlir/examples/toy/Ch6/CMakeLists.txt
index 283b895eb6bf4..73df6028329d5 100644
--- a/mlir/examples/toy/Ch6/CMakeLists.txt
+++ b/mlir/examples/toy/Ch6/CMakeLists.txt
@@ -37,14 +37,8 @@ add_toy_chapter(toyc-ch6
 
 include_directories(${CMAKE_CURRENT_BINARY_DIR})
 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
-get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
-get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
-get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
 target_link_libraries(toyc-ch6
   PRIVATE
-    ${dialect_libs}
-    ${conversion_libs}
-    ${extension_libs}
     MLIRAnalysis
     MLIRBuiltinToLLVMIRTranslation
     MLIRCallInterfaces
@@ -58,8 +52,11 @@ target_link_libraries(toyc-ch6
     MLIRMemRefDialect
     MLIRParser
     MLIRPass
+    MLIRRegisterAllDialects
+    MLIRRegisterAllExtensions
+    MLIRRegisterAllPasses
     MLIRSideEffectInterfaces
     MLIRSupport
     MLIRTargetLLVMIRExport
     MLIRTransforms
-    )
+  )
diff --git a/mlir/examples/toy/Ch6/toyc.cpp b/mlir/examples/toy/Ch6/toyc.cpp
index dccab91944fe1..4a5e10973f0c0 100644
--- a/mlir/examples/toy/Ch6/toyc.cpp
+++ b/mlir/examples/toy/Ch6/toyc.cpp
@@ -11,6 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "mlir/Dialect/Func/Extensions/AllExtensions.h"
+#include "mlir/Dialect/Func/IR/FuncOps.h"
 #include "mlir/Dialect/LLVMIR/LLVMDialect.h"
 #include "mlir/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.h"
 #include "toy/AST.h"
diff --git a/mlir/examples/toy/Ch7/CMakeLists.txt b/mlir/examples/toy/Ch7/CMakeLists.txt
index 362ab512b6b2e..a489ae5b2d368 100644
--- a/mlir/examples/toy/Ch7/CMakeLists.txt
+++ b/mlir/examples/toy/Ch7/CMakeLists.txt
@@ -36,14 +36,8 @@ add_toy_chapter(toyc-ch7
 
 include_directories(${CMAKE_CURRENT_BINARY_DIR})
 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
-get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
-get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
-get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
 target_link_libraries(toyc-ch7
   PRIVATE
-    ${dialect_libs}
-    ${conversion_libs}
-    ${extension_libs}
     MLIRAnalysis
     MLIRBuiltinToLLVMIRTranslation
     MLIRCallInterfaces
@@ -56,7 +50,10 @@ target_link_libraries(toyc-ch7
     MLIRMemRefDialect
     MLIRParser
     MLIRPass
+    MLIRRegisterAllDialects
+    MLIRRegisterAllExtensions
+    MLIRRegisterAllPasses
     MLIRSideEffectInterfaces
     MLIRTargetLLVMIRExport
     MLIRTransforms
-    )
+  )
diff --git a/mlir/examples/toy/Ch7/toyc.cpp b/mlir/examples/toy/Ch7/toyc.cpp
index dd862656b9db8..32208eccaba5f 100644
--- a/mlir/examples/toy/Ch7/toyc.cpp
+++ b/mlir/examples/toy/Ch7/toyc.cpp
@@ -11,6 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "mlir/Dialect/Func/Extensions/AllExtensions.h"
+#include "mlir/Dialect/Func/IR/FuncOps.h"
 #include "mlir/Dialect/LLVMIR/LLVMDialect.h"
 #include "mlir/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.h"
 #include "toy/AST.h"
diff --git a/mlir/examples/transform-opt/CMakeLists.txt b/mlir/examples/transform-opt/CMakeLists.txt
index 8e23555d0b5d7..07d58f612f3f9 100644
--- a/mlir/examples/transform-opt/CMakeLists.txt
+++ b/mlir/examples/transform-opt/CMakeLists.txt
@@ -1,18 +1,14 @@
-get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
-get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
-get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
-
 set(LIBS
   MLIRAnalysis
   MLIRIR
   MLIRParser
+  MLIRRegisterAllDialects
+  MLIRRegisterAllExtensions
+  MLIRRegisterAllPasses
   MLIRSupport
   MLIRTransformDialect
   MLIRTransformDialectTransforms
   MLIRTransforms
-  ${dialect_libs}
-  ${conversion_libs}
-  ${extension_libs}
 )
 
 add_mlir_tool(mlir-transform-opt
diff --git a/mlir/examples/transform-opt/mlir-transform-opt.cpp b/mlir/examples/transform-opt/mlir-transform-opt.cpp
index 1a29913b9e144..4b12e7610d0a8 100644
--- a/mlir/examples/transform-opt/mlir-transform-opt.cpp
+++ b/mlir/examples/transform-opt/mlir-transform-opt.cpp
@@ -22,6 +22,7 @@
 #include "mlir/Tools/mlir-opt/MlirOptMain.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/InitLLVM.h"
+#include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/ToolOutputFile.h"
 #include <cstdlib>
diff --git a/mlir/include/mlir/InitAllDialects.h b/mlir/include/mlir/InitAllDialects.h
index 856170e9308da..76281712a3df9 100644
--- a/mlir/include/mlir/InitAllDialects.h
+++ b/mlir/include/mlir/InitAllDialects.h
@@ -14,200 +14,15 @@
 #ifndef MLIR_INITALLDIALECTS_H_
 #define MLIR_INITALLDIALECTS_H_
 
-#include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h"
-#include "mlir/Dialect/AMX/AMXDialect.h"
-#include "mlir/Dialect/Affine/IR/AffineOps.h"
-#include "mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h"
-#include "mlir/Dialect/Arith/IR/Arith.h"
-#include "mlir/Dialect/Arith/IR/ValueBoundsOpInterfaceImpl.h"
-#include "mlir/Dialect/Arith/Transforms/BufferDeallocationOpInterfaceImpl.h"
-#include "mlir/Dialect/Arith/Transforms/BufferViewFlowOpInterfaceImpl.h"
-#include "mlir/Dialect/Arith/Transforms/BufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/Arith/Transforms/ShardingInterfaceImpl.h"
-#include "mlir/Dialect/ArmNeon/ArmNeonDialect.h"
-#include "mlir/Dialect/ArmSME/IR/ArmSME.h"
-#include "mlir/Dialect/ArmSVE/IR/ArmSVEDialect.h"
-#include "mlir/Dialect/Async/IR/Async.h"
-#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
-#include "mlir/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/Complex/IR/Complex.h"
-#include "mlir/Dialect/ControlFlow/IR/ControlFlow.h"
-#include "mlir/Dialect/ControlFlow/Transforms/BufferDeallocationOpInterfaceImpl.h"
-#include "mlir/Dialect/ControlFlow/Transforms/BufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/DLTI/DLTI.h"
-#include "mlir/Dialect/EmitC/IR/EmitC.h"
-#include "mlir/Dialect/Func/IR/FuncOps.h"
-#include "mlir/Dialect/GPU/IR/GPUDialect.h"
-#include "mlir/Dialect/GPU/IR/ValueBoundsOpInterfaceImpl.h"
-#include "mlir/Dialect/GPU/Transforms/BufferDeallocationOpInterfaceImpl.h"
-#include "mlir/Dialect/IRDL/IR/IRDL.h"
-#include "mlir/Dialect/Index/IR/IndexDialect.h"
-#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
-#include "mlir/Dialect/LLVMIR/NVVMDialect.h"
-#include "mlir/Dialect/LLVMIR/ROCDLDialect.h"
-#include "mlir/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.h"
-#include "mlir/Dialect/LLVMIR/XeVMDialect.h"
-#include "mlir/Dialect/Linalg/IR/Linalg.h"
-#include "mlir/Dialect/Linalg/Transforms/AllInterfaces.h"
-#include "mlir/Dialect/Linalg/Transforms/RuntimeOpVerification.h"
-#include "mlir/Dialect/MLProgram/IR/MLProgram.h"
-#include "mlir/Dialect/MLProgram/Transforms/BufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/MPI/IR/MPI.h"
-#include "mlir/Dialect/Math/IR/Math.h"
-#include "mlir/Dialect/MemRef/IR/MemRef.h"
-#include "mlir/Dialect/MemRef/IR/MemRefMemorySlot.h"
-#include "mlir/Dialect/MemRef/IR/ValueBoundsOpInterfaceImpl.h"
-#include "mlir/Dialect/MemRef/Transforms/AllocationOpInterfaceImpl.h"
-#include "mlir/Dialect/MemRef/Transforms/BufferViewFlowOpInterfaceImpl.h"
-#include "mlir/Dialect/MemRef/Transforms/RuntimeOpVerification.h"
-#include "mlir/Dialect/NVGPU/IR/NVGPUDialect.h"
-#include "mlir/Dialect/OpenACC/OpenACC.h"
-#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
-#include "mlir/Dialect/PDL/IR/PDL.h"
-#include "mlir/Dialect/PDLInterp/IR/PDLInterp.h"
-#include "mlir/Dialect/Ptr/IR/PtrDialect.h"
-#include "mlir/Dialect/Quant/IR/Quant.h"
-#include "mlir/Dialect/SCF/IR/SCF.h"
-#include "mlir/Dialect/SCF/IR/ValueBoundsOpInterfaceImpl.h"
-#include "mlir/Dialect/SCF/TransformOps/SCFTransformOps.h"
-#include "mlir/Dialect/SCF/Transforms/BufferDeallocationOpInterfaceImpl.h"
-#include "mlir/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/SMT/IR/SMTDialect.h"
-#include "mlir/Dialect/SPIRV/IR/SPIRVDialect.h"
-#include "mlir/Dialect/Shape/IR/Shape.h"
-#include "mlir/Dialect/Shape/Transforms/BufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/Shard/IR/ShardDialect.h"
-#include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
-#include "mlir/Dialect/SparseTensor/Transforms/BufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/Tensor/IR/Tensor.h"
-#include "mlir/Dialect/Tensor/IR/TensorInferTypeOpInterfaceImpl.h"
-#include "mlir/Dialect/Tensor/IR/TensorTilingInterfaceImpl.h"
-#include "mlir/Dialect/Tensor/IR/ValueBoundsOpInterfaceImpl.h"
-#include "mlir/Dialect/Tensor/TransformOps/TensorTransformOps.h"
-#include "mlir/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/Tensor/Transforms/RuntimeOpVerification.h"
-#include "mlir/Dialect/Tensor/Transforms/SubsetInsertionOpInterfaceImpl.h"
-#include "mlir/Dialect/Tosa/IR/ShardingInterfaceImpl.h"
-#include "mlir/Dialect/Tosa/IR/TosaOps.h"
-#include "mlir/Dialect/Transform/IR/TransformDialect.h"
-#include "mlir/Dialect/Transform/PDLExtension/PDLExtension.h"
-#include "mlir/Dialect/UB/IR/UBOps.h"
-#include "mlir/Dialect/Vector/IR/ValueBoundsOpInterfaceImpl.h"
-#include "mlir/Dialect/Vector/IR/VectorOps.h"
-#include "mlir/Dialect/Vector/Transforms/BufferizableOpInterfaceImpl.h"
-#include "mlir/Dialect/Vector/Transforms/SubsetOpInterfaceImpl.h"
-#include "mlir/Dialect/X86Vector/X86VectorDialect.h"
-#include "mlir/Dialect/XeGPU/IR/XeGPU.h"
-#include "mlir/IR/Dialect.h"
-#include "mlir/Interfaces/CastInterfaces.h"
-#include "mlir/Target/LLVM/NVVM/Target.h"
-#include "mlir/Target/LLVM/ROCDL/Target.h"
-#include "mlir/Target/SPIRV/Target.h"
-
 namespace mlir {
+class DialectRegistry;
+class MLIRContext;
 
 /// Add all the MLIR dialects to the provided registry.
-inline void registerAllDialects(DialectRegistry &registry) {
-  // clang-format off
-  registry.insert<acc::OpenACCDialect,
-                  affine::AffineDialect,
-                  amdgpu::AMDGPUDialect,
-                  amx::AMXDialect,
-                  arith::ArithDialect,
-                  arm_neon::ArmNeonDialect,
-                  arm_sme::ArmSMEDialect,
-                  arm_sve::ArmSVEDialect,
-                  async::AsyncDialect,
-                  bufferization::BufferizationDialect,
-                  cf::ControlFlowDialect,
-                  complex::ComplexDialect,
-                  DLTIDialect,
-                  emitc::EmitCDialect,
-                  func::FuncDialect,
-                  gpu::GPUDialect,
-                  index::IndexDialect,
-                  irdl::IRDLDialect,
-                  linalg::LinalgDialect,
-                  LLVM::LLVMDialect,
-                  math::MathDialect,
-                  memref::MemRefDialect,
-                  shard::ShardDialect,
-                  ml_program::MLProgramDialect,
-                  mpi::MPIDialect,
-                  nvgpu::NVGPUDialect,
-                  NVVM::NVVMDialect,
-                  omp::OpenMPDialect,
-                  pdl::PDLDialect,
-                  pdl_interp::PDLInterpDialect,
-                  ptr::PtrDialect,
-                  quant::QuantDialect,
-                  ROCDL::ROCDLDialect,
-                  scf::SCFDialect,
-                  shape::ShapeDialect,
-                  smt::SMTDialect,
-                  sparse_tensor::SparseTensorDialect,
-                  spirv::SPIRVDialect,
-                  tensor::TensorDialect,
-                  tosa::TosaDialect,
-                  transform::TransformDialect,
-                  ub::UBDialect,
-                  vector::VectorDialect,
-                  x86vector::X86VectorDialect,
-                  xegpu::XeGPUDialect,
-                  xevm::XeVMDialect>();
-  // clang-format on
-
-  // Register all external models.
-  affine::registerValueBoundsOpInterfaceExternalModels(registry);
-  arith::registerBufferDeallocationOpInterfaceExternalModels(registry);
-  arith::registerBufferizableOpInterfaceExternalModels(registry);
-  arith::registerBufferViewFlowOpInterfaceExternalModels(registry);
-  arith::registerShardingInterfaceExternalModels(registry);
-  arith::registerValueBoundsOpInterfaceExternalModels(registry);
-  bufferization::func_ext::registerBufferizableOpInterfaceExternalModels(
-      registry);
-  builtin::registerCastOpInterfaceExternalModels(registry);
-  cf::registerBufferizableOpInterfaceExternalModels(registry);
-  cf::registerBufferDeallocationOpInterfaceExternalModels(registry);
-  gpu::registerBufferDeallocationOpInterfaceExternalModels(registry);
-  gpu::registerValueBoundsOpInterfaceExternalModels(registry);
-  LLVM::registerInlinerInterface(registry);
-  NVVM::registerInlinerInterface(registry);
-  linalg::registerAllDialectInterfaceImplementations(registry);
-  linalg::registerRuntimeVerifiableOpInterfaceExternalModels(registry);
-  memref::registerAllocationOpInterfaceExternalModels(registry);
-  memref::registerBufferViewFlowOpInterfaceExternalModels(registry);
-  memref::registerRuntimeVerifiableOpInterfaceExternalModels(registry);
-  memref::registerValueBoundsOpInterfaceExternalModels(registry);
-  memref::registerMemorySlotExternalModels(registry);
-  ml_program::registerBufferizableOpInterfaceExternalModels(registry);
-  scf::registerBufferDeallocationOpInterfaceExternalModels(registry);
-  scf::registerBufferizableOpInterfaceExternalModels(registry);
-  scf::registerValueBoundsOpInterfaceExternalModels(registry);
-  shape::registerBufferizableOpInterfaceExternalModels(registry);
-  sparse_tensor::registerBufferizableOpInterfaceExternalModels(registry);
-  tensor::registerBufferizableOpInterfaceExternalModels(registry);
-  tensor::registerFindPayloadReplacementOpInterfaceExternalModels(registry);
-  tensor::registerInferTypeOpInterfaceExternalModels(registry);
-  tensor::registerRuntimeVerifiableOpInterfaceExternalModels(registry);
-  tensor::registerSubsetOpInterfaceExternalModels(registry);
-  tensor::registerTilingInterfaceExternalModels(registry);
-  tensor::registerValueBoundsOpInterfaceExternalModels(registry);
-  tosa::registerShardingInterfaceExternalModels(registry);
-  vector::registerBufferizableOpInterfaceExternalModels(registry);
-  vector::registerSubsetOpInterfaceExternalModels(registry);
-  vector::registerValueBoundsOpInterfaceExternalModels(registry);
-  NVVM::registerNVVMTargetInterfaceExternalModels(registry);
-  ROCDL::registerROCDLTargetInterfaceExternalModels(registry);
-  spirv::registerSPIRVTargetInterfaceExternalModels(registry);
-}
+void registerAllDialects(DialectRegistry &registry);
 
 /// Append all the MLIR dialects to the regis...
[truncated]

@Hardcode84 Hardcode84 requested a review from ftynse July 27, 2025 21:47

@ftynse ftynse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether we should put these deeper, e.g., under lib/tools/mlir-opt... These seem to be overused by downstreams instead of registering only what they need because these are so prominent.

@andykaylor

Copy link
Copy Markdown
Contributor

Can you try building clang with CLANG_ENABLE_CIR defined with this patch? It's failing for me, and I'm not clear how to correctly fix it. We're probably one of the downstreams that is overusing these.

@Hardcode84

Copy link
Copy Markdown
Contributor Author

@andykaylor CIR should be fixed now, cir-opt builds for me locally

@andykaylor andykaylor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified that CIR builds for me also with the latest changes.

`InitAll***` functions are used by `opt`-style tools to init all MLIR dialects/passes/extensions.
Currently they are implemeted as inline functions and include essentially the entire MLIR header tree.
Each file which includes this header (~10 currently) takes 10+ sec and multiple GB of ram to compile (tested with clang-19), which limits amount of parallel compiler jobs which can be run.
Also, flang just casually includes this file into one of its headers.

Move the actual registration code to the static libarary, so it's compiled only once.
@Hardcode84 Hardcode84 merged commit ace42cf into llvm:main Jul 29, 2025
9 checks passed
@Hardcode84 Hardcode84 deleted the init-all branch July 29, 2025 10:21
@llvm-ci

llvm-ci commented Jul 29, 2025

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-8-cmake-build-only running on rocm-docker-rhel-8 while building clang,flang,mlir at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/17062

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[6008/7960] Building CXX object tools/clang/lib/Rewrite/CMakeFiles/obj.clangRewrite.dir/Rewriter.cpp.o
[6009/7960] Building CXX object tools/clang/lib/Rewrite/CMakeFiles/obj.clangRewrite.dir/TokenRewriter.cpp.o
[6010/7960] Building CXX object tools/clang/lib/ExtractAPI/CMakeFiles/obj.clangExtractAPI.dir/Serialization/SymbolGraphSerializer.cpp.o
[6011/7960] Building CXX object tools/clang/lib/ExtractAPI/CMakeFiles/obj.clangExtractAPI.dir/TypedefUnderlyingTypeResolver.cpp.o
[6012/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Distro.cpp.o
[6013/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Phases.cpp.o
[6014/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/OffloadBundler.cpp.o
[6015/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/OptionUtils.cpp.o
[6016/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Tool.cpp.o
[6017/7960] Linking CXX shared library lib/libMLIRRegisterAllExtensions.so.22.0git
FAILED: lib/libMLIRRegisterAllExtensions.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRRegisterAllExtensions.so.22.0git -o lib/libMLIRRegisterAllExtensions.so.22.0git tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  -lpthread  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o: In function `mlir::registerAllExtensions(mlir::DialectRegistry&)':
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x5): undefined reference to `mlir::registerConvertArithToEmitCInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd): undefined reference to `mlir::arith::registerConvertArithToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x15): undefined reference to `mlir::registerConvertComplexToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x1d): undefined reference to `mlir::cf::registerConvertControlFlowToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x35): undefined reference to `mlir::registerConvertFuncToEmitCInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x3d): undefined reference to `mlir::registerConvertFuncToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x45): undefined reference to `mlir::index::registerConvertIndexToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x4d): undefined reference to `mlir::registerConvertMathToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x55): undefined reference to `mlir::mpi::registerConvertMPIToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x5d): undefined reference to `mlir::registerConvertMemRefToEmitCInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x65): undefined reference to `mlir::registerConvertMemRefToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x6d): undefined reference to `mlir::registerConvertNVVMToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x75): undefined reference to `mlir::registerConvertOpenMPToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x7d): undefined reference to `mlir::registerConvertSCFToEmitCInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x85): undefined reference to `mlir::ub::registerConvertUBToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x8d): undefined reference to `mlir::registerConvertAMXToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x95): undefined reference to `mlir::gpu::registerConvertGpuToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x9d): undefined reference to `mlir::NVVM::registerConvertGpuToNVVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa5): undefined reference to `mlir::vector::registerConvertVectorToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xad): undefined reference to `mlir::registerConvertXeVMToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb5): undefined reference to `mlir::affine::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xbd): undefined reference to `mlir::bufferization::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc5): undefined reference to `mlir::dlti::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xcd): undefined reference to `mlir::func::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd5): undefined reference to `mlir::gpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xdd): undefined reference to `mlir::linalg::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe5): undefined reference to `mlir::memref::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xed): undefined reference to `mlir::nvgpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf5): undefined reference to `mlir::scf::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xfd): undefined reference to `mlir::sparse_tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x105): undefined reference to `mlir::tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x10d): undefined reference to `mlir::transform::registerDebugExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x115): undefined reference to `mlir::transform::registerIRDLExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x11d): undefined reference to `mlir::transform::registerLoopExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x125): undefined reference to `mlir::transform::registerPDLExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x12d): undefined reference to `mlir::transform::registerTuneExtension(mlir::DialectRegistry&)'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[6008/7960] Building CXX object tools/clang/lib/Rewrite/CMakeFiles/obj.clangRewrite.dir/Rewriter.cpp.o
[6009/7960] Building CXX object tools/clang/lib/Rewrite/CMakeFiles/obj.clangRewrite.dir/TokenRewriter.cpp.o
[6010/7960] Building CXX object tools/clang/lib/ExtractAPI/CMakeFiles/obj.clangExtractAPI.dir/Serialization/SymbolGraphSerializer.cpp.o
[6011/7960] Building CXX object tools/clang/lib/ExtractAPI/CMakeFiles/obj.clangExtractAPI.dir/TypedefUnderlyingTypeResolver.cpp.o
[6012/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Distro.cpp.o
[6013/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Phases.cpp.o
[6014/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/OffloadBundler.cpp.o
[6015/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/OptionUtils.cpp.o
[6016/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Tool.cpp.o
[6017/7960] Linking CXX shared library lib/libMLIRRegisterAllExtensions.so.22.0git
FAILED: lib/libMLIRRegisterAllExtensions.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRRegisterAllExtensions.so.22.0git -o lib/libMLIRRegisterAllExtensions.so.22.0git tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  -lpthread  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o: In function `mlir::registerAllExtensions(mlir::DialectRegistry&)':
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x5): undefined reference to `mlir::registerConvertArithToEmitCInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd): undefined reference to `mlir::arith::registerConvertArithToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x15): undefined reference to `mlir::registerConvertComplexToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x1d): undefined reference to `mlir::cf::registerConvertControlFlowToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x35): undefined reference to `mlir::registerConvertFuncToEmitCInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x3d): undefined reference to `mlir::registerConvertFuncToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x45): undefined reference to `mlir::index::registerConvertIndexToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x4d): undefined reference to `mlir::registerConvertMathToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x55): undefined reference to `mlir::mpi::registerConvertMPIToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x5d): undefined reference to `mlir::registerConvertMemRefToEmitCInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x65): undefined reference to `mlir::registerConvertMemRefToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x6d): undefined reference to `mlir::registerConvertNVVMToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x75): undefined reference to `mlir::registerConvertOpenMPToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x7d): undefined reference to `mlir::registerConvertSCFToEmitCInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x85): undefined reference to `mlir::ub::registerConvertUBToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x8d): undefined reference to `mlir::registerConvertAMXToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x95): undefined reference to `mlir::gpu::registerConvertGpuToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x9d): undefined reference to `mlir::NVVM::registerConvertGpuToNVVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa5): undefined reference to `mlir::vector::registerConvertVectorToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xad): undefined reference to `mlir::registerConvertXeVMToLLVMInterface(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb5): undefined reference to `mlir::affine::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xbd): undefined reference to `mlir::bufferization::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc5): undefined reference to `mlir::dlti::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xcd): undefined reference to `mlir::func::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd5): undefined reference to `mlir::gpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xdd): undefined reference to `mlir::linalg::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe5): undefined reference to `mlir::memref::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xed): undefined reference to `mlir::nvgpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf5): undefined reference to `mlir::scf::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xfd): undefined reference to `mlir::sparse_tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x105): undefined reference to `mlir::tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x10d): undefined reference to `mlir::transform::registerDebugExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x115): undefined reference to `mlir::transform::registerIRDLExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x11d): undefined reference to `mlir::transform::registerLoopExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x125): undefined reference to `mlir::transform::registerPDLExtension(mlir::DialectRegistry&)'
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x12d): undefined reference to `mlir::transform::registerTuneExtension(mlir::DialectRegistry&)'

@llvm-ci

llvm-ci commented Jul 29, 2025

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder hip-third-party-libs-test running on ext_buildbot_hw_05-hip-docker while building clang,flang,mlir at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/4006

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py --jobs=32' (failure)
...
[6758/7960] Creating library symlink lib/libMLIRVectorTransformOps.so
[6759/7960] Linking CXX shared library lib/libMLIRVectorToLLVMPass.so.22.0git
[6760/7960] Creating library symlink lib/libMLIRVectorToLLVMPass.so
[6761/7960] Linking CXX shared library lib/libMLIRCAPITarget.so.22.0git
[6762/7960] Creating library symlink lib/libMLIRCAPITarget.so
[6763/7960] Linking CXX executable bin/clang-format
[6764/7960] Building CXX object tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o
[6765/7960] Linking CXX shared library lib/libLLVMSelectionDAG.so.22.0git
[6766/7960] Creating library symlink lib/libLLVMSelectionDAG.so
[6767/7960] Linking CXX shared library lib/libMLIRRegisterAllExtensions.so.22.0git
FAILED: lib/libMLIRRegisterAllExtensions.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRRegisterAllExtensions.so.22.0git -o lib/libMLIRRegisterAllExtensions.so.22.0git tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/hip-third-party-libs-test/build/lib:"  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o: in function `mlir::registerAllExtensions(mlir::DialectRegistry&)':
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x9): undefined reference to `mlir::registerConvertArithToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x11): undefined reference to `mlir::arith::registerConvertArithToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x19): undefined reference to `mlir::registerConvertComplexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x21): undefined reference to `mlir::cf::registerConvertControlFlowToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x39): undefined reference to `mlir::registerConvertFuncToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x41): undefined reference to `mlir::registerConvertFuncToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x49): undefined reference to `mlir::index::registerConvertIndexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x51): undefined reference to `mlir::registerConvertMathToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x59): undefined reference to `mlir::mpi::registerConvertMPIToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x61): undefined reference to `mlir::registerConvertMemRefToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x69): undefined reference to `mlir::registerConvertMemRefToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x71): undefined reference to `mlir::registerConvertNVVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x79): undefined reference to `mlir::registerConvertOpenMPToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x81): undefined reference to `mlir::registerConvertSCFToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x89): undefined reference to `mlir::ub::registerConvertUBToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x91): undefined reference to `mlir::registerConvertAMXToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x99): undefined reference to `mlir::gpu::registerConvertGpuToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa1): undefined reference to `mlir::NVVM::registerConvertGpuToNVVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa9): undefined reference to `mlir::vector::registerConvertVectorToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb1): undefined reference to `mlir::registerConvertXeVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb9): undefined reference to `mlir::affine::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc1): undefined reference to `mlir::bufferization::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc9): undefined reference to `mlir::dlti::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd1): undefined reference to `mlir::func::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd9): undefined reference to `mlir::gpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe1): undefined reference to `mlir::linalg::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe9): undefined reference to `mlir::memref::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf1): undefined reference to `mlir::nvgpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf9): undefined reference to `mlir::scf::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x101): undefined reference to `mlir::sparse_tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x109): undefined reference to `mlir::tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x111): undefined reference to `mlir::transform::registerDebugExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x119): undefined reference to `mlir::transform::registerIRDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x121): undefined reference to `mlir::transform::registerLoopExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x129): undefined reference to `mlir::transform::registerPDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x131): undefined reference to `mlir::transform::registerTuneExtension(mlir::DialectRegistry&)'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[6758/7960] Creating library symlink lib/libMLIRVectorTransformOps.so
[6759/7960] Linking CXX shared library lib/libMLIRVectorToLLVMPass.so.22.0git
[6760/7960] Creating library symlink lib/libMLIRVectorToLLVMPass.so
[6761/7960] Linking CXX shared library lib/libMLIRCAPITarget.so.22.0git
[6762/7960] Creating library symlink lib/libMLIRCAPITarget.so
[6763/7960] Linking CXX executable bin/clang-format
[6764/7960] Building CXX object tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o
[6765/7960] Linking CXX shared library lib/libLLVMSelectionDAG.so.22.0git
[6766/7960] Creating library symlink lib/libLLVMSelectionDAG.so
[6767/7960] Linking CXX shared library lib/libMLIRRegisterAllExtensions.so.22.0git
FAILED: lib/libMLIRRegisterAllExtensions.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRRegisterAllExtensions.so.22.0git -o lib/libMLIRRegisterAllExtensions.so.22.0git tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/hip-third-party-libs-test/build/lib:"  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o: in function `mlir::registerAllExtensions(mlir::DialectRegistry&)':
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x9): undefined reference to `mlir::registerConvertArithToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x11): undefined reference to `mlir::arith::registerConvertArithToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x19): undefined reference to `mlir::registerConvertComplexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x21): undefined reference to `mlir::cf::registerConvertControlFlowToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x39): undefined reference to `mlir::registerConvertFuncToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x41): undefined reference to `mlir::registerConvertFuncToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x49): undefined reference to `mlir::index::registerConvertIndexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x51): undefined reference to `mlir::registerConvertMathToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x59): undefined reference to `mlir::mpi::registerConvertMPIToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x61): undefined reference to `mlir::registerConvertMemRefToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x69): undefined reference to `mlir::registerConvertMemRefToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x71): undefined reference to `mlir::registerConvertNVVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x79): undefined reference to `mlir::registerConvertOpenMPToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x81): undefined reference to `mlir::registerConvertSCFToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x89): undefined reference to `mlir::ub::registerConvertUBToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x91): undefined reference to `mlir::registerConvertAMXToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x99): undefined reference to `mlir::gpu::registerConvertGpuToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa1): undefined reference to `mlir::NVVM::registerConvertGpuToNVVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa9): undefined reference to `mlir::vector::registerConvertVectorToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb1): undefined reference to `mlir::registerConvertXeVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb9): undefined reference to `mlir::affine::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc1): undefined reference to `mlir::bufferization::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc9): undefined reference to `mlir::dlti::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd1): undefined reference to `mlir::func::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd9): undefined reference to `mlir::gpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe1): undefined reference to `mlir::linalg::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe9): undefined reference to `mlir::memref::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf1): undefined reference to `mlir::nvgpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf9): undefined reference to `mlir::scf::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x101): undefined reference to `mlir::sparse_tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x109): undefined reference to `mlir::tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x111): undefined reference to `mlir::transform::registerDebugExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x119): undefined reference to `mlir::transform::registerIRDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x121): undefined reference to `mlir::transform::registerLoopExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x129): undefined reference to `mlir::transform::registerPDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x131): undefined reference to `mlir::transform::registerTuneExtension(mlir::DialectRegistry&)'

@joker-eph

Copy link
Copy Markdown
Contributor

Bot Failures looks legit, I reverted preemptively while you can investigate @Hardcode84 !

@llvm-ci

llvm-ci commented Jul 29, 2025

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder amdgpu-offload-ubuntu-22-cmake-build-only running on rocm-docker-ubu-22 while building clang,flang,mlir at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/203/builds/18249

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[5792/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCUDA.cpp.o
[5793/7960] Building AMDGPUGenAsmWriter.inc...
[5794/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/AnalysisBasedWarnings.cpp.o
[5795/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaNVPTX.cpp.o
[5796/7960] Linking CXX executable bin/lli-child-target
[5797/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaFixItUtils.cpp.o
[5798/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCodeComplete.cpp.o
[5799/7960] Linking CXX shared library lib/libLLVMOrcDebugging.so.22.0git
[5800/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaOpenACC.cpp.o
[5801/7960] Linking CXX shared library lib/libMLIRRegisterAllExtensions.so.22.0git
FAILED: lib/libMLIRRegisterAllExtensions.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRRegisterAllExtensions.so.22.0git -o lib/libMLIRRegisterAllExtensions.so.22.0git tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o: in function `mlir::registerAllExtensions(mlir::DialectRegistry&)':
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x9): undefined reference to `mlir::registerConvertArithToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x11): undefined reference to `mlir::arith::registerConvertArithToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x19): undefined reference to `mlir::registerConvertComplexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x21): undefined reference to `mlir::cf::registerConvertControlFlowToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x39): undefined reference to `mlir::registerConvertFuncToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x41): undefined reference to `mlir::registerConvertFuncToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x49): undefined reference to `mlir::index::registerConvertIndexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x51): undefined reference to `mlir::registerConvertMathToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x59): undefined reference to `mlir::mpi::registerConvertMPIToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x61): undefined reference to `mlir::registerConvertMemRefToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x69): undefined reference to `mlir::registerConvertMemRefToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x71): undefined reference to `mlir::registerConvertNVVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x79): undefined reference to `mlir::registerConvertOpenMPToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x81): undefined reference to `mlir::registerConvertSCFToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x89): undefined reference to `mlir::ub::registerConvertUBToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x91): undefined reference to `mlir::registerConvertAMXToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x99): undefined reference to `mlir::gpu::registerConvertGpuToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa1): undefined reference to `mlir::NVVM::registerConvertGpuToNVVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa9): undefined reference to `mlir::vector::registerConvertVectorToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb1): undefined reference to `mlir::registerConvertXeVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb9): undefined reference to `mlir::affine::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc1): undefined reference to `mlir::bufferization::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc9): undefined reference to `mlir::dlti::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd1): undefined reference to `mlir::func::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd9): undefined reference to `mlir::gpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe1): undefined reference to `mlir::linalg::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe9): undefined reference to `mlir::memref::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf1): undefined reference to `mlir::nvgpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf9): undefined reference to `mlir::scf::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x101): undefined reference to `mlir::sparse_tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x109): undefined reference to `mlir::tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x111): undefined reference to `mlir::transform::registerDebugExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x119): undefined reference to `mlir::transform::registerIRDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x121): undefined reference to `mlir::transform::registerLoopExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x129): undefined reference to `mlir::transform::registerPDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x131): undefined reference to `mlir::transform::registerTuneExtension(mlir::DialectRegistry&)'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[5792/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCUDA.cpp.o
[5793/7960] Building AMDGPUGenAsmWriter.inc...
[5794/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/AnalysisBasedWarnings.cpp.o
[5795/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaNVPTX.cpp.o
[5796/7960] Linking CXX executable bin/lli-child-target
[5797/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaFixItUtils.cpp.o
[5798/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCodeComplete.cpp.o
[5799/7960] Linking CXX shared library lib/libLLVMOrcDebugging.so.22.0git
[5800/7960] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaOpenACC.cpp.o
[5801/7960] Linking CXX shared library lib/libMLIRRegisterAllExtensions.so.22.0git
FAILED: lib/libMLIRRegisterAllExtensions.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRRegisterAllExtensions.so.22.0git -o lib/libMLIRRegisterAllExtensions.so.22.0git tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o: in function `mlir::registerAllExtensions(mlir::DialectRegistry&)':
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x9): undefined reference to `mlir::registerConvertArithToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x11): undefined reference to `mlir::arith::registerConvertArithToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x19): undefined reference to `mlir::registerConvertComplexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x21): undefined reference to `mlir::cf::registerConvertControlFlowToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x39): undefined reference to `mlir::registerConvertFuncToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x41): undefined reference to `mlir::registerConvertFuncToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x49): undefined reference to `mlir::index::registerConvertIndexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x51): undefined reference to `mlir::registerConvertMathToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x59): undefined reference to `mlir::mpi::registerConvertMPIToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x61): undefined reference to `mlir::registerConvertMemRefToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x69): undefined reference to `mlir::registerConvertMemRefToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x71): undefined reference to `mlir::registerConvertNVVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x79): undefined reference to `mlir::registerConvertOpenMPToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x81): undefined reference to `mlir::registerConvertSCFToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x89): undefined reference to `mlir::ub::registerConvertUBToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x91): undefined reference to `mlir::registerConvertAMXToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x99): undefined reference to `mlir::gpu::registerConvertGpuToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa1): undefined reference to `mlir::NVVM::registerConvertGpuToNVVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa9): undefined reference to `mlir::vector::registerConvertVectorToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb1): undefined reference to `mlir::registerConvertXeVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb9): undefined reference to `mlir::affine::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc1): undefined reference to `mlir::bufferization::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc9): undefined reference to `mlir::dlti::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd1): undefined reference to `mlir::func::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd9): undefined reference to `mlir::gpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe1): undefined reference to `mlir::linalg::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe9): undefined reference to `mlir::memref::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf1): undefined reference to `mlir::nvgpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf9): undefined reference to `mlir::scf::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x101): undefined reference to `mlir::sparse_tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x109): undefined reference to `mlir::tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x111): undefined reference to `mlir::transform::registerDebugExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x119): undefined reference to `mlir::transform::registerIRDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x121): undefined reference to `mlir::transform::registerLoopExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x129): undefined reference to `mlir::transform::registerPDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x131): undefined reference to `mlir::transform::registerTuneExtension(mlir::DialectRegistry&)'

@llvm-ci

llvm-ci commented Jul 29, 2025

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-9-cmake-build-only running on rocm-docker-rhel-9 while building clang,flang,mlir at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/17039

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[6043/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/PPC.cpp.o
[6044/7960] Building CXX object tools/clang/lib/Analysis/plugins/SampleAnalyzer/CMakeFiles/SampleAnalyzerPlugin.dir/MainCallChecker.cpp.o
[6045/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/Sparc.cpp.o
[6046/7960] Linking CXX shared library lib/libLLVMSPIRVCodeGen.so.22.0git
[6047/7960] Building CXX object tools/clang/lib/Analysis/plugins/CheckerDependencyHandling/CMakeFiles/CheckerDependencyHandlingAnalyzerPlugin.dir/CheckerDependencyHandling.cpp.o
[6048/7960] Building CXX object tools/clang/lib/Analysis/plugins/CheckerOptionHandling/CMakeFiles/CheckerOptionHandlingAnalyzerPlugin.dir/CheckerOptionHandling.cpp.o
[6049/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/RISCV.cpp.o
[6050/7960] Creating library symlink lib/libLLVMSPIRVCodeGen.so
[6051/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/DriverOptions.cpp.o
[6052/7960] Linking CXX shared library lib/libMLIRRegisterAllExtensions.so.22.0git
FAILED: lib/libMLIRRegisterAllExtensions.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRRegisterAllExtensions.so.22.0git -o lib/libMLIRRegisterAllExtensions.so.22.0git tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:"  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o: in function `mlir::registerAllExtensions(mlir::DialectRegistry&)':
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x5): undefined reference to `mlir::registerConvertArithToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd): undefined reference to `mlir::arith::registerConvertArithToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x15): undefined reference to `mlir::registerConvertComplexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x1d): undefined reference to `mlir::cf::registerConvertControlFlowToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x35): undefined reference to `mlir::registerConvertFuncToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x3d): undefined reference to `mlir::registerConvertFuncToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x45): undefined reference to `mlir::index::registerConvertIndexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x4d): undefined reference to `mlir::registerConvertMathToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x55): undefined reference to `mlir::mpi::registerConvertMPIToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x5d): undefined reference to `mlir::registerConvertMemRefToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x65): undefined reference to `mlir::registerConvertMemRefToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x6d): undefined reference to `mlir::registerConvertNVVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x75): undefined reference to `mlir::registerConvertOpenMPToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x7d): undefined reference to `mlir::registerConvertSCFToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x85): undefined reference to `mlir::ub::registerConvertUBToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x8d): undefined reference to `mlir::registerConvertAMXToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x95): undefined reference to `mlir::gpu::registerConvertGpuToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x9d): undefined reference to `mlir::NVVM::registerConvertGpuToNVVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa5): undefined reference to `mlir::vector::registerConvertVectorToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xad): undefined reference to `mlir::registerConvertXeVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb5): undefined reference to `mlir::affine::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xbd): undefined reference to `mlir::bufferization::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc5): undefined reference to `mlir::dlti::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xcd): undefined reference to `mlir::func::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd5): undefined reference to `mlir::gpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xdd): undefined reference to `mlir::linalg::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe5): undefined reference to `mlir::memref::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xed): undefined reference to `mlir::nvgpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf5): undefined reference to `mlir::scf::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xfd): undefined reference to `mlir::sparse_tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x105): undefined reference to `mlir::tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x10d): undefined reference to `mlir::transform::registerDebugExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x115): undefined reference to `mlir::transform::registerIRDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x11d): undefined reference to `mlir::transform::registerLoopExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x125): undefined reference to `mlir::transform::registerPDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x12d): undefined reference to `mlir::transform::registerTuneExtension(mlir::DialectRegistry&)'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[6043/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/PPC.cpp.o
[6044/7960] Building CXX object tools/clang/lib/Analysis/plugins/SampleAnalyzer/CMakeFiles/SampleAnalyzerPlugin.dir/MainCallChecker.cpp.o
[6045/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/Sparc.cpp.o
[6046/7960] Linking CXX shared library lib/libLLVMSPIRVCodeGen.so.22.0git
[6047/7960] Building CXX object tools/clang/lib/Analysis/plugins/CheckerDependencyHandling/CMakeFiles/CheckerDependencyHandlingAnalyzerPlugin.dir/CheckerDependencyHandling.cpp.o
[6048/7960] Building CXX object tools/clang/lib/Analysis/plugins/CheckerOptionHandling/CMakeFiles/CheckerOptionHandlingAnalyzerPlugin.dir/CheckerOptionHandling.cpp.o
[6049/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/Arch/RISCV.cpp.o
[6050/7960] Creating library symlink lib/libLLVMSPIRVCodeGen.so
[6051/7960] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/DriverOptions.cpp.o
[6052/7960] Linking CXX shared library lib/libMLIRRegisterAllExtensions.so.22.0git
FAILED: lib/libMLIRRegisterAllExtensions.so.22.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRRegisterAllExtensions.so.22.0git -o lib/libMLIRRegisterAllExtensions.so.22.0git tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:"  lib/libMLIRFuncAllExtensions.so.22.0git  lib/libMLIRTensorAllExtensions.so.22.0git  lib/libMLIRFuncInlinerExtension.so.22.0git  lib/libMLIRControlFlowDialect.so.22.0git  lib/libMLIRFuncShardingExtensions.so.22.0git  lib/libMLIRFuncDialect.so.22.0git  lib/libMLIRTensorShardingExtensions.so.22.0git  lib/libMLIRShardingInterface.so.22.0git  lib/libMLIRShardDialect.so.22.0git  lib/libMLIRTensorDialect.so.22.0git  lib/libMLIRAffineDialect.so.22.0git  lib/libMLIRMemRefDialect.so.22.0git  lib/libMLIRMemorySlotInterfaces.so.22.0git  lib/libMLIRArithUtils.so.22.0git  lib/libMLIRDialectUtils.so.22.0git  lib/libMLIRComplexDialect.so.22.0git  lib/libMLIRArithDialect.so.22.0git  lib/libMLIRCastInterfaces.so.22.0git  lib/libMLIRUBDialect.so.22.0git  lib/libMLIRDialect.so.22.0git  lib/libMLIRInferIntRangeCommon.so.22.0git  lib/libMLIRParallelCombiningOpInterface.so.22.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git  lib/libMLIRShapedOpInterfaces.so.22.0git  lib/libMLIRValueBoundsOpInterface.so.22.0git  lib/libMLIRDestinationStyleOpInterface.so.22.0git  lib/libMLIRAnalysis.so.22.0git  lib/libMLIRInferTypeOpInterface.so.22.0git  lib/libMLIRControlFlowInterfaces.so.22.0git  lib/libMLIRSideEffectInterfaces.so.22.0git  lib/libMLIRInferIntRangeInterface.so.22.0git  lib/libMLIRLoopLikeInterface.so.22.0git  lib/libMLIRFunctionInterfaces.so.22.0git  lib/libMLIRCallInterfaces.so.22.0git  lib/libMLIRDataLayoutInterfaces.so.22.0git  lib/libMLIRPresburger.so.22.0git  lib/libMLIRViewLikeInterface.so.22.0git  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllExtensions.dir/RegisterAllExtensions.cpp.o: in function `mlir::registerAllExtensions(mlir::DialectRegistry&)':
RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x5): undefined reference to `mlir::registerConvertArithToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd): undefined reference to `mlir::arith::registerConvertArithToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x15): undefined reference to `mlir::registerConvertComplexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x1d): undefined reference to `mlir::cf::registerConvertControlFlowToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x35): undefined reference to `mlir::registerConvertFuncToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x3d): undefined reference to `mlir::registerConvertFuncToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x45): undefined reference to `mlir::index::registerConvertIndexToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x4d): undefined reference to `mlir::registerConvertMathToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x55): undefined reference to `mlir::mpi::registerConvertMPIToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x5d): undefined reference to `mlir::registerConvertMemRefToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x65): undefined reference to `mlir::registerConvertMemRefToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x6d): undefined reference to `mlir::registerConvertNVVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x75): undefined reference to `mlir::registerConvertOpenMPToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x7d): undefined reference to `mlir::registerConvertSCFToEmitCInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x85): undefined reference to `mlir::ub::registerConvertUBToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x8d): undefined reference to `mlir::registerConvertAMXToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x95): undefined reference to `mlir::gpu::registerConvertGpuToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x9d): undefined reference to `mlir::NVVM::registerConvertGpuToNVVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xa5): undefined reference to `mlir::vector::registerConvertVectorToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xad): undefined reference to `mlir::registerConvertXeVMToLLVMInterface(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xb5): undefined reference to `mlir::affine::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xbd): undefined reference to `mlir::bufferization::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xc5): undefined reference to `mlir::dlti::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xcd): undefined reference to `mlir::func::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xd5): undefined reference to `mlir::gpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xdd): undefined reference to `mlir::linalg::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xe5): undefined reference to `mlir::memref::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xed): undefined reference to `mlir::nvgpu::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xf5): undefined reference to `mlir::scf::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0xfd): undefined reference to `mlir::sparse_tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x105): undefined reference to `mlir::tensor::registerTransformDialectExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x10d): undefined reference to `mlir::transform::registerDebugExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x115): undefined reference to `mlir::transform::registerIRDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x11d): undefined reference to `mlir::transform::registerLoopExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x125): undefined reference to `mlir::transform::registerPDLExtension(mlir::DialectRegistry&)'
/usr/bin/ld: RegisterAllExtensions.cpp:(.text._ZN4mlir21registerAllExtensionsERNS_15DialectRegistryE+0x12d): undefined reference to `mlir::transform::registerTuneExtension(mlir::DialectRegistry&)'

llvm-sync Bot pushed a commit to arm/arm-toolchain that referenced this pull request Jul 29, 2025
Hardcode84 added a commit that referenced this pull request Jul 29, 2025
…151150)

Reland #150805

Shared libs build was broken.

Add `${dialect_libs}` and `${conversion_libs}` to
`MLIRRegisterAllExtensions` because it depends on
`registerConvert***ToLLVMInterface` functions.
llvm-sync Bot pushed a commit to arm/arm-toolchain that referenced this pull request Jul 29, 2025
…library` (#151150)

Reland llvm/llvm-project#150805

Shared libs build was broken.

Add `${dialect_libs}` and `${conversion_libs}` to
`MLIRRegisterAllExtensions` because it depends on
`registerConvert***ToLLVMInterface` functions.
makslevental added a commit to makslevental/mmlir that referenced this pull request Aug 2, 2025
makslevental added a commit to makslevental/mmlir that referenced this pull request Aug 2, 2025
makslevental pushed a commit to makslevental/python_bindings_fork that referenced this pull request Aug 14, 2025
makslevental pushed a commit to makslevental/python_bindings_fork that referenced this pull request Aug 14, 2025
…151150)

Reland llvm/llvm-project#150805

Shared libs build was broken.

Add `${dialect_libs}` and `${conversion_libs}` to
`MLIRRegisterAllExtensions` because it depends on
`registerConvert***ToLLVMInterface` functions.
makslevental pushed a commit to makslevental/python_bindings_fork that referenced this pull request Aug 14, 2025
makslevental pushed a commit to makslevental/python_bindings_fork that referenced this pull request Aug 14, 2025
…151150)

Reland llvm/llvm-project#150805

Shared libs build was broken.

Add `${dialect_libs}` and `${conversion_libs}` to
`MLIRRegisterAllExtensions` because it depends on
`registerConvert***ToLLVMInterface` functions.
makslevental pushed a commit to makslevental/python_bindings_fork that referenced this pull request Aug 14, 2025
makslevental pushed a commit to makslevental/python_bindings_fork that referenced this pull request Aug 14, 2025
…151150)

Reland llvm/llvm-project#150805

Shared libs build was broken.

Add `${dialect_libs}` and `${conversion_libs}` to
`MLIRRegisterAllExtensions` because it depends on
`registerConvert***ToLLVMInterface` functions.
bump-llvm Bot pushed a commit to makslevental/python_bindings_fork that referenced this pull request Aug 14, 2025
bump-llvm Bot pushed a commit to makslevental/python_bindings_fork that referenced this pull request Aug 14, 2025
…151150)

Reland llvm/llvm-project#150805

Shared libs build was broken.

Add `${dialect_libs}` and `${conversion_libs}` to
`MLIRRegisterAllExtensions` because it depends on
`registerConvert***ToLLVMInterface` functions.
jumerckx added a commit to jumerckx/Tamagoyaki that referenced this pull request Dec 20, 2025
firstcommit (#1)

Update test.yml (#2)

Update README.md (#3)

* Update README.md

* Update README.md

add minimal type binding (#4)

add minimal type binding (#5)

move Python (#6)

Update test.yml (#8)

fix macos (#11)

Update README.md (#12)

use arm runner (#15)

Update README.md (#16)

fix arm (#17)

fix copy tds (#18)

fix asm parser (#19)

Update test.yml (#20)

integrate llvm/llvm-project#150805 (#21)

bump to py3.14 (#22)

fix setup-python (#23)
jumerckx added a commit to jumerckx/Tamagoyaki that referenced this pull request Dec 20, 2025
firstcommit (#1)

Update test.yml (#2)

Update README.md (#3)

* Update README.md

* Update README.md

add minimal type binding (#4)

add minimal type binding (#5)

move Python (#6)

Update test.yml (#8)

fix macos (#11)

Update README.md (#12)

use arm runner (#15)

Update README.md (#16)

fix arm (#17)

fix copy tds (#18)

fix asm parser (#19)

Update test.yml (#20)

integrate llvm/llvm-project#150805 (#21)

bump to py3.14 (#22)

fix setup-python (#23)
trdthg added a commit to buddy-compiler/buddy-mlir that referenced this pull request May 29, 2026
## Version and Build Flow

- fetch branch / apply local patch -> fetch exact submodule commit with
  `git fetch origin "${LLVM_COMMIT}"`
- `LLVM_COMMIT + riscv-jitlink.patch hash` -> `LLVM_COMMIT` cache key
- apply `riscv-jitlink.patch` -> no patch; current LLVM already has the fix
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97: `nanobind` /
  `nanobind==2.4.*` -> `nanobind>=2.9,<3.0` / `nanobind==2.9.*`

## Python Bindings

- [#172581](llvm/llvm-project#172581) / 3d7018c70b97:
  `PybindAdaptors.h` -> `NanobindAdaptors.h`
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97:
  `PYBIND11_MODULE` -> `NB_MODULE`
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97: manual
  pybind/nanobind CMake setup -> `mlir_configure_python_dev_packages()`

## MLIR API

- [#162167](llvm/llvm-project#162167) / ea291d0e8c93:
  `vector::SplatOp` -> `vector::BroadcastOp`
- [#149603](llvm/llvm-project#149603) / 33465bb2bb75:
  `vector::InsertElementOp` -> `vector::InsertOp`
- [#149603](llvm/llvm-project#149603) / 33465bb2bb75:
  `vector::ExtractElementOp` -> `vector::ExtractOp`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c:
  `ValueRange{std::nullopt}` -> `ValueRange{}`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c:
  `TypeRange(std::nullopt)` -> `TypeRange{}`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c: empty
  `scf.yield` with null operands -> empty `scf.yield`
- [#196082](llvm/llvm-project#196082) / dd57b0c9728a:
  `computeConstantBound(..., /*closedUB=*/true)` ->
  `computeConstantBound(..., ValueBoundsOptions{/*closedUB=*/true})`
- [#182715](llvm/llvm-project#182715) / 72f5050ae765:
  `applyPatternsAndFoldGreedily(...)` -> `applyPatternsGreedily(...)`

## GPU and AMX

- [#188905](llvm/llvm-project#188905) / c1cff89bdcea:
  `launchOp.getWorkgroupAttributions()` ->
  `launchOp.getWorkgroupAttributionBBArgs()`
- [#188905](llvm/llvm-project#188905) / c1cff89bdcea: manual
  `gpu.kernel` attr -> `outlinedFunc.setKernel(true)`
- [#188905](llvm/llvm-project#188905) / c1cff89bdcea:
  `setAttr(getKnown*AttrName(), ...)` ->
  `setKnownBlockSizeAttr(...)` / `setKnownGridSizeAttr(...)`
- [#111197](llvm/llvm-project#111197) / 2f743ac52e94:
  `mlir/Dialect/AMX/AMXDialect.h` -> `mlir/Dialect/X86/X86Dialect.h`
- [#111197](llvm/llvm-project#111197) / 2f743ac52e94:
  `mlir::amx::AMXDialect` -> `mlir::x86::X86Dialect`

## LLVM Source Lists

- [#167271](llvm/llvm-project#167271) / 2345b7d98f75:
  `InlineSizeEstimatorAnalysis.cpp` -> removed upstream; no Buddy source-list
  entry needed
- [#172680](llvm/llvm-project#172680) / 71760f324ff9:
  `ExpandLargeDivRem.cpp` -> merged into `ExpandFp.cpp`
- [#172681](llvm/llvm-project#172681) / 5c05824d2bd3:
  `ExpandFp.cpp` / merged `ExpandLargeDivRem.cpp` -> `ExpandIRInsts.cpp`
- [#77370](llvm/llvm-project#77370) / 5e0a06b34d09:
  `ExpandMemCmp.cpp` in CodeGen -> moved to `Transforms/Scalar`
- [#181547](llvm/llvm-project#181547) / 9a0d65cdfd0d:
  `CallBrPrepare.cpp` -> `InlineAsmPrepare.cpp`
- [#160454](llvm/llvm-project#160454) / aa6a33ae6556:
  `EVLIndVarSimplify.cpp` -> removed upstream; no Buddy source-list entry needed
- [#192635](llvm/llvm-project#192635) / 680a9908194e:
  `VPlanSLP.cpp` -> removed upstream; no Buddy source-list entry needed

## RISC-V Backend

- local Buddy `M0`-`M7` definitions -> upstream RISC-V `M0`-`M7` definitions
- Buddy `MatrixReg` using local mask regs -> `MatrixReg` using upstream mask regs
- IME `*N` instructions in disassembler tables -> mark affected instructions
  `isCodeGenOnly = 1`

## Tool API and Link Libraries

- [#156715](llvm/llvm-project#156715) / dfbd76bda01e:
  `Expected<std::unique_ptr<ToolOutputFile>>` from
  `setupLLVMOptimizationRemarks` -> `Expected<LLVMRemarkFileHandle>`
- [#186998](llvm/llvm-project#186998) / 69cd746bd2f1:
  `codegen::setFunctionAttributes(CPUStr, FeaturesStr, F)` ->
  `codegen::setFunctionAttributes(F, CPUStr, FeaturesStr[, TuneCPUStr])`
- [#186998](llvm/llvm-project#186998) / 69cd746bd2f1:
  `codegen::setFunctionAttributes(CPUStr, FeaturesStr, *M)` ->
  `codegen::setFunctionAttributes(*M, CPUStr, FeaturesStr[, TuneCPUStr])`
- [#87226](llvm/llvm-project#87226) / d0e72ccc54df:
  `TargetMachine::buildCodeGenPipeline(MPM, OS, DwoOut, FileType, Opt, PIC)` ->
  pass `MAM` and `MMI.getContext()`
- [#170846](llvm/llvm-project#170846) / cd806d7e7689: `buddy-llc`
  without `Plugins` -> link LLVM `Plugins`
- [#150805](llvm/llvm-project#150805) / ace42cf063a5,
  [#151150](llvm/llvm-project#151150) / e68a20e0b762: implicit MLIR
  register-all symbols -> link `MLIRRegisterAllDialects`,
  `MLIRRegisterAllExtensions`, `MLIRRegisterAllPasses`
trdthg added a commit to buddy-compiler/buddy-mlir that referenced this pull request May 29, 2026
- fetch branch / apply local patch -> fetch exact submodule commit with
  `git fetch origin "${LLVM_COMMIT}"`
- `LLVM_COMMIT + riscv-jitlink.patch hash` -> `LLVM_COMMIT` cache key
- apply `riscv-jitlink.patch` -> no patch; current LLVM already has the fix
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97: `nanobind` /
  `nanobind==2.4.*` -> `nanobind>=2.9,<3.0` / `nanobind==2.9.*`

- [#172581](llvm/llvm-project#172581) / 3d7018c70b97:
  `PybindAdaptors.h` -> `NanobindAdaptors.h`
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97:
  `PYBIND11_MODULE` -> `NB_MODULE`
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97: manual
  pybind/nanobind CMake setup -> `mlir_configure_python_dev_packages()`

- [#162167](llvm/llvm-project#162167) / ea291d0e8c93:
  `vector::SplatOp` -> `vector::BroadcastOp`
- [#149603](llvm/llvm-project#149603) / 33465bb2bb75:
  `vector::InsertElementOp` -> `vector::InsertOp`
- [#149603](llvm/llvm-project#149603) / 33465bb2bb75:
  `vector::ExtractElementOp` -> `vector::ExtractOp`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c:
  `ValueRange{std::nullopt}` -> `ValueRange{}`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c:
  `TypeRange(std::nullopt)` -> `TypeRange{}`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c: empty
  `scf.yield` with null operands -> empty `scf.yield`
- [#196082](llvm/llvm-project#196082) / dd57b0c9728a:
  `computeConstantBound(..., /*closedUB=*/true)` ->
  `computeConstantBound(..., ValueBoundsOptions{/*closedUB=*/true})`
- [#182715](llvm/llvm-project#182715) / 72f5050ae765:
  `applyPatternsAndFoldGreedily(...)` -> `applyPatternsGreedily(...)`

- [#188905](llvm/llvm-project#188905) / c1cff89bdcea:
  `launchOp.getWorkgroupAttributions()` ->
  `launchOp.getWorkgroupAttributionBBArgs()`
- [#188905](llvm/llvm-project#188905) / c1cff89bdcea: manual
  `gpu.kernel` attr -> `outlinedFunc.setKernel(true)`
- [#188905](llvm/llvm-project#188905) / c1cff89bdcea:
  `setAttr(getKnown*AttrName(), ...)` ->
  `setKnownBlockSizeAttr(...)` / `setKnownGridSizeAttr(...)`
- [#111197](llvm/llvm-project#111197) / 2f743ac52e94:
  `mlir/Dialect/AMX/AMXDialect.h` -> `mlir/Dialect/X86/X86Dialect.h`
- [#111197](llvm/llvm-project#111197) / 2f743ac52e94:
  `mlir::amx::AMXDialect` -> `mlir::x86::X86Dialect`

- [#167271](llvm/llvm-project#167271) / 2345b7d98f75:
  `InlineSizeEstimatorAnalysis.cpp` -> removed upstream; no Buddy source-list
  entry needed
- [#172680](llvm/llvm-project#172680) / 71760f324ff9:
  `ExpandLargeDivRem.cpp` -> merged into `ExpandFp.cpp`
- [#172681](llvm/llvm-project#172681) / 5c05824d2bd3:
  `ExpandFp.cpp` / merged `ExpandLargeDivRem.cpp` -> `ExpandIRInsts.cpp`
- [#77370](llvm/llvm-project#77370) / 5e0a06b34d09:
  `ExpandMemCmp.cpp` in CodeGen -> moved to `Transforms/Scalar`
- [#181547](llvm/llvm-project#181547) / 9a0d65cdfd0d:
  `CallBrPrepare.cpp` -> `InlineAsmPrepare.cpp`
- [#160454](llvm/llvm-project#160454) / aa6a33ae6556:
  `EVLIndVarSimplify.cpp` -> removed upstream; no Buddy source-list entry needed
- [#192635](llvm/llvm-project#192635) / 680a9908194e:
  `VPlanSLP.cpp` -> removed upstream; no Buddy source-list entry needed

- local Buddy `M0`-`M7` definitions -> upstream RISC-V `M0`-`M7` definitions
- Buddy `MatrixReg` using local mask regs -> `MatrixReg` using upstream mask regs
- IME `*N` instructions in disassembler tables -> mark affected instructions
  `isCodeGenOnly = 1`

- [#156715](llvm/llvm-project#156715) / dfbd76bda01e:
  `Expected<std::unique_ptr<ToolOutputFile>>` from
  `setupLLVMOptimizationRemarks` -> `Expected<LLVMRemarkFileHandle>`
- [#186998](llvm/llvm-project#186998) / 69cd746bd2f1:
  `codegen::setFunctionAttributes(CPUStr, FeaturesStr, F)` ->
  `codegen::setFunctionAttributes(F, CPUStr, FeaturesStr[, TuneCPUStr])`
- [#186998](llvm/llvm-project#186998) / 69cd746bd2f1:
  `codegen::setFunctionAttributes(CPUStr, FeaturesStr, *M)` ->
  `codegen::setFunctionAttributes(*M, CPUStr, FeaturesStr[, TuneCPUStr])`
- [#87226](llvm/llvm-project#87226) / d0e72ccc54df:
  `TargetMachine::buildCodeGenPipeline(MPM, OS, DwoOut, FileType, Opt, PIC)` ->
  pass `MAM` and `MMI.getContext()`
- [#170846](llvm/llvm-project#170846) / cd806d7e7689: `buddy-llc`
  without `Plugins` -> link LLVM `Plugins`
- [#150805](llvm/llvm-project#150805) / ace42cf063a5,
  [#151150](llvm/llvm-project#151150) / e68a20e0b762: implicit MLIR
  register-all symbols -> link `MLIRRegisterAllDialects`,
  `MLIRRegisterAllExtensions`, `MLIRRegisterAllPasses`
trdthg added a commit to buddy-compiler/buddy-mlir that referenced this pull request May 29, 2026
- fetch branch / apply local patch -> fetch exact submodule commit with
  `git fetch origin "${LLVM_COMMIT}"`
- `LLVM_COMMIT + riscv-jitlink.patch hash` -> `LLVM_COMMIT` cache key
- apply `riscv-jitlink.patch` -> no patch; current LLVM already has the fix
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97: `nanobind` /
  `nanobind==2.4.*` -> `nanobind>=2.9,<3.0` / `nanobind==2.9.*`

- [#172581](llvm/llvm-project#172581) / 3d7018c70b97:
  `PybindAdaptors.h` -> `NanobindAdaptors.h`
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97:
  `PYBIND11_MODULE` -> `NB_MODULE`
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97: manual
  pybind/nanobind CMake setup -> `mlir_configure_python_dev_packages()`

- [#162167](llvm/llvm-project#162167) / ea291d0e8c93:
  `vector::SplatOp` -> `vector::BroadcastOp`
- [#149603](llvm/llvm-project#149603) / 33465bb2bb75:
  `vector::InsertElementOp` -> `vector::InsertOp`
- [#149603](llvm/llvm-project#149603) / 33465bb2bb75:
  `vector::ExtractElementOp` -> `vector::ExtractOp`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c:
  `ValueRange{std::nullopt}` -> `ValueRange{}`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c:
  `TypeRange(std::nullopt)` -> `TypeRange{}`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c: empty
  `scf.yield` with null operands -> empty `scf.yield`
- [#196082](llvm/llvm-project#196082) / dd57b0c9728a:
  `computeConstantBound(..., /*closedUB=*/true)` ->
  `computeConstantBound(..., ValueBoundsOptions{/*closedUB=*/true})`
- [#182715](llvm/llvm-project#182715) / 72f5050ae765:
  `applyPatternsAndFoldGreedily(...)` -> `applyPatternsGreedily(...)`

- [#188905](llvm/llvm-project#188905) / c1cff89bdcea:
  `launchOp.getWorkgroupAttributions()` ->
  `launchOp.getWorkgroupAttributionBBArgs()`
- [#188905](llvm/llvm-project#188905) / c1cff89bdcea: manual
  `gpu.kernel` attr -> `outlinedFunc.setKernel(true)`
- [#188905](llvm/llvm-project#188905) / c1cff89bdcea:
  `setAttr(getKnown*AttrName(), ...)` ->
  `setKnownBlockSizeAttr(...)` / `setKnownGridSizeAttr(...)`
- [#111197](llvm/llvm-project#111197) / 2f743ac52e94:
  `mlir/Dialect/AMX/AMXDialect.h` -> `mlir/Dialect/X86/X86Dialect.h`
- [#111197](llvm/llvm-project#111197) / 2f743ac52e94:
  `mlir::amx::AMXDialect` -> `mlir::x86::X86Dialect`

- [#167271](llvm/llvm-project#167271) / 2345b7d98f75:
  `InlineSizeEstimatorAnalysis.cpp` -> removed upstream; no Buddy source-list
  entry needed
- [#172680](llvm/llvm-project#172680) / 71760f324ff9:
  `ExpandLargeDivRem.cpp` -> merged into `ExpandFp.cpp`
- [#172681](llvm/llvm-project#172681) / 5c05824d2bd3:
  `ExpandFp.cpp` / merged `ExpandLargeDivRem.cpp` -> `ExpandIRInsts.cpp`
- [#77370](llvm/llvm-project#77370) / 5e0a06b34d09:
  `ExpandMemCmp.cpp` in CodeGen -> moved to `Transforms/Scalar`
- [#181547](llvm/llvm-project#181547) / 9a0d65cdfd0d:
  `CallBrPrepare.cpp` -> `InlineAsmPrepare.cpp`
- [#160454](llvm/llvm-project#160454) / aa6a33ae6556:
  `EVLIndVarSimplify.cpp` -> removed upstream; no Buddy source-list entry needed
- [#192635](llvm/llvm-project#192635) / 680a9908194e:
  `VPlanSLP.cpp` -> removed upstream; no Buddy source-list entry needed

- local Buddy `M0`-`M7` definitions -> upstream RISC-V `M0`-`M7` definitions
- Buddy `MatrixReg` using local mask regs -> `MatrixReg` using upstream mask regs
- IME `*N` instructions in disassembler tables -> mark affected instructions
  `isCodeGenOnly = 1`

- [#156715](llvm/llvm-project#156715) / dfbd76bda01e:
  `Expected<std::unique_ptr<ToolOutputFile>>` from
  `setupLLVMOptimizationRemarks` -> `Expected<LLVMRemarkFileHandle>`
- [#186998](llvm/llvm-project#186998) / 69cd746bd2f1:
  `codegen::setFunctionAttributes(CPUStr, FeaturesStr, F)` ->
  `codegen::setFunctionAttributes(F, CPUStr, FeaturesStr[, TuneCPUStr])`
- [#186998](llvm/llvm-project#186998) / 69cd746bd2f1:
  `codegen::setFunctionAttributes(CPUStr, FeaturesStr, *M)` ->
  `codegen::setFunctionAttributes(*M, CPUStr, FeaturesStr[, TuneCPUStr])`
- [#87226](llvm/llvm-project#87226) / d0e72ccc54df:
  `TargetMachine::buildCodeGenPipeline(MPM, OS, DwoOut, FileType, Opt, PIC)` ->
  pass `MAM` and `MMI.getContext()`
- [#170846](llvm/llvm-project#170846) / cd806d7e7689: `buddy-llc`
  without `Plugins` -> link LLVM `Plugins`
- [#150805](llvm/llvm-project#150805) / ace42cf063a5,
  [#151150](llvm/llvm-project#151150) / e68a20e0b762: implicit MLIR
  register-all symbols -> link `MLIRRegisterAllDialects`,
  `MLIRRegisterAllExtensions`, `MLIRRegisterAllPasses`
trdthg added a commit to buddy-compiler/buddy-mlir that referenced this pull request Jun 1, 2026
- fetch branch / apply local patch -> fetch exact submodule commit with
  `git fetch origin "${LLVM_COMMIT}"`
- `LLVM_COMMIT + riscv-jitlink.patch hash` -> `LLVM_COMMIT` cache key
- apply `riscv-jitlink.patch` -> no patch; current LLVM already has the fix
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97: `nanobind` /
  `nanobind==2.4.*` -> `nanobind>=2.9,<3.0` / `nanobind==2.9.*`

- [#172581](llvm/llvm-project#172581) / 3d7018c70b97:
  `PybindAdaptors.h` -> `NanobindAdaptors.h`
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97:
  `PYBIND11_MODULE` -> `NB_MODULE`
- [#172581](llvm/llvm-project#172581) / 3d7018c70b97: manual
  pybind/nanobind CMake setup -> `mlir_configure_python_dev_packages()`

- [#162167](llvm/llvm-project#162167) / ea291d0e8c93:
  `vector::SplatOp` -> `vector::BroadcastOp`
- [#149603](llvm/llvm-project#149603) / 33465bb2bb75:
  `vector::InsertElementOp` -> `vector::InsertOp`
- [#149603](llvm/llvm-project#149603) / 33465bb2bb75:
  `vector::ExtractElementOp` -> `vector::ExtractOp`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c:
  `ValueRange{std::nullopt}` -> `ValueRange{}`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c:
  `TypeRange(std::nullopt)` -> `TypeRange{}`
- [#145445](llvm/llvm-project#145445) / 63f30d7d820c: empty
  `scf.yield` with null operands -> empty `scf.yield`
- [#196082](llvm/llvm-project#196082) / dd57b0c9728a:
  `computeConstantBound(..., /*closedUB=*/true)` ->
  `computeConstantBound(..., ValueBoundsOptions{/*closedUB=*/true})`
- [#182715](llvm/llvm-project#182715) / 72f5050ae765:
  `applyPatternsAndFoldGreedily(...)` -> `applyPatternsGreedily(...)`

- [#188905](llvm/llvm-project#188905) / c1cff89bdcea:
  `launchOp.getWorkgroupAttributions()` ->
  `launchOp.getWorkgroupAttributionBBArgs()`
- [#188905](llvm/llvm-project#188905) / c1cff89bdcea: manual
  `gpu.kernel` attr -> `outlinedFunc.setKernel(true)`
- [#188905](llvm/llvm-project#188905) / c1cff89bdcea:
  `setAttr(getKnown*AttrName(), ...)` ->
  `setKnownBlockSizeAttr(...)` / `setKnownGridSizeAttr(...)`
- [#111197](llvm/llvm-project#111197) / 2f743ac52e94:
  `mlir/Dialect/AMX/AMXDialect.h` -> `mlir/Dialect/X86/X86Dialect.h`
- [#111197](llvm/llvm-project#111197) / 2f743ac52e94:
  `mlir::amx::AMXDialect` -> `mlir::x86::X86Dialect`

- [#167271](llvm/llvm-project#167271) / 2345b7d98f75:
  `InlineSizeEstimatorAnalysis.cpp` -> removed upstream; no Buddy source-list
  entry needed
- [#172680](llvm/llvm-project#172680) / 71760f324ff9:
  `ExpandLargeDivRem.cpp` -> merged into `ExpandFp.cpp`
- [#172681](llvm/llvm-project#172681) / 5c05824d2bd3:
  `ExpandFp.cpp` / merged `ExpandLargeDivRem.cpp` -> `ExpandIRInsts.cpp`
- [#77370](llvm/llvm-project#77370) / 5e0a06b34d09:
  `ExpandMemCmp.cpp` in CodeGen -> moved to `Transforms/Scalar`
- [#181547](llvm/llvm-project#181547) / 9a0d65cdfd0d:
  `CallBrPrepare.cpp` -> `InlineAsmPrepare.cpp`
- [#160454](llvm/llvm-project#160454) / aa6a33ae6556:
  `EVLIndVarSimplify.cpp` -> removed upstream; no Buddy source-list entry needed
- [#192635](llvm/llvm-project#192635) / 680a9908194e:
  `VPlanSLP.cpp` -> removed upstream; no Buddy source-list entry needed

- local Buddy `M0`-`M7` definitions -> upstream RISC-V `M0`-`M7` definitions
- Buddy `MatrixReg` using local mask regs -> `MatrixReg` using upstream mask regs
- IME `*N` instructions in disassembler tables -> mark affected instructions
  `isCodeGenOnly = 1`

- [#156715](llvm/llvm-project#156715) / dfbd76bda01e:
  `Expected<std::unique_ptr<ToolOutputFile>>` from
  `setupLLVMOptimizationRemarks` -> `Expected<LLVMRemarkFileHandle>`
- [#186998](llvm/llvm-project#186998) / 69cd746bd2f1:
  `codegen::setFunctionAttributes(CPUStr, FeaturesStr, F)` ->
  `codegen::setFunctionAttributes(F, CPUStr, FeaturesStr[, TuneCPUStr])`
- [#186998](llvm/llvm-project#186998) / 69cd746bd2f1:
  `codegen::setFunctionAttributes(CPUStr, FeaturesStr, *M)` ->
  `codegen::setFunctionAttributes(*M, CPUStr, FeaturesStr[, TuneCPUStr])`
- [#87226](llvm/llvm-project#87226) / d0e72ccc54df:
  `TargetMachine::buildCodeGenPipeline(MPM, OS, DwoOut, FileType, Opt, PIC)` ->
  pass `MAM` and `MMI.getContext()`
- [#170846](llvm/llvm-project#170846) / cd806d7e7689: `buddy-llc`
  without `Plugins` -> link LLVM `Plugins`
- [#150805](llvm/llvm-project#150805) / ace42cf063a5,
  [#151150](llvm/llvm-project#151150) / e68a20e0b762: implicit MLIR
  register-all symbols -> link `MLIRRegisterAllDialects`,
  `MLIRRegisterAllExtensions`, `MLIRRegisterAllPasses`
markrvmurray pushed a commit to markrvmurray/llvm-mc6809 that referenced this pull request Jun 14, 2026
markrvmurray pushed a commit to markrvmurray/llvm-mc6809 that referenced this pull request Jun 14, 2026
…151150)

Reland llvm/llvm-project#150805

Shared libs build was broken.

Add `${dialect_libs}` and `${conversion_libs}` to
`MLIRRegisterAllExtensions` because it depends on
`registerConvert***ToLLVMInterface` functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category ClangIR Anything related to the ClangIR project flang:fir-hlfir flang Flang issues not falling into any other category mlir:core MLIR Core Infrastructure mlir:execution-engine mlir:llvm mlir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants