From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63544 invoked by alias); 20 Oct 2015 20:51:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 63533 invoked by uid 89); 20 Oct 2015 20:51:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 20 Oct 2015 20:51:31 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 1FE5631ACA5; Tue, 20 Oct 2015 20:51:30 +0000 (UTC) Received: from localhost.localdomain (vpn1-4-114.ams2.redhat.com [10.36.4.114]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9KKpSw1021139; Tue, 20 Oct 2015 16:51:28 -0400 Subject: Re: [gomp4 03/14] nvptx: expand support for address spaces To: Alexander Monakov , gcc-patches@gcc.gnu.org References: <1445366076-16082-1-git-send-email-amonakov@ispras.ru> <1445366076-16082-4-git-send-email-amonakov@ispras.ru> Cc: Jakub Jelinek , Dmitry Melnik From: Bernd Schmidt Message-ID: <5626A94F.10509@redhat.com> Date: Tue, 20 Oct 2015 20:56:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1445366076-16082-4-git-send-email-amonakov@ispras.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg01964.txt.bz2 On 10/20/2015 08:34 PM, Alexander Monakov wrote: > This allows to emit decls in 'shared' memory from the middle-end. > > * config/nvptx/nvptx.c (nvptx_legitimate_address_p): Adjust prototype. > (nvptx_section_for_decl): If type of decl has a specific address > space, return it. > (nvptx_addr_space_from_address): Ditto. > (TARGET_ADDR_SPACE_POINTER_MODE): Define. > (TARGET_ADDR_SPACE_ADDRESS_MODE): Ditto. > (TARGET_ADDR_SPACE_SUBSET_P): Ditto. > (TARGET_ADDR_SPACE_CONVERT): Ditto. > (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Ditto. Not a fan of this I'm afraid. I used to have address space support in the nvptx backend, but the middle-end was too broken for it to work, so I made nvptx deal with all the address space complications internally. Is there a reason why this approach can't work for what you want to do? (Also, where are you using this?) Bernd