]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/nds32/nds32-fp-as-gp.c
gimple-predict.h: New file.
[thirdparty/gcc.git] / gcc / config / nds32 / nds32-fp-as-gp.c
CommitLineData
c0c935b5 1/* The fp-as-gp pass of Andes NDS32 cpu for GNU compiler
5624e564 2 Copyright (C) 2012-2015 Free Software Foundation, Inc.
c0c935b5
CJW
3 Contributed by Andes Technology Corporation.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 3, or (at your
10 option) any later version.
11
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
17bf6d25
CJW
20
21/* ------------------------------------------------------------------------ */
22
23#include "config.h"
24#include "system.h"
25#include "coretypes.h"
c7131fb2 26#include "backend.h"
9fdcd34e 27#include "cfghooks.h"
17bf6d25 28#include "tree.h"
c7131fb2
AM
29#include "rtl.h"
30#include "df.h"
31#include "alias.h"
17bf6d25
CJW
32#include "stor-layout.h"
33#include "varasm.h"
34#include "calls.h"
17bf6d25 35#include "regs.h"
17bf6d25
CJW
36#include "insn-config.h" /* Required by recog.h. */
37#include "conditions.h"
38#include "output.h"
39#include "insn-attr.h" /* For DFA state_t. */
40#include "insn-codes.h" /* For CODE_FOR_xxx. */
41#include "reload.h" /* For push_reload(). */
42#include "flags.h"
36566b39
PK
43#include "insn-config.h"
44#include "expmed.h"
45#include "dojump.h"
46#include "explow.h"
47#include "emit-rtl.h"
48#include "stmt.h"
17bf6d25
CJW
49#include "expr.h"
50#include "recog.h"
51#include "diagnostic-core.h"
60393bbc
AM
52#include "cfgrtl.h"
53#include "cfganal.h"
54#include "lcm.h"
55#include "cfgbuild.h"
56#include "cfgcleanup.h"
17bf6d25
CJW
57#include "tm_p.h"
58#include "tm-constrs.h"
59#include "optabs.h" /* For GEN_FCN. */
60#include "target.h"
17bf6d25 61#include "langhooks.h" /* For add_builtin_function(). */
17bf6d25
CJW
62#include "builtins.h"
63
64/* ------------------------------------------------------------------------ */
65
17bf6d25
CJW
66/* Function to determine whether it is worth to do fp_as_gp optimization.
67 Return 0: It is NOT worth to do fp_as_gp optimization.
68 Return 1: It is APPROXIMATELY worth to do fp_as_gp optimization.
69 Note that if it is worth to do fp_as_gp optimization,
70 we MUST set FP_REGNUM ever live in this function. */
71int
72nds32_fp_as_gp_check_available (void)
73{
17bf6d25
CJW
74 /* By default we return 0. */
75 return 0;
76}
77
78/* ------------------------------------------------------------------------ */