Patchwork [1/3] Add necessary accessors for CloogMatrix (CLOOG_ORG).

login
register
mail settings
Submitter Andreas Simbürger
Date Aug. 11, 2010, 6:30 p.m.
Message ID <1281551412-9101-2-git-send-email-simbuerg@googlemail.com>
Download mbox | patch
Permalink /patch/61498/
State New
Headers show

Comments

Andreas Simbürger - Aug. 11, 2010, 6:30 p.m.
2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>

	* graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
	(cloog_matrix_nrows): New.
---
 gcc/ChangeLog.graphite      |    5 +++++
 gcc/graphite-cloog-compat.h |   10 ++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
Sebastian Pop - Aug. 11, 2010, 8:53 p.m.
On Wed, Aug 11, 2010 at 13:30, Andreas Simbürger
<simbuerg@googlemail.com> wrote:
> 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
>
>        * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
>        (cloog_matrix_nrows): New.

Committed to the graphite branch.

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 6805a5a..486cd37 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,3 +1,8 @@ 
+2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
+
+	* graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
+	(cloog_matrix_nrows): New.
+
 2010-07-29  Sebastian Pop  <sebastian.pop@amd.com>
 
 	* gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
diff --git a/gcc/graphite-cloog-compat.h b/gcc/graphite-cloog-compat.h
index 03fc124..7f2db71 100644
--- a/gcc/graphite-cloog-compat.h
+++ b/gcc/graphite-cloog-compat.h
@@ -261,5 +261,15 @@  cloog_block_list_set_block (CloogBlockList *bl, CloogBlock *block)
 {
   bl->block = block;
 }
+
+static inline int cloog_matrix_ncolumns (CloogMatrix * m)
+{
+  return m->NbColumns;
+}
+
+static inline int cloog_matrix_nrows (CloogMatrix * m)
+{
+   return m->NbRows;
+}
 #endif /* CLOOG_ORG  */
 #endif /* GRAPHITE_CLOOG_COMPAT_H  */