From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111551 invoked by alias); 9 Aug 2017 08:42:42 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 110090 invoked by uid 89); 9 Aug 2017 08:42:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:942, H*F:D*nz, Hx-spam-relays-external:esmtpa, H*RU:esmtpa X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: smtp-2.orcon.net.nz Received: from smtp-2.orcon.net.nz (HELO smtp-2.orcon.net.nz) (60.234.4.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Aug 2017 08:42:38 +0000 Received: from [121.99.228.40] (port=38062 helo=tower) by smtp-2.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1dfMZU-0003a4-Jl; Wed, 09 Aug 2017 20:42:32 +1200 Date: Sun, 01 Jan 2017 00:00:00 -0000 From: Michael Cree To: David Malcolm Cc: jit@gcc.gnu.org Subject: Re: does libgccjit support vector types? Message-ID: <20170809084227.s23odfpcdyjvrtin@tower> References: <20170807081235.oujwzxfp6vujlg7f@tower> <1502116137.2723.7.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1502116137.2723.7.camel@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-IsSubscribed: yes X-SW-Source: 2017-q3/txt/msg00004.txt.bz2 On Mon, Aug 07, 2017 at 10:28:57AM -0400, David Malcolm wrote: > On Mon, 2017-08-07 at 20:12 +1200, Michael Cree wrote: > > Hi Michael > > > I am wondering if libgccjit supports vector types, i.e., can one > > attach attribute __vector_size__ to the base types? There does not > > seem to be any indication of this in the manual. > > Currently this isn't supported. > > Is this a blocker for you using libgccjit? Yeah, it is. The idea is to generate image processing operators on the fly. There are opportunities for various optimisations that can only be decided on at runtime. > What would the ideal API > look like? > > Maybe something like: > > extern gcc_jit_type * > gcc_jit_type_get_vector (gcc_jit_type *type, unsigned nunits); > > with various requirements (type must be integral/floating point; nunits > must be a power of two). I suspect that would do the job nicely. Cheers Michael.