[Mlir-commits] [mlir] [mlir][SPIR-V] Update the `ConvertToSPIRV` pass to use dialect interfaces (PR #102046)
Ivan Butygin
llvmlistbot at llvm.org
Mon Aug 5 17:54:20 PDT 2024
================
@@ -0,0 +1,32 @@
+//===- ToSPIRVInterface.cpp - MLIR SPIRV Conversion -----------------------===//
+//
+// 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/Conversion/ConvertToSPIRV/ToSPIRVInterface.h"
+#include "mlir/IR/Dialect.h"
+#include "mlir/IR/Operation.h"
+#include "llvm/ADT/DenseSet.h"
+
+using namespace mlir;
+
+void mlir::populateConversionTargetFromOperation(
+ Operation *root, ConversionTarget &target,
+ SPIRVTypeConverter &typeConverter, RewritePatternSet &patterns) {
+ DenseSet<Dialect *> dialects;
----------------
Hardcode84 wrote:
`SmallDenseSet`
https://github.com/llvm/llvm-project/pull/102046
More information about the Mlir-commits
mailing list