/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 228 if (Instruction *NewI = tryReassociate(OrigI, OrigSCEV)) { in doOneIteration() local 230 OrigI->replaceAllUsesWith(NewI); in doOneIteration() 236 const SCEV *NewSCEV = SE->getSCEV(NewI); in doOneIteration() 237 SeenExprs[NewSCEV].push_back(WeakTrackingVH(NewI)); in doOneIteration() 259 SeenExprs[OrigSCEV].push_back(WeakTrackingVH(NewI)); in doOneIteration() 438 if (auto *NewI = tryReassociateBinaryOp(LHS, RHS, I)) in tryReassociateBinaryOp() local 439 return NewI; in tryReassociateBinaryOp() 440 if (auto *NewI = tryReassociateBinaryOp(RHS, LHS, I)) in tryReassociateBinaryOp() local 441 return NewI; in tryReassociateBinaryOp() 456 if (auto *NewI = in tryReassociateBinaryOp() local [all …]
|
D | SpeculateAroundPHIs.cpp | 662 auto *NewI = OrigI->clone(); in speculatePHIs() local 663 NewI->setName(Twine(OrigI->getName()) + "." + Twine(PredIdx)); in speculatePHIs() 664 NewI->insertBefore(PredBB->getTerminator()); in speculatePHIs() 669 for (Use &U : NewI->operands()) { in speculatePHIs() 688 if (NewI->isBinaryOp() && NewI->isCommutative() && in speculatePHIs() 689 isa<Constant>(NewI->getOperand(0)) && in speculatePHIs() 690 !isa<Constant>(NewI->getOperand(1))) in speculatePHIs() 691 NewI->getOperandUse(0).swap(NewI->getOperandUse(1)); in speculatePHIs() 693 SpeculatedValueMap[OrigI].push_back(NewI); in speculatePHIs() 694 assert(SpeculatedValueMap[OrigI][PredIdx] == NewI && in speculatePHIs()
|
D | InferAddressSpaces.cpp | 567 auto *NewI = new AddrSpaceCastInst(I, NewPtrTy); in cloneInstructionWithNewAddressSpace() local 568 NewI->insertAfter(I); in cloneInstructionWithNewAddressSpace() 569 return NewI; in cloneInstructionWithNewAddressSpace() 723 if (Instruction *NewI = dyn_cast_or_null<Instruction>(NewV)) { in cloneValueWithNewAddressSpace() local 724 if (NewI->getParent() == nullptr) { in cloneValueWithNewAddressSpace() 725 NewI->insertBefore(I); in cloneValueWithNewAddressSpace() 726 NewI->takeName(I); in cloneValueWithNewAddressSpace()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 239 if (Instruction *NewI = tryReassociate(&*I)) { in doOneIteration() local 242 I->replaceAllUsesWith(NewI); in doOneIteration() 243 WeakVH NewIExist = NewI; in doOneIteration() 254 I = NewI->getIterator(); in doOneIteration() 442 if (auto *NewI = tryReassociateBinaryOp(LHS, RHS, I)) in tryReassociateBinaryOp() local 443 return NewI; in tryReassociateBinaryOp() 444 if (auto *NewI = tryReassociateBinaryOp(RHS, LHS, I)) in tryReassociateBinaryOp() local 445 return NewI; in tryReassociateBinaryOp() 460 if (auto *NewI = in tryReassociateBinaryOp() local 462 return NewI; in tryReassociateBinaryOp() [all …]
|
D | SpeculateAroundPHIs.cpp | 658 auto *NewI = OrigI->clone(); in speculatePHIs() local 659 NewI->setName(Twine(OrigI->getName()) + "." + Twine(PredIdx)); in speculatePHIs() 660 NewI->insertBefore(PredBB->getTerminator()); in speculatePHIs() 665 for (Use &U : NewI->operands()) { in speculatePHIs() 684 if (NewI->isBinaryOp() && NewI->isCommutative() && in speculatePHIs() 685 isa<Constant>(NewI->getOperand(0)) && in speculatePHIs() 686 !isa<Constant>(NewI->getOperand(1))) in speculatePHIs() 687 NewI->getOperandUse(0).swap(NewI->getOperandUse(1)); in speculatePHIs() 689 SpeculatedValueMap[OrigI].push_back(NewI); in speculatePHIs() 690 assert(SpeculatedValueMap[OrigI][PredIdx] == NewI && in speculatePHIs()
|
D | InferAddressSpaces.cpp | 594 if (Instruction *NewI = dyn_cast<Instruction>(NewV)) { in cloneValueWithNewAddressSpace() local 595 if (NewI->getParent() == nullptr) { in cloneValueWithNewAddressSpace() 596 NewI->insertBefore(I); in cloneValueWithNewAddressSpace() 597 NewI->takeName(I); in cloneValueWithNewAddressSpace()
|
/external/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 251 if (Instruction *NewI = tryReassociate(&*I)) { in doOneIteration() local 254 I->replaceAllUsesWith(NewI); in doOneIteration() 258 I = NewI->getIterator(); in doOneIteration() 442 if (auto *NewI = tryReassociateBinaryOp(LHS, RHS, I)) in tryReassociateBinaryOp() local 443 return NewI; in tryReassociateBinaryOp() 444 if (auto *NewI = tryReassociateBinaryOp(RHS, LHS, I)) in tryReassociateBinaryOp() local 445 return NewI; in tryReassociateBinaryOp() 460 if (auto *NewI = in tryReassociateBinaryOp() local 462 return NewI; in tryReassociateBinaryOp() 465 if (auto *NewI = in tryReassociateBinaryOp() local [all …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 290 auto *NewI = new LoadInst(LT->getType(), V, "", LT->isVolatile(), in replace() local 293 NewI->takeName(LT); in replace() 294 copyMetadataForLoad(*NewI, *LT); in replace() 296 IC.InsertNewInstWith(NewI, *LT); in replace() 297 IC.replaceInstUsesWith(*LT, NewI); in replace() 298 WorkMap[LT] = NewI; in replace() 304 auto *NewI = GetElementPtrInst::Create( in replace() local 306 IC.InsertNewInstWith(NewI, *GEP); in replace() 307 NewI->takeName(GEP); in replace() 308 WorkMap[GEP] = NewI; in replace() [all …]
|
/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 323 Instruction& NewI = *NewIter; in TEST_F() local 324 EXPECT_NE(&OldI, &NewI); in TEST_F() 326 EXPECT_EQ(OldI.hasMetadata(), NewI.hasMetadata()); in TEST_F() 329 const DebugLoc& NewDL = NewI.getDebugLoc(); in TEST_F() 360 Instruction& NewI = *NewIter; in TEST_F() local 362 DbgDeclareInst* NewIntrin = dyn_cast<DbgDeclareInst>(&NewI); in TEST_F() 379 DbgValueInst* NewIntrin = dyn_cast<DbgValueInst>(&NewI); in TEST_F()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 301 auto *NewI = new LoadInst(I->getType(), V); in replace() local 302 NewI->takeName(LT); in replace() 303 IC.InsertNewInstWith(NewI, *LT); in replace() 304 IC.replaceInstUsesWith(*LT, NewI); in replace() 305 WorkMap[LT] = NewI; in replace() 311 auto *NewI = GetElementPtrInst::Create( in replace() local 313 IC.InsertNewInstWith(NewI, *GEP); in replace() 314 NewI->takeName(GEP); in replace() 315 WorkMap[GEP] = NewI; in replace() 321 auto *NewI = new BitCastInst(V, NewT); in replace() local [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInferAddressSpaces.cpp | 392 if (Instruction *NewI = dyn_cast<Instruction>(NewV)) { in cloneValueWithNewAddressSpace() local 393 if (NewI->getParent() == nullptr) { in cloneValueWithNewAddressSpace() 394 NewI->insertBefore(I); in cloneValueWithNewAddressSpace() 395 NewI->takeName(I); in cloneValueWithNewAddressSpace()
|
/external/clang/lib/Edit/ |
D | EditedSource.cpp | 207 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove() local 208 NewI->second.RemoveLen = Len; in commitRemove() 217 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove() local 220 TopFA = &NewI->second; in commitRemove()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1684 Instruction *NewI = BinaryOperator::CreateFNeg(Op1); in visitFSub() local 1685 NewI->copyFastMathFlags(&I); in visitFSub() 1686 return NewI; in visitFSub() 1697 Instruction *NewI = BinaryOperator::CreateFAdd(Op0, V); in visitFSub() local 1698 NewI->copyFastMathFlags(&I); in visitFSub() 1699 return NewI; in visitFSub() 1704 Instruction *NewI = BinaryOperator::CreateFAdd(Op0, NewTrunc); in visitFSub() local 1705 NewI->copyFastMathFlags(&I); in visitFSub() 1706 return NewI; in visitFSub() 1711 Instruction *NewI = BinaryOperator::CreateFAdd(Op0, NewExt); in visitFSub() local [all …]
|
D | InstCombineSelect.cpp | 404 IntrinsicInst *NewI = cast<IntrinsicInst>(II->clone()); in foldSelectCttzCtlz() local 405 Type *Ty = NewI->getArgOperand(1)->getType(); in foldSelectCttzCtlz() 406 NewI->setArgOperand(1, Constant::getNullValue(Ty)); in foldSelectCttzCtlz() 407 Builder.Insert(NewI); in foldSelectCttzCtlz() 408 return Builder.CreateZExtOrTrunc(NewI, ValueOnZero->getType()); in foldSelectCttzCtlz()
|
/external/llvm-project/clang/lib/Edit/ |
D | EditedSource.cpp | 223 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove() local 224 NewI->second.RemoveLen = Len; in commitRemove() 233 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit())); in commitRemove() local 236 TopFA = &NewI->second; in commitRemove()
|
/external/llvm-project/llvm/unittests/Transforms/Utils/ |
D | CloningTest.cpp | 576 Instruction& NewI = *NewIter; in TEST_F() local 577 EXPECT_NE(&OldI, &NewI); in TEST_F() 579 EXPECT_EQ(OldI.hasMetadata(), NewI.hasMetadata()); in TEST_F() 582 const DebugLoc& NewDL = NewI.getDebugLoc(); in TEST_F() 613 Instruction& NewI = *NewIter; in TEST_F() local 615 DbgDeclareInst* NewIntrin = dyn_cast<DbgDeclareInst>(&NewI); in TEST_F() 638 DbgValueInst* NewIntrin = dyn_cast<DbgValueInst>(&NewI); in TEST_F()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAtomicOptimizer.cpp | 577 Instruction *const NewI = I.clone(); in optimizeAtomic() local 578 B.Insert(NewI); in optimizeAtomic() 579 NewI->setOperand(ValIdx, NewV); in optimizeAtomic() 590 PHI->addIncoming(NewI, SingleLaneTerminator->getParent()); in optimizeAtomic()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAtomicOptimizer.cpp | 573 Instruction *const NewI = I.clone(); in optimizeAtomic() local 574 B.Insert(NewI); in optimizeAtomic() 575 NewI->setOperand(ValIdx, NewV); in optimizeAtomic() 586 PHI->addIncoming(NewI, SingleLaneTerminator->getParent()); in optimizeAtomic()
|
/external/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 847 for (Instruction &NewI : *NewBlock) { in cloneCommonBlocks() 848 auto *NewPN = dyn_cast<PHINode>(&NewI); in cloneCommonBlocks() 896 auto *NewI = cast<Instruction>(VT.second); in cloneCommonBlocks() local 920 SSAUpdate.AddAvailableValue(NewI->getParent(), NewI); in cloneCommonBlocks()
|
D | MachineBasicBlock.cpp | 575 succ_iterator NewI = E; in replaceSuccessor() local 580 if (NewI != E) in replaceSuccessor() 584 NewI = I; in replaceSuccessor() 592 if (NewI == E) { in replaceSuccessor() 602 auto ProbIter = getProbabilityIterator(NewI); in replaceSuccessor()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineBasicBlock.cpp | 722 succ_iterator NewI = E; in replaceSuccessor() local 727 if (NewI != E) in replaceSuccessor() 731 NewI = I; in replaceSuccessor() 739 if (NewI == E) { in replaceSuccessor() 749 auto ProbIter = getProbabilityIterator(NewI); in replaceSuccessor()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | MachineBasicBlock.cpp | 799 succ_iterator NewI = E; in replaceSuccessor() local 804 if (NewI != E) in replaceSuccessor() 808 NewI = I; in replaceSuccessor() 816 if (NewI == E) { in replaceSuccessor() 826 auto ProbIter = getProbabilityIterator(NewI); in replaceSuccessor()
|
/external/clang/test/SemaObjC/ |
D | attr-deprecated.m | 141 @interface NewI interface 145 typedef NewI DeprI __attribute__((deprecated("blah"))); // expected-note 4 {{'DeprI' has been expli…
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonExpandCondsets.cpp | 903 MachineInstr *NewI = MB; in predicateAt() local 904 NewI->clearKillInfo(); in predicateAt() 905 LIS->InsertMachineInstrInMaps(*NewI); in predicateAt() 907 for (auto &Op : NewI->operands()) in predicateAt()
|
/external/llvm-project/clang/test/SemaObjC/ |
D | attr-deprecated.m | 155 @interface NewI interface 159 typedef NewI DeprI __attribute__((deprecated("blah"))); // expected-note 4 {{'DeprI' has been expli…
|