Home
last modified time | relevance | path

Searched refs:SuccNum (Results 1 – 25 of 25) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DBreakCriticalEdges.cpp91 bool llvm::isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, in isCriticalEdge() argument
93 assert(SuccNum < TI->getNumSuccessors() && "Illegal edge specification!"); in isCriticalEdge()
96 const BasicBlock *Dest = TI->getSuccessor(SuccNum); in isCriticalEdge()
169 BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, in SplitCriticalEdge() argument
172 if (!isCriticalEdge(TI, SuccNum, MergeIdenticalEdges)) return 0; in SplitCriticalEdge()
178 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge()
192 TI->setSuccessor(SuccNum, NewBB); in SplitCriticalEdge()
224 for (unsigned i = SuccNum+1, e = TI->getNumSuccessors(); i != e; ++i) { in SplitCriticalEdge()
DCodeExtractor.cpp493 unsigned SuccNum = switchVal++; in emitCallAndSwitchStatement() local
500 brVal = ConstantInt::get(Type::getInt1Ty(Context), !SuccNum); in emitCallAndSwitchStatement()
503 brVal = ConstantInt::get(Type::getInt16Ty(Context), SuccNum); in emitCallAndSwitchStatement()
511 SuccNum), in emitCallAndSwitchStatement()
DBasicBlockUtils.cpp258 unsigned SuccNum = GetSuccessorNumber(BB, Succ); in SplitEdge() local
262 if (SplitCriticalEdge(LatchTerm, SuccNum, P)) in SplitEdge()
263 return LatchTerm->getSuccessor(SuccNum); in SplitEdge()
/external/llvm/lib/Transforms/Utils/
DBreakCriticalEdges.cpp115 llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, in SplitCriticalEdge() argument
117 if (!isCriticalEdge(TI, SuccNum, Options.MergeIdenticalEdges)) in SplitCriticalEdge()
124 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge()
138 TI->setSuccessor(SuccNum, NewBB); in SplitCriticalEdge()
170 for (unsigned i = SuccNum+1, e = TI->getNumSuccessors(); i != e; ++i) { in SplitCriticalEdge()
DDemoteRegToStack.cpp47 unsigned SuccNum = GetSuccessorNumber(II->getParent(), II->getNormalDest()); in DemoteRegToStack() local
48 assert(isCriticalEdge(II, SuccNum) && "Expected a critical edge!"); in DemoteRegToStack()
49 BasicBlock *BB = SplitCriticalEdge(II, SuccNum); in DemoteRegToStack()
DCodeExtractor.cpp526 unsigned SuccNum = switchVal++; in emitCallAndSwitchStatement() local
533 brVal = ConstantInt::get(Type::getInt1Ty(Context), !SuccNum); in emitCallAndSwitchStatement()
536 brVal = ConstantInt::get(Type::getInt16Ty(Context), SuccNum); in emitCallAndSwitchStatement()
544 SuccNum), in emitCallAndSwitchStatement()
DBasicBlockUtils.cpp212 unsigned SuccNum = GetSuccessorNumber(BB, Succ); in SplitEdge() local
216 if (SplitCriticalEdge(LatchTerm, SuccNum, CriticalEdgeSplittingOptions(DT, LI) in SplitEdge()
218 return LatchTerm->getSuccessor(SuccNum); in SplitEdge()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DDemoteRegToStack.cpp49 unsigned SuccNum = GetSuccessorNumber(II->getParent(), II->getNormalDest()); in DemoteRegToStack() local
50 assert(isCriticalEdge(II, SuccNum) && "Expected a critical edge!"); in DemoteRegToStack()
51 BasicBlock *BB = SplitCriticalEdge(II, SuccNum); in DemoteRegToStack()
DBreakCriticalEdges.cpp132 llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, in SplitCriticalEdge() argument
134 if (!isCriticalEdge(TI, SuccNum, Options.MergeIdenticalEdges)) in SplitCriticalEdge()
141 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge()
155 TI->setSuccessor(SuccNum, NewBB); in SplitCriticalEdge()
187 for (unsigned i = SuccNum+1, e = TI->getNumSuccessors(); i != e; ++i) { in SplitCriticalEdge()
DBasicBlockUtils.cpp265 unsigned SuccNum = GetSuccessorNumber(BB, Succ); in SplitEdge() local
269 if (SplitCriticalEdge(LatchTerm, SuccNum, CriticalEdgeSplittingOptions(DT, LI) in SplitEdge()
271 return LatchTerm->getSuccessor(SuccNum); in SplitEdge()
DCodeExtractor.cpp979 unsigned SuccNum = switchVal++; in emitCallAndSwitchStatement() local
986 brVal = ConstantInt::get(Type::getInt1Ty(Context), !SuccNum); in emitCallAndSwitchStatement()
989 brVal = ConstantInt::get(Type::getInt16Ty(Context), SuccNum); in emitCallAndSwitchStatement()
997 SuccNum), in emitCallAndSwitchStatement()
/external/llvm/lib/Analysis/
DCFG.cpp88 bool llvm::isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, in isCriticalEdge() argument
90 assert(SuccNum < TI->getNumSuccessors() && "Illegal edge specification!"); in isCriticalEdge()
93 const BasicBlock *Dest = TI->getSuccessor(SuccNum); in isCriticalEdge()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCFG.cpp88 bool llvm::isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, in isCriticalEdge() argument
90 assert(SuccNum < TI->getNumSuccessors() && "Illegal edge specification!"); in isCriticalEdge()
93 const BasicBlock *Dest = TI->getSuccessor(SuccNum); in isCriticalEdge()
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DBasicBlockUtils.h90 bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum,
111 BasicBlock *SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
/external/llvm/include/llvm/Analysis/
DCFG.h49 bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DCFG.h49 bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum,
/external/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp333 unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB() local
334 BasicBlock *InstrBB = SplitCriticalEdge(TI, SuccNum); in getInstrBB()
734 unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in setBranchWeights() local
738 EdgeCounts[SuccNum] = EdgeCount; in setBranchWeights()
/external/llvm/include/llvm/Transforms/Utils/
DBasicBlockUtils.h121 BasicBlock *SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DBasicBlockUtils.h127 BasicBlock *SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp707 unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in getInstrBB() local
708 BasicBlock *InstrBB = SplitCriticalEdge(TI, SuccNum); in getInstrBB()
1185 unsigned SuccNum = GetSuccessorNumber(SrcBB, DestBB); in setBranchWeights() local
1189 EdgeCounts[SuccNum] = EdgeCount; in setBranchWeights()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DGVN.cpp1537 unsigned SuccNum = GetSuccessorNumber(Pred, LoadBB); in processNonLocalLoad() local
1538 NeedToSplit.push_back(std::make_pair(Pred->getTerminator(), SuccNum)); in processNonLocalLoad()
2301 unsigned SuccNum = GetSuccessorNumber(PREPred, CurrentBlock); in performPRE() local
2302 if (isCriticalEdge(PREPred->getTerminator(), SuccNum)) { in performPRE()
2303 toSplit.push_back(std::make_pair(PREPred->getTerminator(), SuccNum)); in performPRE()
/external/llvm/lib/CodeGen/
DMachineTraceMetrics.cpp216 unsigned SuccNum = TBI->Succ->getNumber(); in computeHeightResources() local
217 TraceBlockInfo *SuccTBI = &BlockInfo[SuccNum]; in computeHeightResources()
223 ArrayRef<unsigned> SuccPRHeights = getProcResourceHeights(SuccNum); in computeHeightResources()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineTraceMetrics.cpp228 unsigned SuccNum = TBI->Succ->getNumber(); in computeHeightResources() local
229 TraceBlockInfo *SuccTBI = &BlockInfo[SuccNum]; in computeHeightResources()
235 ArrayRef<unsigned> SuccPRHeights = getProcResourceHeights(SuccNum); in computeHeightResources()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DGVN.cpp2287 unsigned SuccNum = GetSuccessorNumber(PREPred, CurrentBlock); in performScalarPRE() local
2288 if (isCriticalEdge(PREPred->getTerminator(), SuccNum)) { in performScalarPRE()
2289 toSplit.push_back(std::make_pair(PREPred->getTerminator(), SuccNum)); in performScalarPRE()
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp2416 unsigned SuccNum = GetSuccessorNumber(PREPred, CurrentBlock); in performScalarPRE() local
2417 if (isCriticalEdge(PREPred->getTerminator(), SuccNum)) { in performScalarPRE()
2418 toSplit.push_back(std::make_pair(PREPred->getTerminator(), SuccNum)); in performScalarPRE()