Lines Matching refs:TPath
374 inline raw_ostream &operator<<(raw_ostream &OS, const ThreadingPath &TPath) { in operator <<() argument
375 TPath.print(OS); in operator <<()
520 ThreadingPath TPath; in run() local
530 TPath.setExitValue(C); in run()
531 TPath.setDeterminator(BB); in run()
532 TPath.setPath(Path); in run()
537 if (TPath.isExitValueSet() && BB == Path.front()) in run()
543 if (TPath.isExitValueSet() && isSupported(TPath)) in run()
544 TPaths.push_back(TPath); in run()
669 bool isSupported(const ThreadingPath &TPath) { in isSupported()
677 const BasicBlock *DeterminatorBB = TPath.getDeterminatorBB(); in isSupported()
680 SwitchCondUseBB == TPath.getPath().front() && in isSupported()
682 if (SwitchCondUseBB != TPath.getPath().front()) in isSupported()
686 PathType Path = TPath.getPath(); in isSupported()
745 for (ThreadingPath &TPath : SwitchPaths->getThreadingPaths()) { in isLegalAndProfitableToTransform()
746 PathType PathBBs = TPath.getPath(); in isLegalAndProfitableToTransform()
747 APInt NextState = TPath.getExitValue(); in isLegalAndProfitableToTransform()
748 const BasicBlock *Determinator = TPath.getDeterminatorBB(); in isLegalAndProfitableToTransform()
861 for (ThreadingPath &TPath : SwitchPaths->getThreadingPaths()) { in createAllExitPaths()
862 LLVM_DEBUG(dbgs() << TPath << "\n"); in createAllExitPaths()
863 PathType NewPath(TPath.getPath()); in createAllExitPaths()
865 TPath.setPath(NewPath); in createAllExitPaths()
876 for (ThreadingPath &TPath : SwitchPaths->getThreadingPaths()) { in createAllExitPaths()
877 createExitPath(NewDefs, TPath, DuplicateMap, BlocksToClean, &DTU); in createAllExitPaths()
883 for (ThreadingPath &TPath : SwitchPaths->getThreadingPaths()) in createAllExitPaths()
884 updateLastSuccessor(TPath, DuplicateMap, &DTU); in createAllExitPaths()
1146 void updateLastSuccessor(ThreadingPath &TPath, in updateLastSuccessor()
1149 APInt NextState = TPath.getExitValue(); in updateLastSuccessor()
1150 BasicBlock *BB = TPath.getPath().back(); in updateLastSuccessor()