[all-commits] [llvm/llvm-project] ffcee2: [MLIR] Avoid #include OMPIRBuilder.h (#151302)

Michael Kruse via All-commits all-commits at lists.llvm.org
Wed Jul 30 04:15:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffcee267f1633d22d83ef4b4ebfb70ca00c7cd14
      https://github.com/llvm/llvm-project/commit/ffcee267f1633d22d83ef4b4ebfb70ca00c7cd14
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2025-07-30 (Wed, 30 Jul 2025)

  Changed paths:
    M mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
    M mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
    M mlir/lib/Target/LLVMIR/Dialect/NVVM/LLVMIRToNVVMTranslation.cpp

  Log Message:
  -----------
  [MLIR] Avoid #include OMPIRBuilder.h (#151302)

`#include "llvm/Frontend/OpenMP/OMPIRBuilder.h"` can be replaced with
forward-declarations of `OpenMPIRBuilder` and `CanonicalLoopInfo`. This
also avoids a dependency to `omp_gen` of the LLVMFrontendOpenMP
component which is included indirectly in `OMPIRBuilder.h`.

Since its inclusion in #147069, additional indirect dependencies on
headers included by `OMPIRBuilder.h` were introduced as well. These are
now included directly.

Reported-by: fabrizio-indirli

See
https://github.com/llvm/llvm-project/pull/147069#issuecomment-3114034973



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