[Mlir-commits] [mlir] [mlir][spirv] Add a generic `convert-to-spirv` pass (PR #95942)

Mehdi Amini llvmlistbot at llvm.org
Wed Aug 28 11:23:36 PDT 2024


================
@@ -31,6 +31,18 @@ def ConvertToLLVMPass : Pass<"convert-to-llvm"> {
   ];
 }
 
+//===----------------------------------------------------------------------===//
+// ToSPIRV
+//===----------------------------------------------------------------------===//
+
+def ConvertToSPIRVPass : Pass<"convert-to-spirv"> {
+  let summary = "Convert to SPIR-V";
+  let description = [{
+    This is a generic pass to convert to SPIR-V.
----------------
joker-eph wrote:

This claims to be a "generic" pass but it seems to me instead to be a "monolithic" pass.

Why didn't we align this on the `convert-to-llvm` pass design instead?

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


More information about the Mlir-commits mailing list