From 3e92be9c71fbaeb759e32aa3aed3d4812e4db035 Mon Sep 17 00:00:00 2001 From: Uday Bondhugula Date: Mon, 13 Aug 2018 17:25:13 -0700 Subject: [PATCH] Move Pass.{h,cpp} from lib/IR/ to lib/Transforms/. PiperOrigin-RevId: 208571437 --- mlir/include/mlir/{IR => Transforms}/Pass.h | 0 mlir/lib/Transforms/ConvertToCFG.cpp | 2 +- mlir/lib/Transforms/LoopUnroll.cpp | 2 +- mlir/lib/{IR => Transforms}/Pass.cpp | 4 ++-- mlir/tools/mlir-opt/mlir-opt.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename mlir/include/mlir/{IR => Transforms}/Pass.h (100%) rename mlir/lib/{IR => Transforms}/Pass.cpp (93%) diff --git a/mlir/include/mlir/IR/Pass.h b/mlir/include/mlir/Transforms/Pass.h similarity index 100% rename from mlir/include/mlir/IR/Pass.h rename to mlir/include/mlir/Transforms/Pass.h diff --git a/mlir/lib/Transforms/ConvertToCFG.cpp b/mlir/lib/Transforms/ConvertToCFG.cpp index 7ce52eab2412..3863ea0da267 100644 --- a/mlir/lib/Transforms/ConvertToCFG.cpp +++ b/mlir/lib/Transforms/ConvertToCFG.cpp @@ -23,7 +23,7 @@ #include "mlir/IR/CFGFunction.h" #include "mlir/IR/MLFunction.h" #include "mlir/IR/Module.h" -#include "mlir/IR/Pass.h" +#include "mlir/Transforms/Pass.h" #include "mlir/Transforms/Passes.h" #include "llvm/ADT/DenseSet.h" using namespace mlir; diff --git a/mlir/lib/Transforms/LoopUnroll.cpp b/mlir/lib/Transforms/LoopUnroll.cpp index 5c2dd866c1fe..cacb207bc620 100644 --- a/mlir/lib/Transforms/LoopUnroll.cpp +++ b/mlir/lib/Transforms/LoopUnroll.cpp @@ -25,10 +25,10 @@ #include "mlir/IR/MLFunction.h" #include "mlir/IR/Module.h" #include "mlir/IR/OperationSet.h" -#include "mlir/IR/Pass.h" #include "mlir/IR/StandardOps.h" #include "mlir/IR/Statements.h" #include "mlir/IR/StmtVisitor.h" +#include "mlir/Transforms/Pass.h" #include "mlir/Transforms/Passes.h" #include "llvm/ADT/DenseMap.h" #include "llvm/Support/raw_ostream.h" diff --git a/mlir/lib/IR/Pass.cpp b/mlir/lib/Transforms/Pass.cpp similarity index 93% rename from mlir/lib/IR/Pass.cpp rename to mlir/lib/Transforms/Pass.cpp index 97bf9869821d..8ce92142f4cc 100644 --- a/mlir/lib/IR/Pass.cpp +++ b/mlir/lib/Transforms/Pass.cpp @@ -15,11 +15,11 @@ // limitations under the License. // ============================================================================= // -// This file implements loop unrolling. +// This file implements common pass infrastructure. // //===----------------------------------------------------------------------===// -#include "mlir/IR/Pass.h" +#include "mlir/Transforms/Pass.h" #include "mlir/IR/CFGFunction.h" #include "mlir/IR/MLFunction.h" #include "mlir/IR/Module.h" diff --git a/mlir/tools/mlir-opt/mlir-opt.cpp b/mlir/tools/mlir-opt/mlir-opt.cpp index 26417e20cb1d..6eb31d6a7e3f 100644 --- a/mlir/tools/mlir-opt/mlir-opt.cpp +++ b/mlir/tools/mlir-opt/mlir-opt.cpp @@ -25,10 +25,10 @@ #include "mlir/IR/MLFunction.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/Module.h" -#include "mlir/IR/Pass.h" #include "mlir/Parser.h" #include "mlir/TensorFlow/ControlFlowOps.h" #include "mlir/TensorFlow/Passes.h" +#include "mlir/Transforms/Pass.h" #include "mlir/Transforms/Passes.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/FileUtilities.h"