mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Moved InsertCallerSaveInstr to the SparcRegInfo.cpp and made machine independent
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -166,13 +166,13 @@ public:
|
||||
|| getDescriptor(opCode).iclass & M_PREFETCH_FLAG
|
||||
|| getDescriptor(opCode).iclass & M_STORE_FLAG;
|
||||
}
|
||||
bool isDummyPhiInstr(MachineOpCode opCode) const {
|
||||
bool isDummyPhiInstr(const MachineOpCode opCode) const {
|
||||
return getDescriptor(opCode).iclass & M_DUMMY_PHI_FLAG;
|
||||
}
|
||||
|
||||
|
||||
// delete this later *******
|
||||
bool isPhi(MachineOpCode opCode) { return isDummyPhiInstr(opCode); }
|
||||
bool isPhi(const MachineOpCode opCode) { return isDummyPhiInstr(opCode); }
|
||||
|
||||
|
||||
// Check if an instruction can be issued before its operands are ready,
|
||||
|
@@ -166,13 +166,13 @@ public:
|
||||
|| getDescriptor(opCode).iclass & M_PREFETCH_FLAG
|
||||
|| getDescriptor(opCode).iclass & M_STORE_FLAG;
|
||||
}
|
||||
bool isDummyPhiInstr(MachineOpCode opCode) const {
|
||||
bool isDummyPhiInstr(const MachineOpCode opCode) const {
|
||||
return getDescriptor(opCode).iclass & M_DUMMY_PHI_FLAG;
|
||||
}
|
||||
|
||||
|
||||
// delete this later *******
|
||||
bool isPhi(MachineOpCode opCode) { return isDummyPhiInstr(opCode); }
|
||||
bool isPhi(const MachineOpCode opCode) { return isDummyPhiInstr(opCode); }
|
||||
|
||||
|
||||
// Check if an instruction can be issued before its operands are ready,
|
||||
|
@@ -150,6 +150,9 @@ public:
|
||||
cpMem2RegMI(const unsigned SrcPtrReg, const int Offset,
|
||||
const unsigned DestReg, const int RegType) const=0;
|
||||
|
||||
virtual MachineInstr *cpValue2Value( Value *Src, Value *Dest) const=0;
|
||||
|
||||
|
||||
virtual bool isRegVolatile(const int RegClassID, const int Reg) const=0;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user