Home
last modified time | relevance | path

Searched refs:SccNum (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/llvm/include/llvm/Analysis/
DBranchProbabilityInfo.h185 bool isSCCHeader(const BasicBlock *BB, int SccNum) const { in isSCCHeader() argument
186 return getSccBlockType(BB, SccNum) & Header; in isSCCHeader()
190 bool isSCCExitingBlock(const BasicBlock *BB, int SccNum) const { in isSCCExitingBlock() argument
191 return getSccBlockType(BB, SccNum) & Exiting; in isSCCExitingBlock()
196 void getSccEnterBlocks(int SccNum,
201 void getSccExitBlocks(int SccNum,
207 uint32_t getSccBlockType(const BasicBlock *BB, int SccNum) const;
210 void calculateSccBlockType(const BasicBlock *BB, int SccNum);
/external/llvm-project/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp155 int SccNum = 0; in SccInfo() local
157 ++It, ++SccNum) { in SccInfo()
164 LLVM_DEBUG(dbgs() << "BPI: SCC " << SccNum << ":"); in SccInfo()
167 SccNums[BB] = SccNum; in SccInfo()
168 calculateSccBlockType(BB, SccNum); in SccInfo()
182 int SccNum, SmallVectorImpl<BasicBlock *> &Enters) const { in getSccEnterBlocks() argument
184 for (auto MapIt : SccBlocks[SccNum]) { in getSccEnterBlocks()
186 if (isSCCHeader(BB, SccNum)) in getSccEnterBlocks()
188 if (getSCCNum(Pred) != SccNum) in getSccEnterBlocks()
194 int SccNum, SmallVectorImpl<BasicBlock *> &Exits) const { in getSccExitBlocks() argument
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp465 static bool isSCCHeader(const BasicBlock *BB, int SccNum, in isSCCHeader() argument
467 assert(getSCCNum(BB, SccI) == SccNum); in isSCCHeader()
471 if (SccI.SccHeaders.size() <= static_cast<unsigned>(SccNum)) in isSCCHeader()
472 SccI.SccHeaders.resize(SccNum + 1); in isSCCHeader()
473 auto &HeaderMap = SccI.SccHeaders[SccNum]; in isSCCHeader()
480 return getSCCNum(Pred, SccI) != SccNum; in isSCCHeader()
600 int SccNum; in calcLoopBranchHeuristics() local
603 SccNum = getSCCNum(BB, SccI); in calcLoopBranchHeuristics()
604 if (SccNum < 0) in calcLoopBranchHeuristics()
630 if (getSCCNum(*I, SccI) != SccNum) in calcLoopBranchHeuristics()
[all …]
/external/llvm/lib/Target/AMDGPU/
DAMDILCFGStructurizer.cpp110 int SccNum; member in __anon4bd2a1920211::BlockInformation
111 BlockInformation() : IsRetired(false), SccNum(INVALIDSCCNUM) {} in BlockInformation()
345 return (*It).second->SccNum; in getSCCNum()
895 int SccNum = 0; in orderBlocks() local
898 ++It, ++SccNum) { in orderBlocks()
905 recordSccnum(MBB, SccNum); in orderBlocks()
914 SccNum = getSCCNum(MBB); in orderBlocks()
915 if (SccNum == INVALIDSCCNUM) in orderBlocks()
1711 int SccNum) { in recordSccnum() argument
1715 srcBlkInfo->SccNum = SccNum; in recordSccnum()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDILCFGStructurizer.cpp106 int SccNum = INVALIDSCCNUM; member in __anon952175200111::BlockInformation
349 return (*It).second->SccNum; in getSCCNum()
878 int SccNum = 0; in orderBlocks() local
881 ++It, ++SccNum) { in orderBlocks()
888 recordSccnum(MBB, SccNum); in orderBlocks()
894 SccNum = getSCCNum(MBB); in orderBlocks()
895 if (SccNum == INVALIDSCCNUM) in orderBlocks()
1651 int SccNum) { in recordSccnum() argument
1655 srcBlkInfo->SccNum = SccNum; in recordSccnum()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDILCFGStructurizer.cpp106 int SccNum = INVALIDSCCNUM; member in __anon1cdf53340111::BlockInformation
349 return (*It).second->SccNum; in getSCCNum()
878 int SccNum = 0; in orderBlocks() local
881 ++It, ++SccNum) { in orderBlocks()
888 recordSccnum(MBB, SccNum); in orderBlocks()
894 SccNum = getSCCNum(MBB); in orderBlocks()
895 if (SccNum == INVALIDSCCNUM) in orderBlocks()
1651 int SccNum) { in recordSccnum() argument
1655 srcBlkInfo->SccNum = SccNum; in recordSccnum()