From patchwork Wed Jan 13 17:39:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jambor X-Patchwork-Id: 567086 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9D57D1402C4 for ; Thu, 14 Jan 2016 04:55:41 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Yluo9gsK; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :resent-from:resent-date:resent-message-id:resent-to:message-id :date:from:to:subject:mime-version:content-type:in-reply-to; q= dns; s=default; b=XdYQ7pseztp3tJTwJgY/YvM4SLh1CAXsd/r/SVapyBmvmN yF/l7zlqVb7u/oivcObsdGDYDHbxdaOxw7VBEFOhyRkdrTNwARZGyHYy1CvEUeUs L1Kp9vQfC8ACuio0mGgBhvxv4eTlFVy/YWCOxLkaMABZtKlk/F2LZTSwVveAk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :resent-from:resent-date:resent-message-id:resent-to:message-id :date:from:to:subject:mime-version:content-type:in-reply-to; s= default; bh=j54G2NVVtlE4Q0WtV67lylyLPEk=; b=Yluo9gsKmnuwMqmN+mTA FiwfYw4LUqNIutKDBX2wsD8JLo8AZQSj3NxgrPxbXV/6Yya4OEdzza5hLCZxPF2y B0MfdesxPyd+JmxBFzp03lhYqxR1pIyRwcn75gaWTNd0+JvsN4WCSNiiltv4Ph9T uJlUQuFE+rcCFx2mxlYDiDw= Received: (qmail 118727 invoked by alias); 13 Jan 2016 17:55:17 -0000 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 Received: (qmail 118646 invoked by uid 89); 13 Jan 2016 17:55:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00, SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=4716, Schedule, HX-HELO:eggs.gnu.org, Hx-spam-relays-external:208.118.235.92 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 13 Jan 2016 17:55:12 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJPdS-0006SJ-39 for gcc-patches@gcc.gnu.org; Wed, 13 Jan 2016 12:55:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:60250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJPdR-0006SC-Sk for gcc-patches@gcc.gnu.org; Wed, 13 Jan 2016 12:55:06 -0500 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 18210ACD0 for ; Wed, 13 Jan 2016 17:55:03 +0000 (UTC) Resent-From: Martin Jambor Resent-Date: Wed, 13 Jan 2016 18:55:03 +0100 Resent-Message-ID: <20160113175503.GG5905@virgil.suse.cz> Resent-To: GCC Patches Message-Id: <20160113173925.710238604@virgil.suse.cz> User-Agent: quilt/0.64 Date: Wed, 13 Jan 2016 18:39:31 +0100 From: Martin Jambor To: GCC Patches Subject: [hsa merge 06/10] Pass manager changes MIME-Version: 1.0 Content-Disposition: inline; filename=pass-manager.diff In-Reply-To: <20160113173925.220029649@virgil.suse.cz> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-IsSubscribed: yes Hi, the pass manager changes required for HSA have already been committed to trunk so all that remains are these additions to the pass pipeline. This bit has already been approved by Richi in https://gcc.gnu.org/ml/gcc-patches/2015-12/msg00996.html Thanks, Martin 2016-01-13 Martin Jambor Martin Liska * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail. * tree-pass.h (make_pass_gen_hsail): Declare. (make_pass_ipa_hsa): Likewise. diff --git a/gcc/passes.def b/gcc/passes.def index c593851..a6a1719 100644 --- a/gcc/passes.def +++ b/gcc/passes.def @@ -151,6 +151,7 @@ along with GCC; see the file COPYING3. If not see NEXT_PASS (pass_ipa_cp); NEXT_PASS (pass_ipa_cdtor_merge); NEXT_PASS (pass_target_clone); + NEXT_PASS (pass_ipa_hsa); NEXT_PASS (pass_ipa_inline); NEXT_PASS (pass_ipa_pure_const); NEXT_PASS (pass_ipa_reference); @@ -388,6 +389,7 @@ along with GCC; see the file COPYING3. If not see NEXT_PASS (pass_nrv); NEXT_PASS (pass_cleanup_cfg_post_optimizing); NEXT_PASS (pass_warn_function_noreturn); + NEXT_PASS (pass_gen_hsail); NEXT_PASS (pass_expand); diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index e8e8e48..b942a01 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -471,6 +471,7 @@ extern gimple_opt_pass *make_pass_sanopt (gcc::context *ctxt); extern gimple_opt_pass *make_pass_oacc_kernels (gcc::context *ctxt); extern simple_ipa_opt_pass *make_pass_ipa_oacc (gcc::context *ctxt); extern simple_ipa_opt_pass *make_pass_ipa_oacc_kernels (gcc::context *ctxt); +extern gimple_opt_pass *make_pass_gen_hsail (gcc::context *ctxt); /* IPA Passes */ extern simple_ipa_opt_pass *make_pass_ipa_lower_emutls (gcc::context *ctxt); @@ -495,6 +496,7 @@ extern ipa_opt_pass_d *make_pass_ipa_cp (gcc::context *ctxt); extern ipa_opt_pass_d *make_pass_ipa_icf (gcc::context *ctxt); extern ipa_opt_pass_d *make_pass_ipa_devirt (gcc::context *ctxt); extern ipa_opt_pass_d *make_pass_ipa_reference (gcc::context *ctxt); +extern ipa_opt_pass_d *make_pass_ipa_hsa (gcc::context *ctxt); extern ipa_opt_pass_d *make_pass_ipa_pure_const (gcc::context *ctxt); extern simple_ipa_opt_pass *make_pass_ipa_pta (gcc::context *ctxt); extern simple_ipa_opt_pass *make_pass_ipa_tm (gcc::context *ctxt);