[PATCH] D74469: Add '#include <functional>` to PassManager.h.
Alexander Belyaev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 01:20:27 PST 2020
pifon2a created this revision.
pifon2a added a reviewer: herhut.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, jsji.
Herald added a reviewer: rriddle.
Herald added a project: LLVM.
On some platforms the build fails "std::function is not found" if you use
PassManager. E.g. if you do
static PassPipelineRegistration<> legalize_pass(
"hlo-legalize-to-lhlo", "Legalize from HLO dialect to LHLO dialect",
[](mlir::OpPassManager& pm) {
pm.addPass(createLegalizeToLhloPass());
pm.addPass(createLhloCopyRemovalPass());
});
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74469
Files:
mlir/include/mlir/Pass/PassManager.h
Index: mlir/include/mlir/Pass/PassManager.h
===================================================================
--- mlir/include/mlir/Pass/PassManager.h
+++ mlir/include/mlir/Pass/PassManager.h
@@ -14,6 +14,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/iterator.h"
+#include <functional>
#include <vector>
namespace llvm {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74469.244095.patch
Type: text/x-patch
Size: 343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200212/ab7c1fdf/attachment.bin>
More information about the llvm-commits
mailing list