[Mlir-commits] [mlir] Update mlir-spirv-cpu-runner.cpp (PR #70649)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Oct 30 04:29:21 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-core

Author: None (tsitdikov)

<details>
<summary>Changes</summary>

https://github.com/llvm/llvm-project/pull/70568 removed the support for lowering SPIRV to LLVM dialect. We now need to stop using enableOpaquePointers with ConvertSPIRVToLLVMPassOptions.

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


1 Files Affected:

- (modified) mlir/tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp (+2-2) 


``````````diff
diff --git a/mlir/tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp b/mlir/tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp
index a427d37ae126ed1..e3d5b2ff5843ce8 100644
--- a/mlir/tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp
+++ b/mlir/tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp
@@ -94,8 +94,8 @@ static LogicalResult runMLIRPasses(Operation *module,
   nestedPM.addPass(spirv::createSPIRVUpdateVCEPass());
   passManager.addPass(createLowerHostCodeToLLVMPass(
       enableOpaquePointers(LowerHostCodeToLLVMPassOptions{})));
-  passManager.addPass(createConvertSPIRVToLLVMPass(
-      enableOpaquePointers(ConvertSPIRVToLLVMPassOptions{})));
+  passManager.addPass(
+      createConvertSPIRVToLLVMPass(ConvertSPIRVToLLVMPassOptions{}));
   return passManager.run(module);
 }
 

``````````

</details>


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


More information about the Mlir-commits mailing list