当前位置: 首页>>代码示例>>C++>>正文


C++ SUnit::getHeight方法代码示例

本文整理汇总了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);
    }
}
开发者ID:Celtoys,项目名称:clReflect,代码行数:8,代码来源:LatencyPriorityQueue.cpp

示例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";
}
开发者ID:alexjordan,项目名称:patmos-llvm,代码行数:23,代码来源:PatmosSchedStrategy.cpp

示例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);
}
开发者ID:alexjordan,项目名称:patmos-llvm,代码行数:23,代码来源:PatmosSchedStrategy.cpp


注:本文中的SUnit::getHeight方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。