islpy
islpy copied to clipboard
Wrong wrapper for `isl_ast_op_type_print_macro`
I noticed that the ISL function isl_ast_op_type_print_macro got parsed into the wrong class:
https://documen.tician.de/islpy/ref_ast.html?highlight=op_type_print_macro#islpy.AstExpr.op_type_print_macro.
I'm leaving an issue here since I'm not sure what's the best approach to fix it.
Hack this logic:
https://github.com/inducer/islpy/blob/a5c7df513b74609c5f7a58ecc20db3c33d506a27/gen_wrap.py#L636-L648
Hmm, hacking this naively (similar to line 646) doesn't seem to work because ast_op_type is an enum, and the argument order is reversed compared to ast_op_type_set_print_name .