mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Make scheduling class variables be 'unsigned' instead of 'int'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5ddc8b74b
commit
c188b733ba
@ -13,7 +13,6 @@
|
||||
#include "llvm/DerivedTypes.h"
|
||||
|
||||
class MachineInstrDescriptor;
|
||||
class TmpInstruction;
|
||||
class MachineInstr;
|
||||
class TargetMachine;
|
||||
class Value;
|
||||
@ -27,7 +26,7 @@ class MachineCodeForInstruction;
|
||||
|
||||
typedef int MachineOpCode;
|
||||
typedef int OpCodeMask;
|
||||
typedef int InstrSchedClass;
|
||||
typedef unsigned InstrSchedClass;
|
||||
|
||||
const MachineOpCode INVALID_MACHINE_OPCODE = -1;
|
||||
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "llvm/DerivedTypes.h"
|
||||
|
||||
class MachineInstrDescriptor;
|
||||
class TmpInstruction;
|
||||
class MachineInstr;
|
||||
class TargetMachine;
|
||||
class Value;
|
||||
@ -27,7 +26,7 @@ class MachineCodeForInstruction;
|
||||
|
||||
typedef int MachineOpCode;
|
||||
typedef int OpCodeMask;
|
||||
typedef int InstrSchedClass;
|
||||
typedef unsigned InstrSchedClass;
|
||||
|
||||
const MachineOpCode INVALID_MACHINE_OPCODE = -1;
|
||||
|
||||
|
@ -196,9 +196,8 @@ protected:
|
||||
assert(opCode >= 0 && opCode < (int) instrRUsages.size());
|
||||
return instrRUsages[opCode];
|
||||
}
|
||||
inline const InstrClassRUsage&
|
||||
getClassRUsage(const InstrSchedClass& sc) const {
|
||||
assert(sc >= 0 && sc < numSchedClasses);
|
||||
const InstrClassRUsage& getClassRUsage(const InstrSchedClass& sc) const {
|
||||
assert(sc < numSchedClasses);
|
||||
return classRUsages[sc];
|
||||
}
|
||||
|
||||
@ -225,7 +224,7 @@ public:
|
||||
}
|
||||
|
||||
inline unsigned getMaxIssueForClass(const InstrSchedClass& sc) const {
|
||||
assert(sc >= 0 && sc < numSchedClasses);
|
||||
assert(sc < numSchedClasses);
|
||||
return classRUsages[sc].maxNumIssue;
|
||||
}
|
||||
|
||||
@ -283,7 +282,7 @@ private:
|
||||
}
|
||||
|
||||
protected:
|
||||
int numSchedClasses;
|
||||
unsigned numSchedClasses;
|
||||
const MachineInstrInfo* mii;
|
||||
const InstrClassRUsage* classRUsages; // raw array by sclass
|
||||
const InstrRUsageDelta* usageDeltas; // raw array [1:numUsageDeltas]
|
||||
|
Loading…
Reference in New Issue
Block a user