From ff9b8c6f657b7db9ddf2110cb1ed644f56e1445e Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Tue, 3 Nov 2020 11:18:14 -0800 Subject: [PATCH] PR #44499: Add missing dep on MLIRMhloPassIncGen target Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/44499 The file `sink_constants_to_control_flow.cc` includes the header `PassDetail.h`, which itself includes `mhlo_passes.h.inc`. The latter is not guaranteed to be already generated since there was no dependency set to MLIRMhloPassIncGen. Copybara import of the project: -- 0ff51ccc88c1ba049eb2e9555afb54079bea39c9 by Marius Brehler : Add missing dep on MLIRMhloPassIncGen target The file `sink_constants_to_control_flow.cc` includes the header `PassDetail.h`, which itself includes `mhlo_passes.h.inc`. The latter is not guaranteed to be already generated since there was no dependency set to MLIRMhloPassIncGen. PiperOrigin-RevId: 340485068 --- lib/Dialect/mhlo/transforms/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Dialect/mhlo/transforms/CMakeLists.txt b/lib/Dialect/mhlo/transforms/CMakeLists.txt index 3549132..2435074 100644 --- a/lib/Dialect/mhlo/transforms/CMakeLists.txt +++ b/lib/Dialect/mhlo/transforms/CMakeLists.txt @@ -67,6 +67,7 @@ add_mlir_library(MhloPasses DEPENDS MLIRhlo_opsIncGen MLIRMhloLowerComplexIncGen + MLIRMhloPassIncGen LINK_COMPONENTS Core