From patchwork Wed Aug 11 18:30:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Simb=C3=BCrger?= X-Patchwork-Id: 61498 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 6FEF6B70E0 for ; Thu, 12 Aug 2010 04:30:49 +1000 (EST) Received: (qmail 15605 invoked by alias); 11 Aug 2010 18:30:46 -0000 Received: (qmail 15515 invoked by uid 22791); 11 Aug 2010 18:30:45 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ey0-f175.google.com (HELO mail-ey0-f175.google.com) (209.85.215.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Aug 2010 18:30:40 +0000 Received: by eyx24 with SMTP id 24so262115eyx.20 for ; Wed, 11 Aug 2010 11:30:38 -0700 (PDT) Received: by 10.213.48.193 with SMTP id s1mr6200420ebf.20.1281551437779; Wed, 11 Aug 2010 11:30:37 -0700 (PDT) Received: from simbuerg@googlemail.com (dslb-088-075-197-233.pools.arcor-ip.net [88.75.197.233]) by mx.google.com with ESMTPS id z55sm609939eeh.15.2010.08.11.11.30.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Aug 2010 11:30:36 -0700 (PDT) Received: by simbuerg@googlemail.com (sSMTP sendmail emulation); Wed, 11 Aug 2010 20:30:21 +0200 From: =?UTF-8?q?Andreas=20Simb=C3=BCrger?= To: gcc-graphite@googlegroups.com Cc: gcc-patches@gcc.gnu.org, =?UTF-8?q?Andreas=20Simb=C3=BCrger?= Subject: [PATCH 1/3] Add necessary accessors for CloogMatrix (CLOOG_ORG). Date: Wed, 11 Aug 2010 20:30:10 +0200 Message-Id: <1281551412-9101-2-git-send-email-simbuerg@googlemail.com> In-Reply-To: References: X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 */