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

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


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

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.

>From b6bbb8e71be934e1892e19f441e3cfda247f66e6 Mon Sep 17 00:00:00 2001
From: tsitdikov <149382295+tsitdikov at users.noreply.github.com>
Date: Mon, 30 Oct 2023 11:25:42 +0000
Subject: [PATCH] Update mlir-spirv-cpu-runner.cpp

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.
---
 mlir/tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
 }
 



More information about the Mlir-commits mailing list