[Mlir-commits] [mlir] [mlir][SCFToSPIRV] Implement createConvertSCFToSPIRVPass function (PR #71758)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 8 20:23:32 PST 2023
https://github.com/muzhailong updated https://github.com/llvm/llvm-project/pull/71758
>From c4d380793c74015f2ca2b2d867dac83f728ae505 Mon Sep 17 00:00:00 2001
From: "Mu, Zhailong" <zhailong.mu at intel.com>
Date: Thu, 9 Nov 2023 10:24:14 +0800
Subject: [PATCH] [mlir][SCFToSPIRV] Implement createConvertSCFToSPIRVPass
function
---
mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp b/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp
index 3ef1d84ee264771..b1d1037f32c40fb 100644
--- a/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp
+++ b/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp
@@ -58,3 +58,7 @@ void SCFToSPIRVPass::runOnOperation() {
if (failed(applyPartialConversion(op, *target, std::move(patterns))))
return signalPassFailure();
}
+
+std::unique_ptr<OperationPass<>> mlir::createConvertSCFToSPIRVPass() {
+ return std::make_unique<SCFToSPIRVPass>();
+}
More information about the Mlir-commits
mailing list