Mercurial > hg > CbC > CbC_gcc
annotate gcc/resource.h @ 92:689bf9141c8c
add conv1/benchmark.sh
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 04 Jan 2012 02:15:01 +0900 |
parents | f6334be47118 |
children | 04ced10e8804 |
rev | line source |
---|---|
0 | 1 /* Definitions for computing resource usage of specific insns. |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
2 Copyright (C) 1999, 2003, 2004, 2006, 2007, 2009, 2010 |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
3 Free Software Foundation, Inc. |
0 | 4 |
5 This file is part of GCC. | |
6 | |
7 GCC is free software; you can redistribute it and/or modify it under | |
8 the terms of the GNU General Public License as published by the Free | |
9 Software Foundation; either version 3, or (at your option) any later | |
10 version. | |
11 | |
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 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/>. */ | |
20 | |
21 #ifndef GCC_RESOURCE_H | |
22 #define GCC_RESOURCE_H | |
23 | |
24 #include "hard-reg-set.h" | |
25 #include "df.h" | |
26 | |
27 /* Macro to clear all resources. */ | |
28 #define CLEAR_RESOURCE(RES) \ | |
29 do { (RES)->memory = (RES)->unch_memory = (RES)->volatil = (RES)->cc = 0; \ | |
30 CLEAR_HARD_REG_SET ((RES)->regs); } while (0) | |
31 | |
32 /* The resources used by a given insn. */ | |
33 struct resources | |
34 { | |
35 char memory; /* Insn sets or needs a memory location. */ | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
36 char unch_memory; /* Insn sets or needs an "unchanging" MEM. */ |
0 | 37 char volatil; /* Insn sets or needs a volatile memory loc. */ |
38 char cc; /* Insn sets or needs the condition codes. */ | |
39 HARD_REG_SET regs; /* Which registers are set or needed. */ | |
40 }; | |
41 | |
42 /* The kinds of rtl mark_*_resources will consider */ | |
43 enum mark_resource_type | |
44 { | |
45 MARK_SRC_DEST = 0, | |
46 MARK_SRC_DEST_CALL = 1 | |
47 }; | |
48 | |
49 extern void mark_target_live_regs (rtx, rtx, struct resources *); | |
50 extern void mark_set_resources (rtx, struct resources *, int, | |
51 enum mark_resource_type); | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
52 extern void mark_referenced_resources (rtx, struct resources *, bool); |
0 | 53 extern void clear_hashed_info_for_insn (rtx); |
54 extern void incr_ticks_for_insn (rtx); | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
55 extern void mark_end_of_function_resources (rtx, bool); |
0 | 56 extern void init_resource_info (rtx); |
57 extern void free_resource_info (void); | |
58 | |
59 #endif /* GCC_RESOURCE_H */ |