Lines Matching defs:Term
682 static void updateBranchWeights(Instruction *Term, WeightInfo &Info) {
683 setBranchWeights(*Term, Info.Weights, /*IsExpected=*/false);
702 Instruction *Term = ExitingBlock->getTerminator();
704 if (!extractBranchWeights(*Term, Weights))
711 for (auto [Succ, Weight] : zip(successors(Term), Weights)) {
723 for (auto [Succ, Weight] : zip(successors(Term), Weights)) {
736 WeightInfos.insert({Term, {std::move(Weights), std::move(SubWeights)}});
1045 for (auto &[Term, Info] : Weights) {
1046 auto *TermCopy = cast<Instruction>(VMap[Term]);
1075 for (const auto &[Term, Info] : Weights) {
1076 setBranchWeights(*Term, Info.Weights, /*IsExpected=*/false);