Lines Matching defs:FinalStates
556 // Calculate the intersection of all the FinalStates for a BasicBlock's
558 static int getPredState(DenseMap<BasicBlock *, int> &FinalStates, Function &F,
573 auto PredEndState = FinalStates.find(PredBB);
574 if (PredEndState == FinalStates.end())
584 "overdefined BBs shouldn't be in FinalStates");
588 // At least two predecessors have different FinalStates,
620 "overdefined BBs shouldn't be in FinalStates");
673 // FinalStates yields the state of the last call-site for a BasicBlock.
674 DenseMap<BasicBlock *, int> FinalStates;
678 // Fill in InitialStates and FinalStates for BasicBlocks with call-sites.
705 FinalStates.insert({BB, FinalState});
708 // Try to fill-in InitialStates and FinalStates which have no call-sites.
716 int PredState = getPredState(FinalStates, F, ParentBaseState, BB);
723 FinalStates.insert({BB, PredState});
736 FinalStates.insert({BB, SuccState});
747 int PrevState = getPredState(FinalStates, F, ParentBaseState, BB);
763 auto EndState = FinalStates.find(BB);
764 if (EndState != FinalStates.end())