24#ifndef GCC_ADDRESSES_H
25#define GCC_ADDRESSES_H
30 enum rtx_code outer_code ATTRIBUTE_UNUSED,
31 enum rtx_code index_code ATTRIBUTE_UNUSED,
34#ifdef INSN_BASE_REG_CLASS
35 return INSN_BASE_REG_CLASS (insn);
37#ifdef MODE_CODE_BASE_REG_CLASS
38 return MODE_CODE_BASE_REG_CLASS (
MACRO_MODE (mode), as, outer_code,
41#ifdef MODE_BASE_REG_REG_CLASS
42 if (index_code == REG)
43 return MODE_BASE_REG_REG_CLASS (
MACRO_MODE (mode));
45#ifdef MODE_BASE_REG_CLASS
46 return MODE_BASE_REG_CLASS (
MACRO_MODE (mode));
48 return BASE_REG_CLASS;
57#ifdef INSN_INDEX_REG_CLASS
58 return INSN_INDEX_REG_CLASS (insn);
60 return INDEX_REG_CLASS;
71 machine_mode mode ATTRIBUTE_UNUSED,
73 enum rtx_code outer_code ATTRIBUTE_UNUSED,
74 enum rtx_code index_code ATTRIBUTE_UNUSED,
77#ifdef REGNO_OK_FOR_INSN_BASE_P
78 return REGNO_OK_FOR_INSN_BASE_P (regno, insn);
80#ifdef REGNO_MODE_CODE_OK_FOR_BASE_P
81 return REGNO_MODE_CODE_OK_FOR_BASE_P (regno,
MACRO_MODE (mode), as,
82 outer_code, index_code);
84#ifdef REGNO_MODE_OK_FOR_REG_BASE_P
85 if (index_code == REG)
86 return REGNO_MODE_OK_FOR_REG_BASE_P (regno,
MACRO_MODE (mode));
88#ifdef REGNO_MODE_OK_FOR_BASE_P
89 return REGNO_MODE_OK_FOR_BASE_P (regno,
MACRO_MODE (mode));
91 return REGNO_OK_FOR_BASE_P (regno);
105 if (regno >= FIRST_PSEUDO_REGISTER &&
reg_renumber[regno] >= 0)
108 return ok_for_base_p_1 (regno, mode, as, outer_code, index_code, insn);
bool ok_for_base_p_1(unsigned regno, machine_mode mode, addr_space_t as, enum rtx_code outer_code, enum rtx_code index_code, rtx_insn *insn=NULL)
Definition addresses.h:70
enum reg_class index_reg_class(rtx_insn *insn=NULL)
Definition addresses.h:55
bool regno_ok_for_base_p(unsigned regno, machine_mode mode, addr_space_t as, enum rtx_code outer_code, enum rtx_code index_code, rtx_insn *insn=NULL)
Definition addresses.h:101
enum reg_class base_reg_class(machine_mode mode, addr_space_t as, enum rtx_code outer_code, enum rtx_code index_code, rtx_insn *insn=NULL)
Definition addresses.h:28
unsigned char addr_space_t
Definition coretypes.h:184
short * reg_renumber
Definition ira.cc:2478
#define MACRO_MODE(MODE)
Definition machmode.h:885
rtx_code
Definition rtl.h:48
#define NULL
Definition system.h:50