From patchwork Wed Aug 11 18:30:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/3] Add necessary accessors for CloogMatrix (CLOOG_ORG). From: =?utf-8?q?Andreas_Simb=C3=BCrger?= X-Patchwork-Id: 61498 Message-Id: <1281551412-9101-2-git-send-email-simbuerg@googlemail.com> To: gcc-graphite@googlegroups.com Cc: gcc-patches@gcc.gnu.org, =?UTF-8?q?Andreas=20Simb=C3=BCrger?= Date: Wed, 11 Aug 2010 20:30:10 +0200 2010-08-11 Andreas Simbuerger * 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(-) 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 + + * graphite-cloog-compat.h (cloog_matrix_ncolumns): New. + (cloog_matrix_nrows): New. + 2010-07-29 Sebastian Pop * 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 */