OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [resource.h] - Blame information for rev 20

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Definitions for computing resource usage of specific insns.
2
   Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
3
 
4
This file is part of GCC.
5
 
6
GCC is free software; you can redistribute it and/or modify it under
7
the terms of the GNU General Public License as published by the Free
8
Software Foundation; either version 2, or (at your option) any later
9
version.
10
 
11
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GCC; see the file COPYING.  If not, write to the Free
18
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
19
02110-1301, USA.  */
20
 
21
#ifndef GCC_RESOURCE_H
22
#define GCC_RESOURCE_H
23
 
24
#include "hard-reg-set.h"
25
 
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
 
31
/* The resources used by a given insn.  */
32
struct 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
 
41
/* The kinds of rtl mark_*_resources will consider */
42
enum mark_resource_type
43
{
44
  MARK_SRC_DEST = 0,
45
  MARK_SRC_DEST_CALL = 1
46
};
47
 
48
extern void mark_target_live_regs (rtx, rtx, struct resources *);
49
extern void mark_set_resources (rtx, struct resources *, int,
50
                                enum mark_resource_type);
51
extern void mark_referenced_resources (rtx, struct resources *, int);
52
extern void clear_hashed_info_for_insn (rtx);
53
extern void incr_ticks_for_insn (rtx);
54
extern void mark_end_of_function_resources (rtx, int);
55
extern void init_resource_info (rtx);
56
extern void free_resource_info (void);
57
 
58
#endif /* GCC_RESOURCE_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.