]> gcc.gnu.org Git - gcc.git/blame - gcc/resource.h
tree-ssa-operands.c (pop_stmt_changes): Remove automatic renaming code.
[gcc.git] / gcc / resource.h
CommitLineData
ca545bb5 1/* Definitions for computing resource usage of specific insns.
6fb5fa3c 2 Copyright (C) 1999, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
ca545bb5 3
1322177d 4This file is part of GCC.
ca545bb5 5
1322177d
LB
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
9dcd6f09 8Software Foundation; either version 3, or (at your option) any later
1322177d 9version.
ca545bb5 10
1322177d
LB
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
ca545bb5
BM
15
16You should have received a copy of the GNU General Public License
9dcd6f09
NC
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
ca545bb5 19
59587b18
JQ
20#ifndef GCC_RESOURCE_H
21#define GCC_RESOURCE_H
22
23#include "hard-reg-set.h"
6fb5fa3c 24#include "df.h"
59587b18 25
ca545bb5
BM
26/* Macro to clear all resources. */
27#define CLEAR_RESOURCE(RES) \
28 do { (RES)->memory = (RES)->unch_memory = (RES)->volatil = (RES)->cc = 0; \
29 CLEAR_HARD_REG_SET ((RES)->regs); } while (0)
30
2ba84f36 31/* The resources used by a given insn. */
ca545bb5
BM
32struct resources
33{
34 char memory; /* Insn sets or needs a memory location. */
35 char unch_memory; /* Insn sets of needs a "unchanging" MEM. */
36 char volatil; /* Insn sets or needs a volatile memory loc. */
37 char cc; /* Insn sets or needs the condition codes. */
38 HARD_REG_SET regs; /* Which registers are set or needed. */
39};
40
73780b74
SC
41/* The kinds of rtl mark_*_resources will consider */
42enum mark_resource_type
43{
44 MARK_SRC_DEST = 0,
73fb6466 45 MARK_SRC_DEST_CALL = 1
73780b74
SC
46};
47
0c20a65f
AJ
48extern void mark_target_live_regs (rtx, rtx, struct resources *);
49extern void mark_set_resources (rtx, struct resources *, int,
50 enum mark_resource_type);
51extern void mark_referenced_resources (rtx, struct resources *, int);
52extern void clear_hashed_info_for_insn (rtx);
53extern void incr_ticks_for_insn (rtx);
54extern void mark_end_of_function_resources (rtx, int);
55extern void init_resource_info (rtx);
56extern void free_resource_info (void);
59587b18
JQ
57
58#endif /* GCC_RESOURCE_H */
This page took 3.557811 seconds and 5 git commands to generate.