[PATCH 1/2] isl_lp.c: make isl_tab_solve_lp static

1 view
Skip to first unread message

skim...@kotnet.org

unread,
Aug 31, 2021, 3:59:32 PMAug 31
to isl-dev...@googlegroups.com
From: Sven Verdoolaege <sk...@kotnet.org>

This function has only ever been used locally.

Signed-off-by: Sven Verdoolaege <sven.ver...@gmail.com>
---
isl_lp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/isl_lp.c b/isl_lp.c
index 5fe179ab29..c6cc83848b 100644
--- a/isl_lp.c
+++ b/isl_lp.c
@@ -22,7 +22,7 @@
#include <bset_to_bmap.c>
#include <set_to_map.c>

-enum isl_lp_result isl_tab_solve_lp(__isl_keep isl_basic_map *bmap,
+static enum isl_lp_result isl_tab_solve_lp(__isl_keep isl_basic_map *bmap,
int maximize, isl_int *f, isl_int denom, isl_int *opt,
isl_int *opt_denom, __isl_give isl_vec **sol)
{
--
2.25.1

skim...@kotnet.org

unread,
Aug 31, 2021, 3:59:33 PMAug 31
to isl-dev...@googlegroups.com
From: Sven Verdoolaege <sk...@kotnet.org>

Since isl-0.01-74-g6470e1b83f (isl_affine_hull.c: uset_affine_hull_bounded:
use tableaus to perform computation, Fri Oct 9 17:16:24 2009 +0200),
this function is only used locally.

Signed-off-by: Sven Verdoolaege <sven.ver...@gmail.com>
---
isl_sample.c | 3 +++
isl_sample.h | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/isl_sample.c b/isl_sample.c
index e0e2c9bee8..c6036a8448 100644
--- a/isl_sample.c
+++ b/isl_sample.c
@@ -24,6 +24,9 @@
#include <bset_from_bmap.c>
#include <set_to_map.c>

+static __isl_give isl_vec *isl_basic_set_sample_bounded(
+ __isl_take isl_basic_set *bset);
+
static __isl_give isl_vec *empty_sample(__isl_take isl_basic_set *bset)
{
struct isl_vec *vec;
diff --git a/isl_sample.h b/isl_sample.h
index 13f0e5bef9..6ffdad8a0a 100644
--- a/isl_sample.h
+++ b/isl_sample.h
@@ -18,8 +18,6 @@ extern "C" {
#endif

__isl_give isl_vec *isl_basic_set_sample_vec(__isl_take isl_basic_set *bset);
-__isl_give isl_vec *isl_basic_set_sample_bounded(
- __isl_take isl_basic_set *bset);
__isl_give isl_vec *isl_basic_set_sample_with_cone(
__isl_take isl_basic_set *bset, __isl_take isl_basic_set *cone);

--
2.25.1

Reply all
Reply to author
Forward
0 new messages