]> gcc.gnu.org Git - gcc.git/blame - gcc/resource.h
reload.c: PROTO -> PARAMS.
[gcc.git] / gcc / resource.h
CommitLineData
ca545bb5
BM
1/* Definitions for computing resource usage of specific insns.
2 Copyright (C) 1999 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU CC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
20
21/* Macro to clear all resources. */
22#define CLEAR_RESOURCE(RES) \
23 do { (RES)->memory = (RES)->unch_memory = (RES)->volatil = (RES)->cc = 0; \
24 CLEAR_HARD_REG_SET ((RES)->regs); } while (0)
25
26/* The resources used by a given insn. */
27struct resources
28{
29 char memory; /* Insn sets or needs a memory location. */
30 char unch_memory; /* Insn sets of needs a "unchanging" MEM. */
31 char volatil; /* Insn sets or needs a volatile memory loc. */
32 char cc; /* Insn sets or needs the condition codes. */
33 HARD_REG_SET regs; /* Which registers are set or needed. */
34};
35
cdadb1dd
KG
36extern void mark_target_live_regs PARAMS ((rtx, rtx, struct resources *));
37extern void mark_set_resources PARAMS ((rtx, struct resources *, int,
ca545bb5 38 int));
cdadb1dd
KG
39extern void mark_referenced_resources PARAMS ((rtx, struct resources *, int));
40extern void clear_hashed_info_for_insn PARAMS ((rtx));
41extern void incr_ticks_for_insn PARAMS ((rtx));
42extern void mark_end_of_function_resources PARAMS ((rtx, int));
43extern void init_resource_info PARAMS ((rtx));
44extern void free_resource_info PARAMS ((void));
45extern rtx find_free_register PARAMS ((rtx, rtx, const char *, int,
ca545bb5 46 HARD_REG_SET *));
cdadb1dd 47extern int reg_dead_p PARAMS ((rtx, rtx));
This page took 0.295635 seconds and 5 git commands to generate.