//
inline static bool
RUConflict(const std::vector<resourceId_t>& fromRVec,
- const std::vector<resourceId_t>& toRVec)
+ const std::vector<resourceId_t>& toRVec)
{
unsigned fN = fromRVec.size(), tN = toRVec.size();
static CycleCount_t
ComputeMinGap(const InstrRUsage &fromRU,
- const InstrRUsage &toRU)
+ const InstrRUsage &toRU)
{
CycleCount_t minGap = 0;
//---------------------------------------------------------------------------
// class TargetSchedInfo
-// Interface to machine description for instruction scheduling
+// Interface to machine description for instruction scheduling
//---------------------------------------------------------------------------
TargetSchedInfo::TargetSchedInfo(const TargetMachine& tgt,
void
TargetSchedInfo::initializeResources()
{
- assert(MAX_NUM_SLOTS >= (int)getMaxNumIssueTotal()
- && "Insufficient slots for static data! Increase MAX_NUM_SLOTS");
+ assert(MAX_NUM_SLOTS >= (int)getMaxNumIssueTotal() &&
+ "Insufficient slots for static data! Increase MAX_NUM_SLOTS");
// First, compute common resource usage info for each class because
// most instructions will probably behave the same as their class.
void
TargetSchedInfo::computeInstrResources(const std::vector<InstrRUsage>&
- instrRUForClasses)
-{
+ instrRUForClasses) {
int numOpCodes = mii->getNumOpcodes();
instrRUsages.resize(numOpCodes);
void
TargetSchedInfo::computeIssueGaps(const std::vector<InstrRUsage>&
- instrRUForClasses)
-{
+ instrRUForClasses) {
int numOpCodes = mii->getNumOpcodes();
issueGaps.resize(numOpCodes);
conflictLists.resize(numOpCodes);
void InstrRUsage::setTo(const InstrClassRUsage& classRU) {
- sameAsClass = true;
+ sameAsClass = true;
isSingleIssue = classRU.isSingleIssue;
breaksGroup = classRU.breaksGroup;
numBubbles = classRU.numBubbles;
for (unsigned i=0; i < classRU.numRUEntries; i++)
for (unsigned c=classRU.V[i].startCycle, NC = c + classRU.V[i].numCycles;
- c < NC; c++)
+ c < NC; c++)
this->resourcesByCycle[c].push_back(classRU.V[i].resourceId);
// Sort each resource usage vector by resourceId_t to speed up conflict