python: mark isl_ast_build_*_from_* as __isl_overload
commit503183c4e51ee9f2a92edca900f629b18999fd9e
authorTobias Grosser <tobias@grosser.es>
Fri, 16 Dec 2016 22:54:01 +0000 (16 23:54 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 18 Dec 2016 09:56:03 +0000 (18 10:56 +0100)
treea364c473b7781f10b7e5b3f5fce0531247ece046
parent5f3f4854b8f789a6f41c37f320fb149afe9f70b3
python: mark isl_ast_build_*_from_* as __isl_overload

When these functions were exported in c9a7ccc (python interface: expose
isl_ast_build and isl_ast_expr construction, Thu Jun 30 16:22:37 2016
+0200), the __isl_overload annotation was not added such that the
different argument type names unnecessarily remained in the method
declarations.

This change now adds __isl_overload to all overloaded
isl_ast_build_*_from_* functions except isl_ast_build_node_from*. This
changes the signature of the corresponding python interface in a
backward incompatible way. However, this part of the python interface
was never part of any isl release and is also not yet described in the
polyhedral compilation tutorial. Hence, now is probably the best moment
to correct this oversight.

No __isl_overload is added to isl_ast_build_node_from_schedule_map,
because the function name does not follow the convention of having
a suffix corresponding to the argument type, even though the function
is conceptually an overload of isl_ast_build_node_from_schedule.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
include/isl/ast_build.h