Integrate LLVM to llvm/llvm-project@f1ee8b38f40f (#25147)

CMakeFiles had to be adjusted due to library split introduced by:
 - https://github.com/llvm/llvm-project/pull/236459

Sadly, upstream LLVM's bazel build hasn't been updated accordingly.
Since IREE insists on generating all CMakeFiles from Bazel, I had to add
some `iree_cmake_extra_content()`. This is expected to be temporary -
only needed until upstream Bazel build matches CMake again.

Assisted-by: Codex

Signed-off-by: Maksymilian B. Knust <knust@roofline.ai>
diff --git a/compiler/src/iree/compiler/Codegen/Common/BUILD.bazel b/compiler/src/iree/compiler/Codegen/Common/BUILD.bazel
index c07b5f8..7191e49 100644
--- a/compiler/src/iree/compiler/Codegen/Common/BUILD.bazel
+++ b/compiler/src/iree/compiler/Codegen/Common/BUILD.bazel
@@ -6,6 +6,7 @@
 
 load(
     "//build_tools/bazel:build_defs.oss.bzl",
+    "iree_cmake_extra_content",
     "iree_compiler_cc_library",
     "iree_gentbl_cc_library",
     "iree_tablegen_doc",
@@ -393,6 +394,20 @@
     ],
 )
 
+# FIXME: LLVM split these libraries in the CMake build, but not yet in bazel
+iree_cmake_extra_content(
+    content = """
+target_link_libraries(iree_compiler_Codegen_Common_TransformDialectInterpreterPass PUBLIC
+    MLIRArithBufferizableOpInterfaceImpl
+    MLIRBufferizationBufferizableOpInterfaceImpl
+    MLIRSCFBufferizableOpInterfaceImpl
+    MLIRTensorBufferizableOpInterfaceImpl
+    MLIRVectorBufferizableOpInterfaceImpl
+)
+""",
+    inline = True,
+)
+
 iree_tablegen_doc(
     name = "CodegenCommonPassesDocGen",
     category = "Passes",
diff --git a/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt
index 694401a..22e8aed 100644
--- a/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Common/CMakeLists.txt
@@ -351,6 +351,14 @@
   PUBLIC
 )
 
+target_link_libraries(iree_compiler_Codegen_Common_TransformDialectInterpreterPass PUBLIC
+    MLIRArithBufferizableOpInterfaceImpl
+    MLIRBufferizationBufferizableOpInterfaceImpl
+    MLIRSCFBufferizableOpInterfaceImpl
+    MLIRTensorBufferizableOpInterfaceImpl
+    MLIRVectorBufferizableOpInterfaceImpl
+)
+
 iree_tablegen_doc(
   NAME
     CodegenCommonPassesDocGen
diff --git a/compiler/src/iree/compiler/Codegen/Interfaces/BUILD.bazel b/compiler/src/iree/compiler/Codegen/Interfaces/BUILD.bazel
index 7ff9311..1a24de7 100644
--- a/compiler/src/iree/compiler/Codegen/Interfaces/BUILD.bazel
+++ b/compiler/src/iree/compiler/Codegen/Interfaces/BUILD.bazel
@@ -4,7 +4,7 @@
 # See https://llvm.org/LICENSE.txt for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
-load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library", "iree_gentbl_cc_library", "iree_td_library")
+load("//build_tools/bazel:build_defs.oss.bzl", "iree_cmake_extra_content", "iree_compiler_cc_library", "iree_gentbl_cc_library", "iree_td_library")
 load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
 
 package(
@@ -131,6 +131,20 @@
     ],
 )
 
+# FIXME: LLVM split these libraries in the CMake build, but not yet in bazel
+iree_cmake_extra_content(
+    content = """
+target_link_libraries(iree_compiler_Codegen_Interfaces_BufferizationInterfaces PUBLIC
+    MLIRArithBufferizableOpInterfaceImpl
+    MLIRBufferizationBufferizableOpInterfaceImpl
+    MLIRSCFBufferizableOpInterfaceImpl
+    MLIRTensorBufferizableOpInterfaceImpl
+    MLIRVectorBufferizableOpInterfaceImpl
+)
+""",
+    inline = True,
+)
+
 iree_compiler_cc_library(
     name = "HoistableRegionOpInterface",
     srcs = [
diff --git a/compiler/src/iree/compiler/Codegen/Interfaces/CMakeLists.txt b/compiler/src/iree/compiler/Codegen/Interfaces/CMakeLists.txt
index 646bba0..da130ec 100644
--- a/compiler/src/iree/compiler/Codegen/Interfaces/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Codegen/Interfaces/CMakeLists.txt
@@ -96,6 +96,14 @@
   PUBLIC
 )
 
+target_link_libraries(iree_compiler_Codegen_Interfaces_BufferizationInterfaces PUBLIC
+    MLIRArithBufferizableOpInterfaceImpl
+    MLIRBufferizationBufferizableOpInterfaceImpl
+    MLIRSCFBufferizableOpInterfaceImpl
+    MLIRTensorBufferizableOpInterfaceImpl
+    MLIRVectorBufferizableOpInterfaceImpl
+)
+
 iree_cc_library(
   NAME
     HoistableRegionOpInterface
diff --git a/compiler/src/iree/compiler/Tools/CMakeLists.txt b/compiler/src/iree/compiler/Tools/CMakeLists.txt
index de2f684..c79b8b6 100644
--- a/compiler/src/iree/compiler/Tools/CMakeLists.txt
+++ b/compiler/src/iree/compiler/Tools/CMakeLists.txt
@@ -86,6 +86,7 @@
     MLIRArmNeon2dToIntr
     MLIRBufferizationDialect
     MLIRComplexDialect
+    MLIRControlFlowBufferizableOpInterfaceImpl
     MLIRControlFlowDialect
     MLIRControlFlowTransforms
     MLIRFuncInlinerExtension
diff --git a/third_party/llvm-project b/third_party/llvm-project
index 1bd41d7..f1ee8b3 160000
--- a/third_party/llvm-project
+++ b/third_party/llvm-project
@@ -1 +1 @@
-Subproject commit 1bd41d70d179a1dd8daeab69b41ea55732df48bc
+Subproject commit f1ee8b38f40fd1f0e9596197b8e690eb9b57ec0c