[Mlir-commits] [mlir] [MLIR][GPU-LLVM] Add in-pass signature update option for opencl kernels (PR #105664)

Victor Perez llvmlistbot at llvm.org
Tue Sep 17 00:44:11 PDT 2024


================
@@ -306,6 +310,36 @@ struct GPUShuffleConversion final : ConvertOpToLLVMPattern<gpu::ShuffleOp> {
   }
 };
 
+class MemorySpaceToOpenCLMemorySpaceConverter final : public TypeConverter {
+public:
+  MemorySpaceToOpenCLMemorySpaceConverter() {
+    addConversion([](Type t) { return t; });
+    addConversion([this](BaseMemRefType memRefType) -> std::optional<Type> {
----------------
victor-eds wrote:

```suggestion
    addConversion([](BaseMemRefType memRefType) -> std::optional<Type> {
```

Unused

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


More information about the Mlir-commits mailing list