[libclc] libclc: clspv: update gen_convert.cl for clspv (PR #66902)

Kévin Petit via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 14 04:23:53 PDT 2024


================
@@ -251,13 +258,19 @@ def generate_default_conversion(src, dst, mode):
         print("#endif")
 
 
-for src in types:
-    for dst in types:
-        generate_default_conversion(src, dst, "")
+# Do not generate default conversion for clspv as they are handle natively
+if not clspv:
+    for src in types:
+        for dst in types:
+            generate_default_conversion(src, dst, "")
 
 for src in int_types:
     for dst in int_types:
         for mode in rounding_modes:
+            # Do not generate "_rte" conversion for clspv as they are handle
----------------
kpet wrote:

```suggestion
            # Do not generate "_rte" conversion for clspv as they are handled
```

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


More information about the cfe-commits mailing list