Home
last modified time | relevance | path

Searched refs:OldI (Results 1 – 22 of 22) sorted by relevance

/external/llvm/unittests/Transforms/Utils/
DCloning.cpp322 Instruction& OldI = *OldIter; in TEST_F() local
324 EXPECT_NE(&OldI, &NewI); in TEST_F()
326 EXPECT_EQ(OldI.hasMetadata(), NewI.hasMetadata()); in TEST_F()
327 if (OldI.hasMetadata()) { in TEST_F()
328 const DebugLoc& OldDL = OldI.getDebugLoc(); in TEST_F()
359 Instruction& OldI = *OldIter; in TEST_F() local
361 if (DbgDeclareInst* OldIntrin = dyn_cast<DbgDeclareInst>(&OldI)) { in TEST_F()
378 } else if (DbgValueInst* OldIntrin = dyn_cast<DbgValueInst>(&OldI)) { in TEST_F()
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp841 for (Instruction &OldI : *OldBlock) { in cloneCommonBlocks()
842 auto *OldPN = dyn_cast<PHINode>(&OldI); in cloneCommonBlocks()
893 auto *OldI = dyn_cast<Instruction>(const_cast<Value *>(VT.first)); in cloneCommonBlocks() local
894 if (!OldI) in cloneCommonBlocks()
899 for (Use &U : OldI->uses()) { in cloneCommonBlocks()
918 SSAUpdate.Initialize(OldI->getType(), OldI->getName()); in cloneCommonBlocks()
919 SSAUpdate.AddAvailableValue(OldI->getParent(), OldI); in cloneCommonBlocks()
DMachineBasicBlock.cpp576 succ_iterator OldI = E; in replaceSuccessor() local
579 OldI = I; in replaceSuccessor()
585 if (OldI != E) in replaceSuccessor()
589 assert(OldI != E && "Old is not a successor of this block"); in replaceSuccessor()
595 *OldI = New; in replaceSuccessor()
604 *ProbIter += *getProbabilityIterator(OldI); in replaceSuccessor()
606 removeSuccessor(OldI); in replaceSuccessor()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineBasicBlock.cpp677 succ_iterator OldI = llvm::find(successors(), Old); in splitSuccessor() local
678 assert(OldI != succ_end() && "Old is not a successor of this block!"); in splitSuccessor()
688 : *getProbabilityIterator(OldI)); in splitSuccessor()
723 succ_iterator OldI = E; in replaceSuccessor() local
726 OldI = I; in replaceSuccessor()
732 if (OldI != E) in replaceSuccessor()
736 assert(OldI != E && "Old is not a successor of this block"); in replaceSuccessor()
742 *OldI = New; in replaceSuccessor()
751 *ProbIter += *getProbabilityIterator(OldI); in replaceSuccessor()
753 removeSuccessor(OldI); in replaceSuccessor()
DWinEHPrepare.cpp898 auto *OldI = dyn_cast<Instruction>(const_cast<Value *>(VT.first)); in cloneCommonBlocks() local
899 if (!OldI) in cloneCommonBlocks()
904 for (Use &U : OldI->uses()) { in cloneCommonBlocks()
923 SSAUpdate.Initialize(OldI->getType(), OldI->getName()); in cloneCommonBlocks()
924 SSAUpdate.AddAvailableValue(OldI->getParent(), OldI); in cloneCommonBlocks()
DCodeGenPrepare.cpp6324 Instruction *OldI = cast<Instruction>(U->getUser()); in tryToSinkFreeOperands() local
6325 if (NewInstructions.count(OldI)) in tryToSinkFreeOperands()
6326 NewInstructions[OldI]->setOperand(U->getOperandNo(), NI); in tryToSinkFreeOperands()
/external/llvm-project/llvm/lib/CodeGen/
DMachineBasicBlock.cpp754 succ_iterator OldI = llvm::find(successors(), Old); in splitSuccessor() local
755 assert(OldI != succ_end() && "Old is not a successor of this block!"); in splitSuccessor()
765 : *getProbabilityIterator(OldI)); in splitSuccessor()
800 succ_iterator OldI = E; in replaceSuccessor() local
803 OldI = I; in replaceSuccessor()
809 if (OldI != E) in replaceSuccessor()
813 assert(OldI != E && "Old is not a successor of this block"); in replaceSuccessor()
819 *OldI = New; in replaceSuccessor()
828 *ProbIter += *getProbabilityIterator(OldI); in replaceSuccessor()
830 removeSuccessor(OldI); in replaceSuccessor()
DWinEHPrepare.cpp920 auto *OldI = dyn_cast<Instruction>(const_cast<Value *>(VT.first)); in cloneCommonBlocks() local
921 if (!OldI) in cloneCommonBlocks()
926 for (Use &U : OldI->uses()) { in cloneCommonBlocks()
945 SSAUpdate.Initialize(OldI->getType(), OldI->getName()); in cloneCommonBlocks()
946 SSAUpdate.AddAvailableValue(OldI->getParent(), OldI); in cloneCommonBlocks()
DCodeGenPrepare.cpp6778 Instruction *OldI = cast<Instruction>(U->getUser()); in tryToSinkFreeOperands() local
6779 if (NewInstructions.count(OldI)) in tryToSinkFreeOperands()
6780 NewInstructions[OldI]->setOperand(U->getOperandNo(), NI); in tryToSinkFreeOperands()
/external/llvm-project/llvm/unittests/Transforms/Utils/
DCloningTest.cpp575 Instruction& OldI = *OldIter; in TEST_F() local
577 EXPECT_NE(&OldI, &NewI); in TEST_F()
579 EXPECT_EQ(OldI.hasMetadata(), NewI.hasMetadata()); in TEST_F()
580 if (OldI.hasMetadata()) { in TEST_F()
581 const DebugLoc& OldDL = OldI.getDebugLoc(); in TEST_F()
612 Instruction& OldI = *OldIter; in TEST_F() local
614 if (DbgDeclareInst* OldIntrin = dyn_cast<DbgDeclareInst>(&OldI)) { in TEST_F()
637 } else if (DbgValueInst* OldIntrin = dyn_cast<DbgValueInst>(&OldI)) { in TEST_F()
/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp536 BasicBlock::const_iterator OldI = OldBB->begin(); in CloneAndPruneIntoFromInst() local
540 assert(VMap[&*OldI] == PN && "VMap mismatch"); in CloneAndPruneIntoFromInst()
541 VMap[&*OldI] = NV; in CloneAndPruneIntoFromInst()
543 ++OldI; in CloneAndPruneIntoFromInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCloneFunction.cpp588 BasicBlock::const_iterator OldI = OldBB->begin(); in CloneAndPruneIntoFromInst() local
592 assert(VMap[&*OldI] == PN && "VMap mismatch"); in CloneAndPruneIntoFromInst()
593 VMap[&*OldI] = NV; in CloneAndPruneIntoFromInst()
595 ++OldI; in CloneAndPruneIntoFromInst()
/external/llvm-project/llvm/lib/Transforms/Utils/
DCloneFunction.cpp592 BasicBlock::const_iterator OldI = OldBB->begin(); in CloneAndPruneIntoFromInst() local
596 assert(VMap[&*OldI] == PN && "VMap mismatch"); in CloneAndPruneIntoFromInst()
597 VMap[&*OldI] = NV; in CloneAndPruneIntoFromInst()
599 ++OldI; in CloneAndPruneIntoFromInst()
/external/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1250 Instruction *OldI = Old; in doReplacement() local
1253 assert(OldI != NewI && "Disallowed at construction?!"); in doReplacement()
1261 OldI->replaceAllUsesWith(NewI); in doReplacement()
1266 auto *RI = cast<ReturnInst>(OldI->getParent()->getTerminator()); in doReplacement()
1271 OldI->eraseFromParent(); in doReplacement()
DSROA.cpp4068 if (Instruction *OldI = dyn_cast<Instruction>(OldV)) in clobberUse() local
4069 if (isInstructionTriviallyDead(OldI)) { in clobberUse()
4070 DeadInsts.insert(OldI); in clobberUse()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1371 Instruction *OldI = Old; in doReplacement() local
1374 assert(OldI != NewI && "Disallowed at construction?!"); in doReplacement()
1382 OldI->replaceAllUsesWith(NewI); in doReplacement()
1387 auto *RI = cast<ReturnInst>(OldI->getParent()->getTerminator()); in doReplacement()
1392 OldI->eraseFromParent(); in doReplacement()
DSROA.cpp4426 if (Instruction *OldI = dyn_cast<Instruction>(OldV)) in clobberUse() local
4427 if (isInstructionTriviallyDead(OldI)) { in clobberUse()
4428 DeadInsts.insert(OldI); in clobberUse()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1428 Instruction *OldI = Old; in doReplacement() local
1431 assert(OldI != NewI && "Disallowed at construction?!"); in doReplacement()
1439 OldI->replaceAllUsesWith(NewI); in doReplacement()
1444 auto *RI = cast<ReturnInst>(OldI->getParent()->getTerminator()); in doReplacement()
1449 OldI->eraseFromParent(); in doReplacement()
DSROA.cpp4600 if (Instruction *OldI = dyn_cast<Instruction>(OldV)) in clobberUse() local
4601 if (isInstructionTriviallyDead(OldI)) { in clobberUse()
4602 DeadInsts.insert(OldI); in clobberUse()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp9980 for (VerifyMap::iterator OldI = BackedgeDumpsOld.begin(), in verify() local
9983 OldI != OldE; ++OldI, ++NewI) { in verify()
9984 assert(OldI->first == NewI->first && "Loop order changed!"); in verify()
9991 if (OldI->second != NewI->second && in verify()
9992 OldI->second.find("undef") == std::string::npos && in verify()
9994 OldI->second != "***COULDNOTCOMPUTE***" && in verify()
9997 << OldI->first->getHeader()->getName() in verify()
9998 << "' changed from '" << OldI->second in verify()
/external/clang/lib/Sema/
DSemaOverload.cpp1116 OldI = Old->specific_attr_begin<EnableIfAttr>(), in IsOverload()
1118 NewI != NewE || OldI != OldE; ++NewI, ++OldI) { in IsOverload()
1119 if (NewI == NewE || OldI == OldE) in IsOverload()
1123 OldI->getCond()->Profile(OldID, Context, true); in IsOverload()
/external/llvm-project/clang/lib/Sema/
DSemaOverload.cpp1266 OldI = Old->specific_attr_begin<EnableIfAttr>(), in IsOverload()
1268 NewI != NewE || OldI != OldE; ++NewI, ++OldI) { in IsOverload()
1269 if (NewI == NewE || OldI == OldE) in IsOverload()
1273 OldI->getCond()->Profile(OldID, Context, true); in IsOverload()