本文整理汇总了C++中SUnit::getHeight方法的典型用法代码示例。如果您正苦于以下问题:C++ SUnit::getHeight方法的具体用法?C++ SUnit::getHeight怎么用?C++ SUnit::getHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SUnit
的用法示例。
在下文中一共展示了SUnit::getHeight方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dump
void LatencyPriorityQueue::dump(ScheduleDAG *DAG) const {
LatencyPriorityQueue q = *this;
while (!q.empty()) {
SUnit *su = q.pop();
dbgs() << "Height " << su->getHeight() << ": ";
su->dump(DAG);
}
}
示例2: dump
void PatmosLatencyQueue::dump()
{
dbgs() << "PendingQueue:";
for (unsigned i = 0; i < PendingQueue.size(); i++) {
SUnit *SU = PendingQueue[i];
if (i > 0) dbgs() << ",";
dbgs() << " SU(" << SU->NodeNum << "): Height " << SU->getHeight()
<< " Depth " << SU->getDepth()
<< " Tree: " << Cmp.DFSResult->getSubtreeID(SU) << " @"
<< Cmp.DFSResult->getSubtreeLevel(Cmp.DFSResult->getSubtreeID(SU));
if (SU->isScheduleLow) dbgs() << " low ";
}
dbgs() << "\nAvailableQueue:";
for (unsigned i = 0; i < AvailableQueue.size(); i++) {
SUnit *SU = AvailableQueue[i];
if (i > 0) dbgs() << ",";
dbgs() << " SU(" << SU->NodeNum << ") Height " << SU->getHeight()
<< " Depth " << SU->getDepth()
<< " ILP: " << Cmp.DFSResult->getILP(SU);
if (SU->isScheduleLow) dbgs() << " low ";
}
dbgs() << "\n";
}
示例3: recedeCycle
/// Go back one cycle and update availability queue.
void PatmosLatencyQueue::recedeCycle(unsigned CurrCycle)
{
unsigned avail = 0;
for (unsigned i = 0; i < PendingQueue.size() - avail; i++) {
SUnit *SU = PendingQueue[i];
if (SU->getHeight() <= CurrCycle) {
// remove the instruction from pending
avail++;
PendingQueue[i] = *(PendingQueue.end() - avail);
// revisit the moved instruction
i--;
// Make the instruction available
AvailableQueue.push_back(SU);
std::inplace_merge(AvailableQueue.begin(), AvailableQueue.end() - 1,
AvailableQueue.end(), Cmp);
}
}
PendingQueue.resize(PendingQueue.size() - avail);
}