Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DNaryReassociate.cpp239 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 …]
DSpeculateAroundPHIs.cpp651 auto *NewI = OrigI->clone(); in speculatePHIs() local
652 NewI->setName(Twine(OrigI->getName()) + "." + Twine(PredIdx)); in speculatePHIs()
653 NewI->insertBefore(PredBB->getTerminator()); in speculatePHIs()
658 for (Use &U : NewI->operands()) { in speculatePHIs()
677 if (NewI->isBinaryOp() && NewI->isCommutative() && in speculatePHIs()
678 isa<Constant>(NewI->getOperand(0)) && in speculatePHIs()
679 !isa<Constant>(NewI->getOperand(1))) in speculatePHIs()
680 NewI->getOperandUse(0).swap(NewI->getOperandUse(1)); in speculatePHIs()
682 SpeculatedValueMap[OrigI].push_back(NewI); in speculatePHIs()
683 assert(SpeculatedValueMap[OrigI][PredIdx] == NewI && in speculatePHIs()
DCorrelatedValuePropagation.cpp452 Value *NewI = B.CreateInsertValue(UndefValue::get(II->getType()), NewOp, 0); in processOverflowIntrinsic() local
453 NewI = B.CreateInsertValue(NewI, ConstantInt::getFalse(II->getContext()), 1); in processOverflowIntrinsic()
454 II->replaceAllUsesWith(NewI); in processOverflowIntrinsic()
DInferAddressSpaces.cpp589 if (Instruction *NewI = dyn_cast<Instruction>(NewV)) { in cloneValueWithNewAddressSpace() local
590 if (NewI->getParent() == nullptr) { in cloneValueWithNewAddressSpace()
591 NewI->insertBefore(I); in cloneValueWithNewAddressSpace()
592 NewI->takeName(I); in cloneValueWithNewAddressSpace()
/external/llvm/lib/Transforms/Scalar/
DNaryReassociate.cpp251 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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DScalarizeMaskedMemIntrin.cpp141 Value *NewI = Builder.CreateAlignedLoad(Ptr, AlignVal); in scalarizeMaskedLoad() local
142 CI->replaceAllUsesWith(NewI); in scalarizeMaskedLoad()
170 Value *NewI = Builder.CreateSelect(Mask, VResult, Src0); in scalarizeMaskedLoad() local
171 CI->replaceAllUsesWith(NewI); in scalarizeMaskedLoad()
228 Value *NewI = Builder.CreateSelect(Mask, Phi, Src0); in scalarizeMaskedLoad() local
229 CI->replaceAllUsesWith(NewI); in scalarizeMaskedLoad()
420 Value *NewI = Builder.CreateSelect(Mask, VResult, Src0); in scalarizeMaskedGather() local
421 CI->replaceAllUsesWith(NewI); in scalarizeMaskedGather()
479 Value *NewI = Builder.CreateSelect(Mask, Phi, Src0); in scalarizeMaskedGather() local
480 CI->replaceAllUsesWith(NewI); in scalarizeMaskedGather()
DMachineBasicBlock.cpp710 succ_iterator NewI = E; in replaceSuccessor() local
715 if (NewI != E) in replaceSuccessor()
719 NewI = I; in replaceSuccessor()
727 if (NewI == E) { in replaceSuccessor()
737 auto ProbIter = getProbabilityIterator(NewI); in replaceSuccessor()
DWinEHPrepare.cpp900 auto *NewI = cast<Instruction>(VT.second); in cloneCommonBlocks() local
924 SSAUpdate.AddAvailableValue(NewI->getParent(), NewI); in cloneCommonBlocks()
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp323 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-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp302 auto *NewI = new LoadInst(V); in replace() local
303 NewI->takeName(LT); in replace()
304 IC.InsertNewInstWith(NewI, *LT); in replace()
305 IC.replaceInstUsesWith(*LT, NewI); in replace()
306 WorkMap[LT] = NewI; in replace()
312 auto *NewI = GetElementPtrInst::Create( in replace() local
314 IC.InsertNewInstWith(NewI, *GEP); in replace()
315 NewI->takeName(GEP); in replace()
316 WorkMap[GEP] = NewI; in replace()
322 auto *NewI = new BitCastInst(V, NewT); in replace() local
[all …]
DInstCombineSelect.cpp685 IntrinsicInst *NewI = cast<IntrinsicInst>(II->clone()); in foldSelectCttzCtlz() local
686 NewI->setArgOperand(1, ConstantInt::getFalse(NewI->getContext())); in foldSelectCttzCtlz()
687 Builder.Insert(NewI); in foldSelectCttzCtlz()
688 return Builder.CreateZExtOrTrunc(NewI, ValueOnZero->getType()); in foldSelectCttzCtlz()
/external/llvm/lib/Target/NVPTX/
DNVPTXInferAddressSpaces.cpp392 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/
DEditedSource.cpp207 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/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DCloning.cpp482 Instruction& NewI = *NewIter; in TEST_F() local
483 EXPECT_NE(&OldI, &NewI); in TEST_F()
485 EXPECT_EQ(OldI.hasMetadata(), NewI.hasMetadata()); in TEST_F()
488 const DebugLoc& NewDL = NewI.getDebugLoc(); in TEST_F()
519 Instruction& NewI = *NewIter; in TEST_F() local
521 DbgDeclareInst* NewIntrin = dyn_cast<DbgDeclareInst>(&NewI); in TEST_F()
544 DbgValueInst* NewIntrin = dyn_cast<DbgValueInst>(&NewI); in TEST_F()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1684 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 …]
DInstCombineSelect.cpp404 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/lib/CodeGen/
DMachineBasicBlock.cpp575 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()
DWinEHPrepare.cpp847 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()
DCodeGenPrepare.cpp1204 Value *NewI = Builder.CreateAlignedLoad(Ptr, AlignVal); in scalarizeMaskedLoad() local
1205 CI->replaceAllUsesWith(NewI); in scalarizeMaskedLoad()
1233 Value *NewI = Builder.CreateSelect(Mask, VResult, Src0); in scalarizeMaskedLoad() local
1234 CI->replaceAllUsesWith(NewI); in scalarizeMaskedLoad()
1291 Value *NewI = Builder.CreateSelect(Mask, Phi, Src0); in scalarizeMaskedLoad() local
1292 CI->replaceAllUsesWith(NewI); in scalarizeMaskedLoad()
1484 Value *NewI = Builder.CreateSelect(Mask, VResult, Src0); in scalarizeMaskedGather() local
1485 CI->replaceAllUsesWith(NewI); in scalarizeMaskedGather()
1545 Value *NewI = Builder.CreateSelect(Mask, Phi, Src0); in scalarizeMaskedGather() local
1546 CI->replaceAllUsesWith(NewI); in scalarizeMaskedGather()
/external/llvm/lib/Target/Hexagon/
DHexagonExpandCondsets.cpp903 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/clang/test/SemaObjC/
Dattr-deprecated.m141 @interface NewI interface
145 typedef NewI DeprI __attribute__((deprecated("blah"))); // expected-note 4 {{'DeprI' has been expli…
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonExpandCondsets.cpp903 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/lib/Transforms/Vectorize/
DLoopVectorize.cpp3382 Value *NewI = nullptr; in truncateToMinimalBitwidths() local
3384 NewI = B.CreateBinOp(BO->getOpcode(), ShrinkOperand(BO->getOperand(0)), in truncateToMinimalBitwidths()
3386 cast<BinaryOperator>(NewI)->copyIRFlags(I); in truncateToMinimalBitwidths()
3388 NewI = in truncateToMinimalBitwidths()
3392 NewI = B.CreateSelect(SI->getCondition(), in truncateToMinimalBitwidths()
3400 NewI = ShrinkOperand(CI->getOperand(0)); in truncateToMinimalBitwidths()
3403 NewI = B.CreateSExtOrTrunc( in truncateToMinimalBitwidths()
3408 NewI = B.CreateZExtOrTrunc( in truncateToMinimalBitwidths()
3421 NewI = B.CreateShuffleVector(O0, O1, SI->getMask()); in truncateToMinimalBitwidths()
3430 NewI = B.CreateInsertElement(O0, O1, IE->getOperand(2)); in truncateToMinimalBitwidths()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp3235 Value *NewI = nullptr; in truncateToMinimalBitwidths() local
3237 NewI = B.CreateBinOp(BO->getOpcode(), ShrinkOperand(BO->getOperand(0)), in truncateToMinimalBitwidths()
3243 cast<BinaryOperator>(NewI)->copyIRFlags(I, /*IncludeWrapFlags=*/false); in truncateToMinimalBitwidths()
3245 NewI = in truncateToMinimalBitwidths()
3249 NewI = B.CreateSelect(SI->getCondition(), in truncateToMinimalBitwidths()
3257 NewI = ShrinkOperand(CI->getOperand(0)); in truncateToMinimalBitwidths()
3260 NewI = B.CreateSExtOrTrunc( in truncateToMinimalBitwidths()
3265 NewI = B.CreateZExtOrTrunc( in truncateToMinimalBitwidths()
3278 NewI = B.CreateShuffleVector(O0, O1, SI->getMask()); in truncateToMinimalBitwidths()
3287 NewI = B.CreateInsertElement(O0, O1, IE->getOperand(2)); in truncateToMinimalBitwidths()
[all …]
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp1574 Instruction *NewI = nullptr; in InlineFunction() local
1576 NewI = CallInst::Create(cast<CallInst>(I), OpDefs, I); in InlineFunction()
1578 NewI = InvokeInst::Create(cast<InvokeInst>(I), OpDefs, I); in InlineFunction()
1582 I->replaceAllUsesWith(NewI); in InlineFunction()

12