(mark_user_reg): New function.

From-SVN: r12869
This commit is contained in:
Richard Kenner 1996-09-29 19:05:36 -04:00
parent 50dc6373e5
commit 754fdcca7a
1 changed files with 17 additions and 0 deletions

View File

@ -540,6 +540,23 @@ gen_reg_rtx (mode)
return val;
}
/* Identify REG (which may be a CONCAT) as a user register. */
void
mark_user_reg (reg)
rtx reg;
{
if (GET_CODE (reg) == CONCAT)
{
REG_USERVAR_P (XEXP (reg, 0)) = 1;
REG_USERVAR_P (XEXP (reg, 1)) = 1;
}
else if (GET_CODE (reg) == REG)
REG_USERVAR_P (reg) = 1;
else
abort ();
}
/* Identify REG as a probable pointer register and show its alignment
as ALIGN, if nonzero. */