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
This commit is contained in:
parent
478167be62
commit
80994c4654
|
@ -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 */);
|
Loading…
Reference in New Issue