[clang-tools-extra] [MLIR] Update convert-gpu-to-spirv pass to prepare using GPU compilat… (PR #69941)

Jungwook Park via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 30 10:01:12 PDT 2023


================
@@ -108,6 +138,25 @@ void GPUToSPIRVPass::runOnOperation() {
     if (failed(applyFullConversion(gpuModule, *target, std::move(patterns))))
       return signalPassFailure();
   }
+
+  // For OpenCL, the gpu.func op in the original gpu.module op needs to be
----------------
jungpark-mlir wrote:

Is this gpu.func->func.func necessary? Can you just keep the original gpu.func instead?

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


More information about the cfe-commits mailing list