[llvm] [mlir][bufferization] Generalize tensor slice rules to subset ops (PR #65619)

Martin Erhart via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 02:26:01 PDT 2023


================
@@ -0,0 +1,85 @@
+//===- SubsetInsertionOpInterfaceImpl.cpp - Tensor subsets ----------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "mlir/Dialect/Tensor/Transforms/SubsetInsertionOpInterfaceImpl.h"
+
+#include "mlir/Dialect/Bufferization/IR/SubsetInsertionOpInterface.h"
+#include "mlir/Dialect/Tensor/IR/Tensor.h"
+
+using namespace mlir;
+using namespace mlir::bufferization;
+using namespace mlir::tensor;
+
+namespace mlir {
+namespace tensor {
+namespace {
----------------
maerhart wrote:

Why nest an anonymous namespace in mlir/tensor when there is already a `using namespace` for it?

https://github.com/llvm/llvm-project/pull/65619


More information about the llvm-commits mailing list