Revert array initialization regclass change so that the initialization stays static, not runtime.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2009-09-11 20:13:17 +00:00
parent e11a8f565c
commit 82b3c2e404

View File

@ -164,46 +164,42 @@ ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
const TargetRegisterClass* const *
ARMBaseRegisterInfo::getCalleeSavedRegClasses(const MachineFunction *MF) const {
static const TargetRegisterClass * const CalleeSavedRegClasses[] = {
ARM::GPRRegisterClass, ARM::GPRRegisterClass, ARM::GPRRegisterClass,
ARM::GPRRegisterClass, ARM::GPRRegisterClass, ARM::GPRRegisterClass,
ARM::GPRRegisterClass, ARM::GPRRegisterClass, ARM::GPRRegisterClass,
&ARM::GPRRegClass, &ARM::GPRRegClass, &ARM::GPRRegClass,
&ARM::GPRRegClass, &ARM::GPRRegClass, &ARM::GPRRegClass,
&ARM::GPRRegClass, &ARM::GPRRegClass, &ARM::GPRRegClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass, ARM::DPRRegisterClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass, ARM::DPRRegisterClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass,
&ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass,
&ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass,
0
};
static const TargetRegisterClass * const ThumbCalleeSavedRegClasses[] = {
ARM::GPRRegisterClass, ARM::GPRRegisterClass, ARM::GPRRegisterClass,
ARM::GPRRegisterClass, ARM::GPRRegisterClass, ARM::tGPRRegisterClass,
ARM::tGPRRegisterClass,ARM::tGPRRegisterClass,ARM::tGPRRegisterClass,
&ARM::GPRRegClass, &ARM::GPRRegClass, &ARM::GPRRegClass,
&ARM::GPRRegClass, &ARM::GPRRegClass, &ARM::tGPRRegClass,
&ARM::tGPRRegClass,&ARM::tGPRRegClass,&ARM::tGPRRegClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass, ARM::DPRRegisterClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass, ARM::DPRRegisterClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass,
&ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass,
&ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass,
0
};
static const TargetRegisterClass * const DarwinCalleeSavedRegClasses[] = {
ARM::GPRRegisterClass, ARM::GPRRegisterClass, ARM::GPRRegisterClass,
ARM::GPRRegisterClass, ARM::GPRRegisterClass, ARM::GPRRegisterClass,
ARM::GPRRegisterClass, ARM::GPRRegisterClass,
&ARM::GPRRegClass, &ARM::GPRRegClass, &ARM::GPRRegClass,
&ARM::GPRRegClass, &ARM::GPRRegClass, &ARM::GPRRegClass,
&ARM::GPRRegClass, &ARM::GPRRegClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass, ARM::DPRRegisterClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass, ARM::DPRRegisterClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass,
&ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass,
&ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass,
0
};
static const TargetRegisterClass * const DarwinThumbCalleeSavedRegClasses[] ={
ARM::GPRRegisterClass, ARM::tGPRRegisterClass, ARM::tGPRRegisterClass,
ARM::tGPRRegisterClass, ARM::tGPRRegisterClass, ARM::GPRRegisterClass,
ARM::GPRRegisterClass, ARM::GPRRegisterClass,
&ARM::GPRRegClass, &ARM::tGPRRegClass, &ARM::tGPRRegClass,
&ARM::tGPRRegClass, &ARM::tGPRRegClass, &ARM::GPRRegClass,
&ARM::GPRRegClass, &ARM::GPRRegClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass, ARM::DPRRegisterClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass, ARM::DPRRegisterClass,
ARM::DPRRegisterClass, ARM::DPRRegisterClass,
&ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass,
&ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass, &ARM::DPRRegClass,
0
};