summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2019-11-28 11:50:47 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-11-28 11:51:23 -0800
commit2f16bf7ac9de4d525fda2916e801e23f456d8b82 (patch)
tree7362f50f7dddb56b46493405c467e71c220d06c1 /mlir/lib/IR
parent0494ef60f71abc09dbeed568ef0c5ee09d292bbb (diff)
downloadbcm5719-llvm-2f16bf7ac9de4d525fda2916e801e23f456d8b82.tar.gz
bcm5719-llvm-2f16bf7ac9de4d525fda2916e801e23f456d8b82.zip
Split out FunctionLike printing/parsing into FunctionImplementation.{h,cpp}
Helper utilies for parsing and printing FunctionLike Ops are only relevant to the implementation of the Op, not its definition. They depend on OpImplementation.h and increase the inclusion footprint of FunctionSupport.h, and do so only to provide some utilities in the "impl" namespace. Move them to a separate files, similarly to OpDefinition/OpImplementation distinction, and make only Op implementations use them while keeping headers cleaner. NFC. PiperOrigin-RevId: 282964556
Diffstat (limited to 'mlir/lib/IR')
-rw-r--r--mlir/lib/IR/Function.cpp1
-rw-r--r--mlir/lib/IR/FunctionImplementation.cpp (renamed from mlir/lib/IR/FunctionSupport.cpp)6
2 files changed, 4 insertions, 3 deletions
diff --git a/mlir/lib/IR/Function.cpp b/mlir/lib/IR/Function.cpp
index 4e103508af0..e5e854260f3 100644
--- a/mlir/lib/IR/Function.cpp
+++ b/mlir/lib/IR/Function.cpp
@@ -20,6 +20,7 @@
#include "mlir/IR/Builders.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/Dialect.h"
+#include "mlir/IR/FunctionImplementation.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/IR/Module.h"
#include "mlir/IR/OpImplementation.h"
diff --git a/mlir/lib/IR/FunctionSupport.cpp b/mlir/lib/IR/FunctionImplementation.cpp
index c6f2673ef2a..a1fc21e11ea 100644
--- a/mlir/lib/IR/FunctionSupport.cpp
+++ b/mlir/lib/IR/FunctionImplementation.cpp
@@ -1,4 +1,4 @@
-//===- FunctionSupport.cpp - Utility types for function-like ops ----------===//
+//===- FunctionImplementation.cpp - Utilities for function-like ops -------===//
//
// Copyright 2019 The MLIR Authors.
//
@@ -15,9 +15,9 @@
// limitations under the License.
// =============================================================================
-#include "mlir/IR/FunctionSupport.h"
+#include "mlir/IR/FunctionImplementation.h"
#include "mlir/IR/Builders.h"
-#include "mlir/IR/OpImplementation.h"
+#include "mlir/IR/FunctionSupport.h"
#include "mlir/IR/SymbolTable.h"
using namespace mlir;
OpenPOWER on IntegriCloud