[Mlir-commits] [mlir] [mlir][spirv] Add spirv-to-llvm conversion for group operations (PR #115501)

Jakub Kuderski llvmlistbot at llvm.org
Fri Nov 8 07:59:54 PST 2024


================
@@ -1089,6 +1096,186 @@ class ControlBarrierPattern
   }
 };
 
+namespace {
+
+StringRef getTypeMangling(Type type, bool isSigned) {
+  return llvm::TypeSwitch<Type, StringRef>(type)
+      .Case<Float16Type>([](auto) { return "Dh"; })
+      .template Case<Float32Type>([](auto) { return "f"; })
+      .template Case<Float64Type>([](auto) { return "d"; })
+      .template Case<IntegerType>([isSigned](IntegerType intTy) {
----------------
kuhar wrote:

I don't think we need these `.template` here; the type switch is not a dependent name

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


More information about the Mlir-commits mailing list