2005-02-05 03:24:26 +01:00
|
|
|
//===- AlphaRegisterInfo.cpp - Alpha Register Information -------*- C++ -*-===//
|
2005-04-22 01:13:11 +02:00
|
|
|
//
|
2005-01-23 00:41:55 +01:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-22 01:13:11 +02:00
|
|
|
//
|
2005-01-23 00:41:55 +01:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2005-01-24 20:44:07 +01:00
|
|
|
// This file contains the Alpha implementation of the MRegisterInfo class.
|
2005-01-23 00:41:55 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#define DEBUG_TYPE "reginfo"
|
|
|
|
#include "Alpha.h"
|
|
|
|
#include "AlphaRegisterInfo.h"
|
|
|
|
#include "llvm/Constants.h"
|
|
|
|
#include "llvm/Type.h"
|
2005-04-13 19:17:28 +02:00
|
|
|
#include "llvm/Function.h"
|
2005-01-23 00:41:55 +01:00
|
|
|
#include "llvm/CodeGen/ValueTypes.h"
|
|
|
|
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
|
|
|
#include "llvm/CodeGen/MachineFunction.h"
|
|
|
|
#include "llvm/CodeGen/MachineFrameInfo.h"
|
|
|
|
#include "llvm/Target/TargetFrameInfo.h"
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
#include "llvm/Target/TargetOptions.h"
|
|
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
#include "llvm/Support/Debug.h"
|
|
|
|
#include "llvm/ADT/STLExtras.h"
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <iostream>
|
|
|
|
using namespace llvm;
|
|
|
|
|
2005-03-04 22:40:02 +01:00
|
|
|
//These describe LDAx
|
2005-03-29 21:24:04 +02:00
|
|
|
static const int IMM_LOW = -32768;
|
|
|
|
static const int IMM_HIGH = 32767;
|
2005-03-05 16:30:33 +01:00
|
|
|
static const int IMM_MULT = 65536;
|
2005-02-22 22:59:48 +01:00
|
|
|
|
|
|
|
static long getUpper16(long l)
|
|
|
|
{
|
2005-03-04 22:40:02 +01:00
|
|
|
long y = l / IMM_MULT;
|
|
|
|
if (l % IMM_MULT > IMM_HIGH)
|
2005-02-22 22:59:48 +01:00
|
|
|
++y;
|
|
|
|
return y;
|
|
|
|
}
|
2005-01-23 00:41:55 +01:00
|
|
|
|
2005-03-04 22:40:02 +01:00
|
|
|
static long getLower16(long l)
|
|
|
|
{
|
|
|
|
long h = getUpper16(l);
|
|
|
|
return l - h * IMM_MULT;
|
|
|
|
}
|
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
AlphaRegisterInfo::AlphaRegisterInfo()
|
|
|
|
: AlphaGenRegisterInfo(Alpha::ADJUSTSTACKDOWN, Alpha::ADJUSTSTACKUP)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static const TargetRegisterClass *getClass(unsigned SrcReg) {
|
|
|
|
if (Alpha::FPRCRegisterClass->contains(SrcReg))
|
|
|
|
return Alpha::FPRCRegisterClass;
|
|
|
|
assert(Alpha::GPRCRegisterClass->contains(SrcReg) && "Reg not FPR or GPR");
|
|
|
|
return Alpha::GPRCRegisterClass;
|
|
|
|
}
|
|
|
|
|
2005-04-22 01:13:11 +02:00
|
|
|
void
|
2005-01-23 00:41:55 +01:00
|
|
|
AlphaRegisterInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator MI,
|
|
|
|
unsigned SrcReg, int FrameIdx) const {
|
2005-01-26 22:54:09 +01:00
|
|
|
//std::cerr << "Trying to store " << getPrettyName(SrcReg) << " to " << FrameIdx << "\n";
|
2005-01-23 00:41:55 +01:00
|
|
|
//BuildMI(MBB, MI, Alpha::WTF, 0).addReg(SrcReg);
|
2005-02-01 21:35:57 +01:00
|
|
|
if (getClass(SrcReg) == Alpha::FPRCRegisterClass)
|
|
|
|
BuildMI(MBB, MI, Alpha::STT, 3).addReg(SrcReg).addFrameIndex(FrameIdx).addReg(Alpha::F31);
|
|
|
|
else if (getClass(SrcReg) == Alpha::GPRCRegisterClass)
|
|
|
|
BuildMI(MBB, MI, Alpha::STQ, 3).addReg(SrcReg).addFrameIndex(FrameIdx).addReg(Alpha::F31);
|
|
|
|
else
|
|
|
|
abort();
|
2005-01-23 00:41:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
AlphaRegisterInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator MI,
|
|
|
|
unsigned DestReg, int FrameIdx) const{
|
2005-01-26 22:54:09 +01:00
|
|
|
//std::cerr << "Trying to load " << getPrettyName(DestReg) << " to " << FrameIdx << "\n";
|
2005-02-01 21:35:57 +01:00
|
|
|
if (getClass(DestReg) == Alpha::FPRCRegisterClass)
|
|
|
|
BuildMI(MBB, MI, Alpha::LDT, 2, DestReg).addFrameIndex(FrameIdx).addReg(Alpha::F31);
|
|
|
|
else if (getClass(DestReg) == Alpha::GPRCRegisterClass)
|
|
|
|
BuildMI(MBB, MI, Alpha::LDQ, 2, DestReg).addFrameIndex(FrameIdx).addReg(Alpha::F31);
|
|
|
|
else
|
|
|
|
abort();
|
2005-01-23 00:41:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void AlphaRegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator MI,
|
|
|
|
unsigned DestReg, unsigned SrcReg,
|
|
|
|
const TargetRegisterClass *RC) const {
|
|
|
|
// std::cerr << "copyRegToReg " << DestReg << " <- " << SrcReg << "\n";
|
|
|
|
if (RC == Alpha::GPRCRegisterClass) {
|
|
|
|
BuildMI(MBB, MI, Alpha::BIS, 2, DestReg).addReg(SrcReg).addReg(SrcReg);
|
2005-01-26 22:54:09 +01:00
|
|
|
} else if (RC == Alpha::FPRCRegisterClass) {
|
|
|
|
BuildMI(MBB, MI, Alpha::CPYS, 2, DestReg).addReg(SrcReg).addReg(SrcReg);
|
2005-04-22 01:13:11 +02:00
|
|
|
} else {
|
2005-01-23 00:41:55 +01:00
|
|
|
std::cerr << "Attempt to copy register that is not GPR or FPR";
|
|
|
|
abort();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Stack Frame Processing methods
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// hasFP - Return true if the specified function should have a dedicated frame
|
|
|
|
// pointer register. This is true if the function has variable sized allocas or
|
|
|
|
// if frame pointer elimination is disabled.
|
|
|
|
//
|
|
|
|
static bool hasFP(MachineFunction &MF) {
|
|
|
|
MachineFrameInfo *MFI = MF.getFrameInfo();
|
|
|
|
return MFI->hasVarSizedObjects();
|
|
|
|
}
|
|
|
|
|
|
|
|
void AlphaRegisterInfo::
|
|
|
|
eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator I) const {
|
|
|
|
if (hasFP(MF)) {
|
|
|
|
// If we have a frame pointer, turn the adjcallstackup instruction into a
|
|
|
|
// 'sub ESP, <amt>' and the adjcallstackdown instruction into 'add ESP,
|
|
|
|
// <amt>'
|
|
|
|
MachineInstr *Old = I;
|
|
|
|
unsigned Amount = Old->getOperand(0).getImmedValue();
|
|
|
|
if (Amount != 0) {
|
|
|
|
// We need to keep the stack aligned properly. To do this, we round the
|
|
|
|
// amount of space needed for the outgoing arguments up to the next
|
|
|
|
// alignment boundary.
|
|
|
|
unsigned Align = MF.getTarget().getFrameInfo()->getStackAlignment();
|
|
|
|
Amount = (Amount+Align-1)/Align*Align;
|
|
|
|
|
2005-02-22 22:59:48 +01:00
|
|
|
MachineInstr *New;
|
|
|
|
if (Old->getOpcode() == Alpha::ADJUSTSTACKDOWN) {
|
2005-04-22 19:54:37 +02:00
|
|
|
New=BuildMI(Alpha::LDA, 2, Alpha::R30)
|
2005-02-22 22:59:48 +01:00
|
|
|
.addImm(-Amount).addReg(Alpha::R30);
|
|
|
|
} else {
|
2005-04-22 19:54:37 +02:00
|
|
|
assert(Old->getOpcode() == Alpha::ADJUSTSTACKUP);
|
|
|
|
New=BuildMI(Alpha::LDA, 2, Alpha::R30)
|
2005-02-22 22:59:48 +01:00
|
|
|
.addImm(Amount).addReg(Alpha::R30);
|
|
|
|
}
|
2005-04-22 01:13:11 +02:00
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
// Replace the pseudo instruction with a new instruction...
|
2005-02-22 22:59:48 +01:00
|
|
|
MBB.insert(I, New);
|
2005-01-23 00:41:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
MBB.erase(I);
|
|
|
|
}
|
|
|
|
|
2005-02-22 22:59:48 +01:00
|
|
|
//Alpha has a slightly funny stack:
|
2005-04-22 01:13:11 +02:00
|
|
|
//Args
|
2005-02-22 22:59:48 +01:00
|
|
|
//<- incoming SP
|
|
|
|
//fixed locals (and spills, callee saved, etc)
|
|
|
|
//<- FP
|
|
|
|
//variable locals
|
|
|
|
//<- SP
|
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
void
|
|
|
|
AlphaRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const {
|
2005-01-30 01:35:27 +01:00
|
|
|
unsigned i = 0;
|
|
|
|
MachineInstr &MI = *II;
|
|
|
|
MachineBasicBlock &MBB = *MI.getParent();
|
|
|
|
MachineFunction &MF = *MBB.getParent();
|
2005-02-22 22:59:48 +01:00
|
|
|
bool FP = hasFP(MF);
|
|
|
|
|
2005-01-30 01:35:27 +01:00
|
|
|
while (!MI.getOperand(i).isFrameIndex()) {
|
|
|
|
++i;
|
|
|
|
assert(i < MI.getNumOperands() && "Instr doesn't have FrameIndex operand!");
|
|
|
|
}
|
2005-01-23 00:41:55 +01:00
|
|
|
|
2005-01-30 01:35:27 +01:00
|
|
|
int FrameIndex = MI.getOperand(i).getFrameIndex();
|
2005-01-23 00:41:55 +01:00
|
|
|
|
2005-01-30 01:35:27 +01:00
|
|
|
// Add the base register of R30 (SP) or R15 (FP).
|
2005-02-22 22:59:48 +01:00
|
|
|
MI.SetMachineOperandReg(i + 1, FP ? Alpha::R15 : Alpha::R30);
|
2005-04-22 01:13:11 +02:00
|
|
|
|
2005-02-22 22:59:48 +01:00
|
|
|
// Now add the frame object offset to the offset from the virtual frame index.
|
2005-01-30 01:35:27 +01:00
|
|
|
int Offset = MF.getFrameInfo()->getObjectOffset(FrameIndex);
|
|
|
|
|
2005-02-22 22:59:48 +01:00
|
|
|
DEBUG(std::cerr << "FI: " << FrameIndex << " Offset: " << Offset << "\n");
|
|
|
|
|
2005-01-30 01:35:27 +01:00
|
|
|
Offset += MF.getFrameInfo()->getStackSize();
|
2005-04-22 01:13:11 +02:00
|
|
|
|
|
|
|
DEBUG(std::cerr << "Corrected Offset " << Offset <<
|
2005-02-22 22:59:48 +01:00
|
|
|
" for stack size: " << MF.getFrameInfo()->getStackSize() << "\n");
|
2005-01-30 01:35:27 +01:00
|
|
|
|
2005-03-04 22:40:02 +01:00
|
|
|
if (Offset > IMM_HIGH || Offset < IMM_LOW) {
|
2005-02-22 22:59:48 +01:00
|
|
|
//so in this case, we need to use a temporary register, and move the original
|
|
|
|
//inst off the SP/FP
|
|
|
|
//fix up the old:
|
|
|
|
MI.SetMachineOperandReg(i + 1, Alpha::R28);
|
2005-04-22 01:13:11 +02:00
|
|
|
MI.SetMachineOperandConst(i, MachineOperand::MO_SignExtendedImmed,
|
2005-02-22 22:59:48 +01:00
|
|
|
getLower16(Offset));
|
|
|
|
//insert the new
|
|
|
|
MachineInstr* nMI=BuildMI(Alpha::LDAH, 2, Alpha::R28)
|
|
|
|
.addImm(getUpper16(Offset)).addReg(FP ? Alpha::R15 : Alpha::R30);
|
2005-03-13 01:43:20 +01:00
|
|
|
MBB.insert(II, nMI);
|
2005-02-22 22:59:48 +01:00
|
|
|
} else {
|
|
|
|
MI.SetMachineOperandConst(i, MachineOperand::MO_SignExtendedImmed, Offset);
|
|
|
|
}
|
2005-01-23 00:41:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void AlphaRegisterInfo::emitPrologue(MachineFunction &MF) const {
|
|
|
|
MachineBasicBlock &MBB = MF.front(); // Prolog goes in entry BB
|
|
|
|
MachineBasicBlock::iterator MBBI = MBB.begin();
|
|
|
|
MachineFrameInfo *MFI = MF.getFrameInfo();
|
|
|
|
MachineInstr *MI;
|
2005-02-22 22:59:48 +01:00
|
|
|
bool FP = hasFP(MF);
|
2005-04-22 01:13:11 +02:00
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
//handle GOP offset
|
|
|
|
MI = BuildMI(Alpha::LDGP, 0);
|
|
|
|
MBB.insert(MBBI, MI);
|
2005-04-13 19:17:28 +02:00
|
|
|
//evil const_cast until MO stuff setup to handle const
|
|
|
|
MI = BuildMI(Alpha::ALTENT, 1).addGlobalAddress(const_cast<Function*>(MF.getFunction()), true);
|
|
|
|
MBB.insert(MBBI, MI);
|
2005-04-22 01:13:11 +02:00
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
// Get the number of bytes to allocate from the FrameInfo
|
2005-03-04 22:40:02 +01:00
|
|
|
long NumBytes = MFI->getStackSize();
|
2005-01-23 00:41:55 +01:00
|
|
|
|
2005-02-22 22:59:48 +01:00
|
|
|
if (MFI->hasCalls() && !FP) {
|
2005-04-22 01:13:11 +02:00
|
|
|
// We reserve argument space for call sites in the function immediately on
|
|
|
|
// entry to the current function. This eliminates the need for add/sub
|
2005-01-30 01:35:27 +01:00
|
|
|
// brackets around call sites.
|
2005-02-22 22:59:48 +01:00
|
|
|
//If there is a frame pointer, then we don't do this
|
2005-01-30 01:35:27 +01:00
|
|
|
NumBytes += MFI->getMaxCallFrameSize();
|
2005-04-22 01:13:11 +02:00
|
|
|
DEBUG(std::cerr << "Added " << MFI->getMaxCallFrameSize()
|
2005-02-24 19:36:32 +01:00
|
|
|
<< " to the stack due to calls\n");
|
2005-01-30 01:35:27 +01:00
|
|
|
}
|
|
|
|
|
2005-02-22 22:59:48 +01:00
|
|
|
if (FP)
|
|
|
|
NumBytes += 8; //reserve space for the old FP
|
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
// Do we need to allocate space on the stack?
|
|
|
|
if (NumBytes == 0) return;
|
|
|
|
|
|
|
|
// Update frame info to pretend that this is part of the stack...
|
|
|
|
MFI->setStackSize(NumBytes);
|
2005-02-22 22:59:48 +01:00
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
// adjust stack pointer: r30 -= numbytes
|
2005-03-04 22:40:02 +01:00
|
|
|
NumBytes = -NumBytes;
|
|
|
|
if (NumBytes >= IMM_LOW) {
|
|
|
|
MI=BuildMI(Alpha::LDA, 2, Alpha::R30).addImm(NumBytes).addReg(Alpha::R30);
|
2005-01-26 22:54:09 +01:00
|
|
|
MBB.insert(MBBI, MI);
|
2005-03-04 22:40:02 +01:00
|
|
|
} else if (getUpper16(NumBytes) >= IMM_LOW) {
|
|
|
|
MI=BuildMI(Alpha::LDAH, 2, Alpha::R30).addImm(getUpper16(NumBytes)).addReg(Alpha::R30);
|
2005-01-26 22:54:09 +01:00
|
|
|
MBB.insert(MBBI, MI);
|
2005-03-04 22:40:02 +01:00
|
|
|
MI=BuildMI(Alpha::LDA, 2, Alpha::R30).addImm(getLower16(NumBytes)).addReg(Alpha::R30);
|
2005-01-26 22:54:09 +01:00
|
|
|
MBB.insert(MBBI, MI);
|
|
|
|
} else {
|
2005-01-27 09:31:19 +01:00
|
|
|
std::cerr << "Too big a stack frame at " << NumBytes << "\n";
|
2005-01-26 22:54:09 +01:00
|
|
|
abort();
|
|
|
|
}
|
2005-02-22 22:59:48 +01:00
|
|
|
|
|
|
|
//now if we need to, save the old FP and set the new
|
|
|
|
if (FP)
|
|
|
|
{
|
|
|
|
MI=BuildMI(Alpha::STQ, 3).addReg(Alpha::R15).addImm(0).addReg(Alpha::R30);
|
|
|
|
MBB.insert(MBBI, MI);
|
|
|
|
//this must be the last instr in the prolog
|
|
|
|
MI=BuildMI(Alpha::BIS, 2, Alpha::R15).addReg(Alpha::R30).addReg(Alpha::R30);
|
|
|
|
MBB.insert(MBBI, MI);
|
|
|
|
}
|
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void AlphaRegisterInfo::emitEpilogue(MachineFunction &MF,
|
|
|
|
MachineBasicBlock &MBB) const {
|
|
|
|
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
|
|
|
MachineBasicBlock::iterator MBBI = prior(MBB.end());
|
|
|
|
MachineInstr *MI;
|
2005-04-22 19:54:37 +02:00
|
|
|
assert((MBBI->getOpcode() == Alpha::RET || MBBI->getOpcode() == Alpha::RETURN)
|
|
|
|
&& "Can only insert epilog into returning blocks");
|
2005-04-22 01:13:11 +02:00
|
|
|
|
2005-02-22 22:59:48 +01:00
|
|
|
bool FP = hasFP(MF);
|
2005-04-22 01:13:11 +02:00
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
// Get the number of bytes allocated from the FrameInfo...
|
2005-03-05 16:30:33 +01:00
|
|
|
long NumBytes = MFI->getStackSize();
|
2005-01-23 00:41:55 +01:00
|
|
|
|
2005-02-22 22:59:48 +01:00
|
|
|
//now if we need to, restore the old FP
|
|
|
|
if (FP)
|
|
|
|
{
|
2005-02-24 19:36:32 +01:00
|
|
|
//copy the FP into the SP (discards allocas)
|
|
|
|
MI=BuildMI(Alpha::BIS, 2, Alpha::R30).addReg(Alpha::R15).addReg(Alpha::R15);
|
|
|
|
MBB.insert(MBBI, MI);
|
|
|
|
//restore the FP
|
2005-02-22 22:59:48 +01:00
|
|
|
MI=BuildMI(Alpha::LDQ, 2, Alpha::R15).addImm(0).addReg(Alpha::R15);
|
|
|
|
MBB.insert(MBBI, MI);
|
|
|
|
}
|
|
|
|
|
2005-04-22 01:13:11 +02:00
|
|
|
if (NumBytes != 0)
|
2005-01-23 00:41:55 +01:00
|
|
|
{
|
2005-03-04 22:40:02 +01:00
|
|
|
if (NumBytes <= IMM_HIGH) {
|
2005-01-27 09:31:19 +01:00
|
|
|
MI=BuildMI(Alpha::LDA, 2, Alpha::R30).addImm(NumBytes).addReg(Alpha::R30);
|
|
|
|
MBB.insert(MBBI, MI);
|
2005-03-04 22:40:02 +01:00
|
|
|
} else if (getUpper16(NumBytes) <= IMM_HIGH) {
|
2005-02-22 22:59:48 +01:00
|
|
|
MI=BuildMI(Alpha::LDAH, 2, Alpha::R30).addImm(getUpper16(NumBytes)).addReg(Alpha::R30);
|
2005-01-27 09:31:19 +01:00
|
|
|
MBB.insert(MBBI, MI);
|
2005-02-22 22:59:48 +01:00
|
|
|
MI=BuildMI(Alpha::LDA, 2, Alpha::R30).addImm(getLower16(NumBytes)).addReg(Alpha::R30);
|
2005-01-27 09:31:19 +01:00
|
|
|
MBB.insert(MBBI, MI);
|
|
|
|
} else {
|
|
|
|
std::cerr << "Too big a stack frame at " << NumBytes << "\n";
|
|
|
|
abort();
|
|
|
|
}
|
2005-01-23 00:41:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "AlphaGenRegisterInfo.inc"
|
|
|
|
|
|
|
|
const TargetRegisterClass*
|
|
|
|
AlphaRegisterInfo::getRegClassForType(const Type* Ty) const {
|
|
|
|
switch (Ty->getTypeID()) {
|
|
|
|
default: assert(0 && "Invalid type to getClass!");
|
|
|
|
case Type::BoolTyID:
|
|
|
|
case Type::SByteTyID:
|
|
|
|
case Type::UByteTyID:
|
|
|
|
case Type::ShortTyID:
|
|
|
|
case Type::UShortTyID:
|
|
|
|
case Type::IntTyID:
|
|
|
|
case Type::UIntTyID:
|
|
|
|
case Type::PointerTyID:
|
|
|
|
case Type::LongTyID:
|
|
|
|
case Type::ULongTyID: return &GPRCInstance;
|
2005-04-22 01:13:11 +02:00
|
|
|
|
2005-01-23 00:41:55 +01:00
|
|
|
case Type::FloatTyID:
|
|
|
|
case Type::DoubleTyID: return &FPRCInstance;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string AlphaRegisterInfo::getPrettyName(unsigned reg)
|
|
|
|
{
|
|
|
|
std::string s(RegisterDescriptors[reg].Name);
|
|
|
|
return s;
|
|
|
|
}
|