summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Dialect/Linalg/LinalgRegistration.cpp
diff options
context:
space:
mode:
authorNicolas Vasilache <ntv@google.com>2019-08-19 17:11:12 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-08-19 17:11:38 -0700
commitb628194013088e7b04f25d776908b4dd96ea7bbd (patch)
tree9348fe1bd5afd802f79aa73654f6f098d967abfd /mlir/lib/Dialect/Linalg/LinalgRegistration.cpp
parent774b37b89b88e063aa4df47bd2637cf51283740c (diff)
downloadbcm5719-llvm-b628194013088e7b04f25d776908b4dd96ea7bbd.tar.gz
bcm5719-llvm-b628194013088e7b04f25d776908b4dd96ea7bbd.zip
Move Linalg and VectorOps dialects to the Dialect subdir - NFC
PiperOrigin-RevId: 264277760
Diffstat (limited to 'mlir/lib/Dialect/Linalg/LinalgRegistration.cpp')
-rw-r--r--mlir/lib/Dialect/Linalg/LinalgRegistration.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/mlir/lib/Dialect/Linalg/LinalgRegistration.cpp b/mlir/lib/Dialect/Linalg/LinalgRegistration.cpp
new file mode 100644
index 00000000000..df21ffa88ac
--- /dev/null
+++ b/mlir/lib/Dialect/Linalg/LinalgRegistration.cpp
@@ -0,0 +1,25 @@
+//===- LinalgRegistration.cpp - Register the linalg dialect statically ----===//
+//
+// Copyright 2019 The MLIR Authors.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// =============================================================================
+
+#include "mlir/Dialect/Linalg/IR/LinalgOps.h"
+#include "mlir/Dialect/Linalg/IR/LinalgTypes.h"
+
+using namespace mlir;
+using namespace mlir::linalg;
+
+// Static initialization for LinalgOps dialect registration.
+static DialectRegistration<LinalgDialect> LinalgOps;
OpenPOWER on IntegriCloud