mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Allow up to 64 functional units per processor itinerary.
This patch changes the type used to hold the FU bitset from unsigned to uint64_t. This will be needed for some upcoming PowerPC itineraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -66,7 +66,7 @@ void DFAPacketizer::ReadTable(unsigned int state) {
|
||||
bool DFAPacketizer::canReserveResources(const llvm::MCInstrDesc *MID) {
|
||||
unsigned InsnClass = MID->getSchedClass();
|
||||
const llvm::InstrStage *IS = InstrItins->beginStage(InsnClass);
|
||||
unsigned FuncUnits = IS->getUnits();
|
||||
uint64_t FuncUnits = IS->getUnits();
|
||||
UnsignPair StateTrans = UnsignPair(CurrentState, FuncUnits);
|
||||
ReadTable(CurrentState);
|
||||
return (CachedTable.count(StateTrans) != 0);
|
||||
@ -78,7 +78,7 @@ bool DFAPacketizer::canReserveResources(const llvm::MCInstrDesc *MID) {
|
||||
void DFAPacketizer::reserveResources(const llvm::MCInstrDesc *MID) {
|
||||
unsigned InsnClass = MID->getSchedClass();
|
||||
const llvm::InstrStage *IS = InstrItins->beginStage(InsnClass);
|
||||
unsigned FuncUnits = IS->getUnits();
|
||||
uint64_t FuncUnits = IS->getUnits();
|
||||
UnsignPair StateTrans = UnsignPair(CurrentState, FuncUnits);
|
||||
ReadTable(CurrentState);
|
||||
assert(CachedTable.count(StateTrans) != 0);
|
||||
|
Reference in New Issue
Block a user