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

Romaric Jodin via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 14 07:06:45 PDT 2024


================
@@ -26,6 +27,12 @@
 #
 # convert_<destTypen><_sat><_roundingMode>(<sourceTypen>)
 
+import sys
+
+clspv = False
+if len(sys.argv) == 2 and sys.argv[1] == "--clspv":
+    clspv = True
+
----------------
rjodinchr wrote:

I wanted to avoid the dependency on argparse to be added. But Python version not having it by default are getting very old and unsupported so I guess it's definitely better to use it.

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


More information about the cfe-commits mailing list