Add necessary accessors for CloogMatrix (CLOOG_ORG).
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Sep 2010 21:16:57 +0000 (21:16 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Sep 2010 21:16:57 +0000 (21:16 +0000)
2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>

* graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
(cloog_matrix_nrows): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164776 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ChangeLog.graphite
gcc/graphite-cloog-compat.h

index a5c2ff0..ebf7fdf 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
+
+       * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
+       (cloog_matrix_nrows): New.
+
 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
        * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
index 75252e4..1a1ff39 100644 (file)
@@ -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-08-11  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
        * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
index c39b18e..061aa47 100644 (file)
@@ -259,5 +259,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  */