Lines Matching refs:CFGTraits

282   typedef CFGStructTraits<PassT>                  CFGTraits;  typedef in llvmCFGStruct::CFGStructurizer
456 loopInfo = CFGTraits::getLoopInfo(pass); in prepare()
494 if (CFGTraits::isReturnBlock(curBlk)) { in prepare()
531 domTree = CFGTraits::getDominatorTree(pass); in run()
539 postDomTree = CFGTraits::getPostDominatorTree(pass); in run()
546 loopInfo = CFGTraits::getLoopInfo(pass); in run()
669 CFGTraits::wrapup(FuncGTraits::nodes_begin(&func)); in run()
810 InstrT *branchInstr = CFGTraits::getNormalBlockBranchInstr(curBlk); in ifPatternMatch()
815 assert(CFGTraits::isCondBranch(branchInstr)); in ifPatternMatch()
817 BlockT *trueBlk = CFGTraits::getTrueBranch(branchInstr); in ifPatternMatch()
818 BlockT *falseBlk = CFGTraits::getFalseBranch(curBlk, branchInstr); in ifPatternMatch()
1348 CFGTraits::insertAssignInstrBefore(headBlk, passRep, initReg, initVal); in improveSimpleJumpintoIf()
1376 CFGTraits::getInstrPos in improveSimpleJumpintoIf()
1377 (landBlk, CFGTraits::insertInstrBefore(landBlk, AMDGPU::ENDIF, passRep)); in improveSimpleJumpintoIf()
1382 CFGTraits::insertAssignInstrBefore(insertPos, passRep, immReg, 2); in improveSimpleJumpintoIf()
1386 CFGTraits::insertCompareInstrBefore(landBlk, insertPos, passRep, cmpResReg, in improveSimpleJumpintoIf()
1388 CFGTraits::insertCondBranchBefore(landBlk, insertPos, in improveSimpleJumpintoIf()
1393 CFGTraits::insertCondBranchBefore(landBlk, insertPos, AMDGPU::IF_LOGICALNZ_i32, in improveSimpleJumpintoIf()
1401 CFGTraits::insertAssignInstrBefore(trueBlk, passRep, initReg, 1); in improveSimpleJumpintoIf()
1403 CFGTraits::insertInstrBefore(insertPos, AMDGPU::ELSE, passRep); in improveSimpleJumpintoIf()
1410 CFGTraits::insertAssignInstrBefore(falseBlk, passRep, initReg, 0); in improveSimpleJumpintoIf()
1416 CFGTraits::insertInstrBefore(insertPos, AMDGPU::ENDIF, passRep); in improveSimpleJumpintoIf()
1424 CFGTraits::insertAssignInstrBefore(curBlk, passRep, initReg, 2); in improveSimpleJumpintoIf()
1512 CFGTraits::cloneSuccessorList(dstBlk, srcBlk); in mergeSerialBlock()
1557 CFGTraits::getInstrPos(curBlk, branchInstr); in mergeIfthenelseBlock()
1558 CFGTraits::insertCondBranchBefore(branchInstrPos, in mergeIfthenelseBlock()
1559 CFGTraits::getBranchNzeroOpcode(oldOpcode), in mergeIfthenelseBlock()
1571 CFGTraits::insertInstrBefore(branchInstrPos, AMDGPU::ELSE, passRep); in mergeIfthenelseBlock()
1582 CFGTraits::insertInstrBefore(branchInstrPos, AMDGPU::ENDIF, passRep); in mergeIfthenelseBlock()
1607 CFGTraits::insertAssignInstrBefore(dstBlk, passRep, *iter, 0); in mergeLooplandBlock()
1614 InstrT *loopBreakInstr = CFGTraits::getLoopBreakInstr(dstBlk); in mergeLooplandBlock()
1617 CFGTraits::insertInstrBefore(dstBlk, AMDGPU::WHILELOOP, passRep, DLBreak); in mergeLooplandBlock()
1623 CFGTraits::insertAssignInstrBefore(dstBlk, passRep, *iter, 0); in mergeLooplandBlock()
1629 CFGTraits::insertAssignInstrBefore(dstBlk, passRep, *iter, 0); in mergeLooplandBlock()
1635 InstrT *continueInstr = CFGTraits::getContinueInstr(dstBlk); in mergeLooplandBlock()
1638 CFGTraits::insertInstrEnd(dstBlk, AMDGPU::ENDLOOP, passRep, DLContinue); in mergeLooplandBlock()
1644 CFGTraits::insertCondBranchEnd(dstBlk, AMDGPU::BREAK_LOGICALNZ_i32, passRep, in mergeLooplandBlock()
1652 CFGTraits::insertCondBranchEnd(dstBlk, AMDGPU::CONTINUE_LOGICALNZ_i32, in mergeLooplandBlock()
1703 InstrT *branchInstr = CFGTraits::getLoopendBlockBranchInstr(exitingBlk); in mergeLoopbreakBlock()
1704 assert(branchInstr && CFGTraits::isCondBranch(branchInstr)); in mergeLoopbreakBlock()
1708 BlockT *trueBranch = CFGTraits::getTrueBranch(branchInstr); in mergeLoopbreakBlock()
1720 CFGTraits::getInstrPos(exitingBlk, branchInstr); in mergeLoopbreakBlock()
1728 int newOpcode = CFGTraits::getBreakZeroOpcode(oldOpcode); in mergeLoopbreakBlock()
1729 CFGTraits::insertCondBranchBefore(branchInstrPos, newOpcode, passRep, DL); in mergeLoopbreakBlock()
1734 int newOpcode = CFGTraits::getBreakZeroOpcode(oldOpcode); in mergeLoopbreakBlock()
1735 CFGTraits::insertCondBranchBefore(branchInstrPos, newOpcode, passRep, DL); in mergeLoopbreakBlock()
1742 CFGTraits::insertAssignInstrBefore(branchInstrPos, passRep, setReg, 1); in mergeLoopbreakBlock()
1744 CFGTraits::insertInstrBefore(branchInstrPos, AMDGPU::BREAK, passRep); in mergeLoopbreakBlock()
1745 CFGTraits::insertInstrBefore(branchInstrPos, AMDGPU::ENDIF, passRep); in mergeLoopbreakBlock()
1772 InstrT *branchInstr = CFGTraits::getLoopendBlockBranchInstr(contingBlk); in settleLoopcontBlock()
1774 assert(CFGTraits::isCondBranch(branchInstr)); in settleLoopcontBlock()
1776 CFGTraits::getInstrPos(contingBlk, branchInstr); in settleLoopcontBlock()
1777 BlockT *trueBranch = CFGTraits::getTrueBranch(branchInstr); in settleLoopcontBlock()
1797 trueBranch == contBlk ? CFGTraits::getBranchNzeroOpcode(oldOpcode) in settleLoopcontBlock()
1798 : CFGTraits::getBranchZeroOpcode(oldOpcode); in settleLoopcontBlock()
1800 CFGTraits::insertCondBranchBefore(branchInstrPos, branchOpcode, passRep, DL); in settleLoopcontBlock()
1803 CFGTraits::insertAssignInstrBefore(branchInstrPos, passRep, setReg, 1); in settleLoopcontBlock()
1805 CFGTraits::insertInstrEnd(contingBlk, AMDGPU::BREAK, passRep, DL); in settleLoopcontBlock()
1808 CFGTraits::insertInstrEnd(contingBlk, AMDGPU::CONTINUE, passRep, DL); in settleLoopcontBlock()
1811 CFGTraits::insertInstrEnd(contingBlk, AMDGPU::ENDIF, passRep, DL); in settleLoopcontBlock()
1814 trueBranch == contBlk ? CFGTraits::getContinueNzeroOpcode(oldOpcode) in settleLoopcontBlock()
1815 : CFGTraits::getContinueZeroOpcode(oldOpcode); in settleLoopcontBlock()
1817 CFGTraits::insertCondBranchBefore(branchInstrPos, branchOpcode, passRep, DL); in settleLoopcontBlock()
1827 CFGTraits::insertAssignInstrBefore(contingBlk, passRep, setReg, 1); in settleLoopcontBlock()
1829CFGTraits::insertInstrEnd(contingBlk, AMDGPU::BREAK, passRep, CFGTraits::getLastDebugLocInBB(conti… in settleLoopcontBlock()
1832CFGTraits::insertInstrEnd(contingBlk, AMDGPU::CONTINUE, passRep, CFGTraits::getLastDebugLocInBB(co… in settleLoopcontBlock()
1864 if (endBlk == NULL || CFGTraits::getContinueInstr(endBlk) == NULL) in relocateLoopcontBlock()
1872 CFGTraits::insertInstrEnd(newBlk, AMDGPU::CONTINUE, passRep); in relocateLoopcontBlock()
1879 InstrT *contInstr = CFGTraits::getContinueInstr(endBlk); in relocateLoopcontBlock()
1925 CFGTraits::replaceInstrUseOfBlockWith(preExitingBlk, preExitBlk, in addLoopEndbranchBlock()
1948 CFGTraits::insertAssignInstrBefore(curExitingBlk, passRep, in addLoopEndbranchBlock()
1953 CFGTraits::replaceInstrUseOfBlockWith(curExitingBlk, curExitBlk, in addLoopEndbranchBlock()
2088 BlockT *cloneBlk = CFGTraits::clone(curBlk); //clone instructions in cloneBlockForPredecessor()
2089 CFGTraits::replaceInstrUseOfBlockWith(predBlk, curBlk, cloneBlk); in cloneBlockForPredecessor()
2096 CFGTraits::cloneSuccessorList(cloneBlk, curBlk); in cloneBlockForPredecessor()
2137 InstrT *branchInstr = CFGTraits::getNormalBlockBranchInstr(srcBlk); in migrateInstruction()
2148 spliceEnd = CFGTraits::getInstrPos(srcBlk, branchInstr); in migrateInstruction()
2183 InstrT *branchInstr = CFGTraits::getLoopendBlockBranchInstr(loopLatch); in normalizeInfiniteLoopExit()
2184 if (branchInstr!=NULL && CFGTraits::isUncondBranch(branchInstr)) { in normalizeInfiniteLoopExit()
2192 CFGTraits::getInstrPos(loopLatch, branchInstr); in normalizeInfiniteLoopExit()
2195 CFGTraits::insertAssignInstrBefore(insertPos, passRep, immReg, 1); in normalizeInfiniteLoopExit()
2197 CFGTraits::insertInstrBefore(insertPos, AMDGPU::BRANCH_COND_i32, passRep); in normalizeInfiniteLoopExit()
2216 while ((branchInstr = CFGTraits::getLoopendBlockBranchInstr(srcBlk)) in removeUnconditionalBranch()
2217 && CFGTraits::isUncondBranch(branchInstr)) { in removeUnconditionalBranch()
2233 InstrT *branchInstr = CFGTraits::getNormalBlockBranchInstr(srcBlk); in removeRedundantConditionalBranch()
2234 assert(branchInstr && CFGTraits::isCondBranch(branchInstr)); in removeRedundantConditionalBranch()
2251 CFGTraits::insertInstrEnd(dummyExitBlk, AMDGPU::RETURN, passRep); in addDummyExitBlock()
2257 InstrT *curInstr = CFGTraits::getReturnInstr(curBlk); in addDummyExitBlock()
2394 CFGTraits::replaceInstrUseOfBlockWith(curBlk, landBlk, newLandBlk); in recordLoopLandBlock()