Lines Matching refs:Weight
208 ConstantInt *Weight = in calcMetadataWeights() local
210 if (!Weight) in calcMetadataWeights()
212 assert(Weight->getValue().getActiveBits() <= 32 && in calcMetadataWeights()
214 Weights.push_back(Weight->getZExtValue()); in calcMetadataWeights()
539 uint32_t Weight = getEdgeWeight(BB, I.getSuccessorIndex()); in getSumForBlock() local
542 Sum += Weight; in getSumForBlock()
563 uint32_t Weight = getEdgeWeight(BB, Succ); in getHotSucc() local
566 Sum += Weight; in getHotSucc()
569 if (Weight > MaxWeight) { in getHotSucc()
570 MaxWeight = Weight; in getHotSucc()
605 uint32_t Weight = 0; in getEdgeWeight() local
613 Weight += MapI->second; in getEdgeWeight()
616 return (!FoundWeight) ? DEFAULT_WEIGHT : Weight; in getEdgeWeight()
623 uint32_t Weight) { in setEdgeWeight() argument
624 Weights[std::make_pair(Src, IndexInSuccessors)] = Weight; in setEdgeWeight()
627 << Weight << "\n"); in setEdgeWeight()