[Mlir-commits] [mlir] [mlir][SCFToSPIRV] Implement createConvertSCFToSPIRVPass function (PR #71758)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 8 18:31:48 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-spirv
Author: None (muzhailong)
<details>
<summary>Changes</summary>
fix the issue: https://github.com/llvm/llvm-project/issues/71632
---
Full diff: https://github.com/llvm/llvm-project/pull/71758.diff
1 Files Affected:
- (modified) mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp (+4)
``````````diff
diff --git a/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp b/mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp
index 3ef1d84ee264771..fd0d53667d66e36 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>();
+}
``````````
</details>
https://github.com/llvm/llvm-project/pull/71758
More information about the Mlir-commits
mailing list