[Mlir-commits] [mlir] [mlir][spirv] Ignore extra comma for category_args in gen_spirv_dialect.py (PR #111776)

Jakub Kuderski llvmlistbot at llvm.org
Thu Oct 10 07:46:03 PDT 2024


================
@@ -988,6 +988,7 @@ def extract_td_op_info(op_def):
     op_tmpl_params, _ = get_string_between_nested(op_def, "<", ">")
     opstringname, rest = get_string_between(op_tmpl_params, '"', '"')
     category_args = rest.split("[", 1)[0]
+    category_args = category_args.rsplit(",", 1)[0]
----------------
kuhar wrote:

Could you past an example of how `rest` looks like and what you want `category_args` to be?

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


More information about the Mlir-commits mailing list