Skip to content

[mlir][SCFToSPIRV] Implement createConvertSCFToSPIRVPass function #71758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

muzhailong
Copy link

fix the issue: #71632

@llvmbot
Copy link
Member

llvmbot commented Nov 9, 2023

@llvm/pr-subscribers-mlir

Author: None (muzhailong)

Changes

fix the issue: #71632


Full diff: https://github.com/llvm/llvm-project/pull/71758.diff

1 Files Affected:

  • (modified) mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp (+4)
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>();
+}

@llvmbot
Copy link
Member

llvmbot commented Nov 9, 2023

@llvm/pr-subscribers-mlir-spirv

Author: None (muzhailong)

Changes

fix the issue: #71632


Full diff: https://github.com/llvm/llvm-project/pull/71758.diff

1 Files Affected:

  • (modified) mlir/lib/Conversion/SCFToSPIRV/SCFToSPIRVPass.cpp (+4)
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>();
+}

Copy link

github-actions bot commented Nov 9, 2023

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants