This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix sporadic build failures due to missing dependency
ClosedPublic

Authored by stella.stamenova on Oct 12 2020, 2:57 PM.

Details

Summary

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

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
stella.stamenova requested review of this revision.Oct 12 2020, 2:58 PM
stella.stamenova edited the summary of this revision. (Show Details)Oct 12 2020, 2:58 PM
mehdi_amini accepted this revision.Oct 12 2020, 5:47 PM
This revision is now accepted and ready to land.Oct 12 2020, 5:47 PM