class constraint_data
{
public:
- struct constraint_data *next_this_letter;
- struct constraint_data *next_textual;
+ class constraint_data *next_this_letter;
+ class constraint_data *next_textual;
const char *name;
const char *c_name; /* same as .name unless mangling is necessary */
file_location loc; /* location of definition */
/* Overview of all constraints beginning with a given letter. */
-static struct constraint_data *
+static class constraint_data *
constraints_by_letter_table[1<<CHAR_BIT];
/* For looking up all the constraints in the order that they appeared
in the machine description. */
-static struct constraint_data *first_constraint;
-static struct constraint_data **last_constraint_ptr = &first_constraint;
+static class constraint_data *first_constraint;
+static class constraint_data **last_constraint_ptr = &first_constraint;
#define FOR_ALL_CONSTRAINTS(iter_) \
for (iter_ = first_constraint; iter_; iter_ = iter_->next_textual)
rtx exp, bool is_memory, bool is_special_memory,
bool is_address, file_location loc)
{
- struct constraint_data *c, **iter, **slot;
+ class constraint_data *c, **iter, **slot;
const char *p;
bool need_mangled_name = false;
bool is_const_int;
}
- c = XOBNEW (rtl_obstack, struct constraint_data);
+ c = XOBNEW (rtl_obstack, class constraint_data);
c->name = name;
c->c_name = need_mangled_name ? mangle (name) : name;
c->loc = loc;
static void
choose_enum_order (void)
{
- struct constraint_data *c;
+ class constraint_data *c;
enum_order = XNEWVEC (const constraint_data *, num_constraints);
unsigned int next = 0;
for (i = 0; i < ARRAY_SIZE (constraints_by_letter_table); i++)
{
- struct constraint_data *c = constraints_by_letter_table[i];
+ class constraint_data *c = constraints_by_letter_table[i];
if (!c)
continue;
{
if (i != 0)
printf (",\n ");
- struct constraint_data *c = constraints_by_letter_table[i];
+ class constraint_data *c = constraints_by_letter_table[i];
if (!c)
printf ("CONSTRAINT__UNKNOWN");
else if (c->namelen == 1)
for (i = 0; i < ARRAY_SIZE (constraints_by_letter_table); i++)
{
- struct constraint_data *c = constraints_by_letter_table[i];
+ class constraint_data *c = constraints_by_letter_table[i];
if (!c
|| c->namelen == 1)
/* Constraints with multiple characters should have the same
length. */
{
- struct constraint_data *c2 = c->next_this_letter;
+ class constraint_data *c2 = c->next_this_letter;
size_t len = c->namelen;
while (c2)
{
static void
write_reg_class_for_constraint_1 (void)
{
- struct constraint_data *c;
+ class constraint_data *c;
puts ("enum reg_class\n"
"reg_class_for_constraint_1 (enum constraint_num c)\n"
static void
write_tm_constrs_h (void)
{
- struct constraint_data *c;
+ class constraint_data *c;
printf ("\
/* Generated automatically by the program '%s'\n\
static void
write_insn_const_int_ok_for_constraint (void)
{
- struct constraint_data *c;
+ class constraint_data *c;
puts ("bool\n"
"insn_const_int_ok_for_constraint (HOST_WIDE_INT ival, "