[all-commits] [llvm/llvm-project] 34a08c: [mlir][LLVM] Remove `llvm` deps from the LLVM dial...

Fabian Mora via All-commits all-commits at lists.llvm.org
Fri Jul 25 13:52:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34a08cb89c5e50c22be05555529ce84eaa3e4d3c
      https://github.com/llvm/llvm-project/commit/34a08cb89c5e50c22be05555529ce84eaa3e4d3c
  Author: Fabian Mora <fmora.dev at gmail.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

  Changed paths:
    M flang/lib/Frontend/CMakeLists.txt
    M flang/lib/Optimizer/Dialect/Support/KindMapping.cpp
    M mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h
    M mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
    M mlir/include/mlir/Target/LLVMIR/ModuleImport.h
    M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
    M mlir/lib/Dialect/LLVMIR/CMakeLists.txt
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
    M mlir/lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp
    M mlir/lib/Dialect/LLVMIR/IR/VCIXDialect.cpp
    M mlir/lib/Target/LLVM/CMakeLists.txt
    M mlir/unittests/Target/LLVM/CMakeLists.txt

  Log Message:
  -----------
  [mlir][LLVM] Remove `llvm` deps from the LLVM dialect (#150692)

This patch removes spurious includes of `llvm/IR` files, and unnecessary
link components in the LLVM dialect.

The only major dependencies still coming from LLVM are
`llvm::DataLayout`, which is used by `verifyDataLayoutString` and some
`dwarf` symbols in some attributes. Both of them should likely be
removed in the future.

Finally, I also removed one constructor from `LLVM::AssumeOp` that used
[OperandBundleDefT](https://llvm.org/doxygen/classllvm_1_1OperandBundleDefT.html)
without good reason and introduced a header unnecessarily.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list