#include "IA64GenRegisterInfo.inc"
-const TargetRegisterClass*
-IA64RegisterInfo::getRegClassForType(const Type* Ty) const {
- switch (Ty->getTypeID()) {
- default: assert(0 && "Invalid type to getClass!");
- case Type::LongTyID:
- case Type::ULongTyID:
- case Type::BoolTyID:
- case Type::SByteTyID:
- case Type::UByteTyID:
- case Type::ShortTyID:
- case Type::UShortTyID:
- case Type::IntTyID:
- case Type::UIntTyID:
- case Type::PointerTyID: return &GRInstance;
-
- case Type::FloatTyID:
- case Type::DoubleTyID: return &FPInstance;
- }
-}
-
-
struct IA64RegisterInfo : public IA64GenRegisterInfo {
IA64RegisterInfo();
- const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
/// Code Generation virtual methods...
void storeRegToStackSlot(MachineBasicBlock &MBB,