Skip to content

Commit

Permalink
cpp/python: export empty and universe constructors for maps
Browse files Browse the repository at this point in the history
These functions are documented and commonly used when constructing isl
maps. Export them for basic maps, maps, and union maps:

	isl_basic_map_empty
	isl_basic_map_universe

	isl_map_empty
	isl_map_universe

	isl_union_map_empty

As the arguments of these constructors do not always uniquely identify
the constructed object, named constructors are introduced according to
the isl interface guidelines.

Signed-off-by: Tobias Grosser <[email protected]>
Reviewed-by: Oleksandr Zinenko <[email protected]>
  • Loading branch information
tobiasgrosser committed Aug 18, 2017
1 parent 7ce6b49 commit 7cc58a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/isl/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ __isl_give isl_basic_map *isl_basic_map_less_at(__isl_take isl_space *dim,
unsigned pos);
__isl_give isl_basic_map *isl_basic_map_more_at(__isl_take isl_space *dim,
unsigned pos);
__isl_export
__isl_give isl_basic_map *isl_basic_map_empty(__isl_take isl_space *space);
__isl_export
__isl_give isl_basic_map *isl_basic_map_universe(__isl_take isl_space *space);
__isl_give isl_basic_map *isl_basic_map_nat_universe(__isl_take isl_space *dim);
__isl_give isl_basic_map *isl_basic_map_remove_redundancies(
Expand Down Expand Up @@ -281,8 +283,10 @@ isl_bool isl_basic_map_is_subset(__isl_keep isl_basic_map *bmap1,
isl_bool isl_basic_map_is_strict_subset(__isl_keep isl_basic_map *bmap1,
__isl_keep isl_basic_map *bmap2);

__isl_export
__isl_give isl_map *isl_map_universe(__isl_take isl_space *space);
__isl_give isl_map *isl_map_nat_universe(__isl_take isl_space *dim);
__isl_export
__isl_give isl_map *isl_map_empty(__isl_take isl_space *space);
__isl_give isl_map *isl_map_identity(__isl_take isl_space *dim);
__isl_give isl_map *isl_map_lex_lt_first(__isl_take isl_space *dim, unsigned n);
Expand Down
1 change: 1 addition & 0 deletions include/isl/union_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ __isl_give isl_union_map *isl_union_map_from_basic_map(
__isl_take isl_basic_map *bmap);
__isl_constructor
__isl_give isl_union_map *isl_union_map_from_map(__isl_take isl_map *map);
__isl_export
__isl_give isl_union_map *isl_union_map_empty(__isl_take isl_space *space);
__isl_give isl_union_map *isl_union_map_copy(__isl_keep isl_union_map *umap);
__isl_null isl_union_map *isl_union_map_free(__isl_take isl_union_map *umap);
Expand Down

0 comments on commit 7cc58a9

Please sign in to comment.