diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-08 15:50:50 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-08 15:50:50 +0200 |
commit | 80994c4654c32987e32430121e442df861226966 (patch) | |
tree | d0cc5e44ba938d606ad3daf9de36fd79d3cc9d04 /gcc | |
parent | 478167be6297adb9774abfea589b6b1d0a7f227e (diff) | |
download | gcc-80994c4654c32987e32430121e442df861226966.zip gcc-80994c4654c32987e32430121e442df861226966.tar.gz gcc-80994c4654c32987e32430121e442df861226966.tar.bz2 |
gen-pass-instances.awk: Rewritten.
* gen-pass-instances.awk: Rewritten.
* Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
$(PASSES_EXTRA) after passes.def to the script.
* config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
* config/i386/i386-passes.def: New file.
* config/i386/i386-protos.h (make_pass_insert_vzeroupper,
make_pass_stv): Declare.
* config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
false.
(pass_stv::gate): Depending on timode_p member require TARGET_64BIT
or !TARGET_64BIT.
(pass_stv::clone, pass_stv::set_pass_param): New methods.
(pass_stv::timode_p): New non-static data member.
(ix86_option_override): Don't register passes here.
From-SVN: r240888
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/i386-passes.def | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/config/i386/i386-passes.def b/gcc/config/i386/i386-passes.def new file mode 100644 index 0000000..3d2cb5d --- /dev/null +++ b/gcc/config/i386/i386-passes.def @@ -0,0 +1,31 @@ +/* Description of target passes for IA-32 + Copyright (C) 2016 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 3, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +<http://www.gnu.org/licenses/>. */ + +/* + Macros that can be used in this file: + INSERT_PASS_AFTER (PASS, INSTANCE, TGT_PASS) + INSERT_PASS_BEFORE (PASS, INSTANCE, TGT_PASS) + REPLACE_PASS (PASS, INSTANCE, TGT_PASS) + */ + + INSERT_PASS_AFTER (pass_reload, 1, pass_insert_vzeroupper); + INSERT_PASS_AFTER (pass_combine, 1, pass_stv, false /* timode_p */); + /* Run the 64-bit STV pass before the CSE pass so that CONST0_RTX and + CONSTM1_RTX generated by the STV pass can be CSEed. */ + INSERT_PASS_BEFORE (pass_cse2, 1, pass_stv, true /* timode_p */); |