[all-commits] [llvm/llvm-project] 0c15a1: [mlir] Fix sporadic build failures due to missing ...

Stella Stamenova via All-commits all-commits at lists.llvm.org
Tue Oct 13 09:55:27 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c15a1b4bcefc1eb434e07aa31b7a08109ccd27e
      https://github.com/llvm/llvm-project/commit/0c15a1b4bcefc1eb434e07aa31b7a08109ccd27e
  Author: Stella Stamenova <stilis at microsoft.com>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/CMakeLists.txt

  Log Message:
  -----------
  [mlir] Fix sporadic build failures due to missing dependency

The build of MLIR occasionally fails (especially on Windows) because there is missing dependency between MLIRLLVMIR and MLIROpenMPOpsIncGen.

1) LLVMDialect.cpp includes LLVMDialect.h
2) LLVMDialect.h includes OpenMPDialect.h
3) OpenMPDialect.h includes OpenMPOpsDialect.h.inc, OpenMPOpsEnums.h.inc and OpenMPOps.h.inc

The OpenMP .inc files are generated by MLIROpenMPOpsIncGen, so MLIRLLVMIR which builds LLVMDialect.cpp should depend on MLIROpenMPOpsIncGen

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D89275




More information about the All-commits mailing list