/external/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 636 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() local 637 if (InVal.DefInst != nullptr && in processNode() 638 (InVal.Generation == CurrentGeneration || InVal.IsInvariant) && in processNode() 639 InVal.MatchingId == MemInst.getMatchingId() && in processNode() 643 InVal.IsAtomic >= MemInst.isAtomic()) { in processNode() 644 Value *Op = getOrCreateResult(InVal.DefInst, Inst->getType()); in processNode() 647 << " to: " << *InVal.DefInst << '\n'); in processNode() 679 std::pair<Instruction *, unsigned> InVal = AvailableCalls.lookup(Inst); in processNode() local 680 if (InVal.first != nullptr && InVal.second == CurrentGeneration) { in processNode() 682 << " to: " << *InVal.first << '\n'); in processNode() [all …]
|
D | SimplifyCFGPass.cpp | 107 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks() local 114 RetBlockPHI->addIncoming(InVal, *PI); in mergeEmptyReturnBlocks()
|
D | RewriteStatepointsForGC.cpp | 700 auto visitIncomingValue = [&](Value *InVal) { in findBasePointer() argument 701 Value *Base = findBaseOrBDV(InVal, Cache); in findBasePointer() 712 for (Value *InVal : PN->incoming_values()) in findBasePointer() 713 visitIncomingValue(InVal); in findBasePointer() 914 Value *InVal = PN->getIncomingValue(i); in findBasePointer() local 932 Value *Base = getBaseForInput(InVal, nullptr); in findBasePointer() 948 Value *Base = getBaseForInput(InVal, InBB->getTerminator()); in findBasePointer() 962 Value *InVal = cast<ExtractElementInst>(BDV)->getVectorOperand(); in findBasePointer() local 965 BaseEE->setOperand(0, getBaseForInput(InVal, BaseEE)); in findBasePointer() 970 Value *InVal = BdvIE->getOperand(OperandIdx); in findBasePointer() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 1114 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() local 1115 if (InVal.DefInst != nullptr && in processNode() 1116 InVal.MatchingId == MemInst.getMatchingId() && in processNode() 1120 InVal.IsAtomic >= MemInst.isAtomic() && in processNode() 1121 (isOperatingOnInvariantMemAt(Inst, InVal.Generation) || in processNode() 1122 isSameMemGeneration(InVal.Generation, CurrentGeneration, in processNode() 1123 InVal.DefInst, Inst))) { in processNode() 1124 Value *Op = getOrCreateResult(InVal.DefInst, Inst->getType()); in processNode() 1127 << " to: " << *InVal.DefInst << '\n'); in processNode() 1165 std::pair<Instruction *, unsigned> InVal = AvailableCalls.lookup(Inst); in processNode() local [all …]
|
D | RewriteStatepointsForGC.cpp | 815 auto visitIncomingValue = [&](Value *InVal) { in findBasePointer() argument 816 Value *Base = findBaseOrBDV(InVal, Cache); in findBasePointer() 827 for (Value *InVal : PN->incoming_values()) in findBasePointer() 828 visitIncomingValue(InVal); in findBasePointer() 1041 Value *InVal = PN->getIncomingValue(i); in findBasePointer() local 1059 Value *Base = getBaseForInput(InVal, nullptr); in findBasePointer() 1075 Value *Base = getBaseForInput(InVal, InBB->getTerminator()); in findBasePointer() 1089 Value *InVal = cast<ExtractElementInst>(BDV)->getVectorOperand(); in findBasePointer() local 1092 BaseEE->setOperand(0, getBaseForInput(InVal, BaseEE)); in findBasePointer() 1096 Value *InVal = BdvIE->getOperand(OperandIdx); in findBasePointer() local [all …]
|
D | SimplifyCFGPass.cpp | 124 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks() local 131 RetBlockPHI->addIncoming(InVal, *PI); in mergeEmptyReturnBlocks()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 803 Value *getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst, 1079 Value *EarlyCSE::getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst, in getMatchingValue() argument 1081 if (InVal.DefInst == nullptr) in getMatchingValue() 1083 if (InVal.MatchingId != MemInst.getMatchingId()) in getMatchingValue() 1089 if (MemInst.isLoad() && !InVal.IsAtomic && MemInst.isAtomic()) in getMatchingValue() 1096 Instruction *Matching = MemInstMatching ? MemInst.get() : InVal.DefInst; in getMatchingValue() 1097 Instruction *Other = MemInstMatching ? InVal.DefInst : MemInst.get(); in getMatchingValue() 1104 if (MemInst.isStore() && InVal.DefInst != Result) in getMatchingValue() 1113 if (!isNonTargetIntrinsicMatch(cast<IntrinsicInst>(InVal.DefInst), in getMatchingValue() 1118 if (!isOperatingOnInvariantMemAt(MemInst.get(), InVal.Generation) && in getMatchingValue() [all …]
|
D | RewriteStatepointsForGC.cpp | 831 auto visitIncomingValue = [&](Value *InVal) { in findBasePointer() argument 832 Value *Base = findBaseOrBDV(InVal, Cache); in findBasePointer() 833 if (isKnownBaseResult(Base) && areBothVectorOrScalar(Base, InVal)) in findBasePointer() 846 for (Value *InVal : PN->incoming_values()) in findBasePointer() 847 visitIncomingValue(InVal); in findBasePointer() 1096 Value *InVal = PN->getIncomingValue(i); in findBasePointer() local 1114 Value *Base = getBaseForInput(InVal, nullptr); in findBasePointer() 1130 Value *Base = getBaseForInput(InVal, InBB->getTerminator()); in findBasePointer() 1144 Value *InVal = cast<ExtractElementInst>(BDV)->getVectorOperand(); in findBasePointer() local 1147 BaseEE->setOperand(0, getBaseForInput(InVal, BaseEE)); in findBasePointer() [all …]
|
D | SimplifyCFGPass.cpp | 144 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks() local 151 RetBlockPHI->addIncoming(InVal, *PI); in mergeEmptyReturnBlocks()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 341 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI() local 342 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI() 365 if (NewInVal != InVal) in FoldPHIArgLoadIntoPHI() 366 InVal = nullptr; in FoldPHIArgLoadIntoPHI() 370 if (InVal) { in FoldPHIArgLoadIntoPHI() 373 NewLI->setOperand(0, InVal); in FoldPHIArgLoadIntoPHI() 526 Value *InVal = FirstInst->getOperand(0); in FoldPHIArgOpIntoPHI() local 527 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgOpIntoPHI() 532 if (NewInVal != InVal) in FoldPHIArgOpIntoPHI() 533 InVal = nullptr; in FoldPHIArgOpIntoPHI() [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 365 InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, in InsertPHITranslatedSubExpr() argument 370 PHITransAddr Tmp(InVal, DL, AC); in InsertPHITranslatedSubExpr() 375 auto *Inst = dyn_cast<Instruction>(InVal); in InsertPHITranslatedSubExpr() 387 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr() 388 InVal->getName() + ".phi.trans.insert", in InsertPHITranslatedSubExpr() 408 InVal->getName() + ".phi.trans.insert", PredBB->getTerminator()); in InsertPHITranslatedSubExpr() 429 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 365 InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, in InsertPHITranslatedSubExpr() argument 370 PHITransAddr Tmp(InVal, DL, AC); in InsertPHITranslatedSubExpr() 375 auto *Inst = dyn_cast<Instruction>(InVal); in InsertPHITranslatedSubExpr() 387 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr() 388 InVal->getName() + ".phi.trans.insert", in InsertPHITranslatedSubExpr() 408 InVal->getName() + ".phi.trans.insert", PredBB->getTerminator()); in InsertPHITranslatedSubExpr() 429 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
|
D | DivergenceAnalysis.cpp | 170 const auto *InVal = Phi.getIncomingValue(i); in updatePHINode() local 172 isTemporalDivergent(*Phi.getParent(), *InVal)) { in updatePHINode()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 428 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop() local 429 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) in UnrollLoop() 431 InVal = LastValueMap[InValI]; in UnrollLoop() 432 VMap[OrigPHI] = InVal; in UnrollLoop() 495 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop() local 498 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) { in UnrollLoop() 500 InVal = LastValueMap[InVal]; in UnrollLoop() 503 PN->addIncoming(InVal, Latches.back()); in UnrollLoop()
|
D | BasicBlockUtils.cpp | 360 Value *InVal = nullptr; in UpdatePHINodes() local 362 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 366 if (!InVal) in UpdatePHINodes() 367 InVal = PN->getIncomingValue(i); in UpdatePHINodes() 368 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes() 369 InVal = nullptr; in UpdatePHINodes() 375 if (InVal) { in UpdatePHINodes() 390 PN->addIncoming(InVal, NewBB); in UpdatePHINodes()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 608 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI() local 609 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI() 634 if (NewInVal != InVal) in FoldPHIArgLoadIntoPHI() 635 InVal = nullptr; in FoldPHIArgLoadIntoPHI() 639 if (InVal) { in FoldPHIArgLoadIntoPHI() 642 NewLI->setOperand(0, InVal); in FoldPHIArgLoadIntoPHI() 795 Value *InVal = FirstInst->getOperand(0); in FoldPHIArgOpIntoPHI() local 796 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgOpIntoPHI() 801 if (NewInVal != InVal) in FoldPHIArgOpIntoPHI() 802 InVal = nullptr; in FoldPHIArgOpIntoPHI() [all …]
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 369 InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, in InsertPHITranslatedSubExpr() argument 374 PHITransAddr Tmp(InVal, DL, AC); in InsertPHITranslatedSubExpr() 379 auto *Inst = dyn_cast<Instruction>(InVal); in InsertPHITranslatedSubExpr() 391 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr() 392 InVal->getName() + ".phi.trans.insert", in InsertPHITranslatedSubExpr() 412 InVal->getName() + ".phi.trans.insert", PredBB->getTerminator()); in InsertPHITranslatedSubExpr() 433 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 689 Value *InVal = FirstLI->getOperand(0); in foldPHIArgLoadIntoPHI() local 690 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in foldPHIArgLoadIntoPHI() 715 if (NewInVal != InVal) in foldPHIArgLoadIntoPHI() 716 InVal = nullptr; in foldPHIArgLoadIntoPHI() 720 if (InVal) { in foldPHIArgLoadIntoPHI() 723 NewLI->setOperand(0, InVal); in foldPHIArgLoadIntoPHI() 880 Value *InVal = FirstInst->getOperand(0); in foldPHIArgOpIntoPHI() local 881 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in foldPHIArgOpIntoPHI() 886 if (NewInVal != InVal) in foldPHIArgOpIntoPHI() 887 InVal = nullptr; in foldPHIArgOpIntoPHI() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 610 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop() local 611 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) in UnrollLoop() 613 InVal = LastValueMap[InValI]; in UnrollLoop() 614 VMap[OrigPHI] = InVal; in UnrollLoop() 689 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop() local 692 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) { in UnrollLoop() 694 InVal = LastValueMap[InVal]; in UnrollLoop() 697 PN->addIncoming(InVal, Latches.back()); in UnrollLoop()
|
D | BasicBlockUtils.cpp | 674 Value *InVal = nullptr; in UpdatePHINodes() local 676 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 680 if (!InVal) in UpdatePHINodes() 681 InVal = PN->getIncomingValue(i); in UpdatePHINodes() 682 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes() 683 InVal = nullptr; in UpdatePHINodes() 689 if (InVal) { in UpdatePHINodes() 704 PN->addIncoming(InVal, NewBB); in UpdatePHINodes()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 624 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop() local 625 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) in UnrollLoop() 627 InVal = LastValueMap[InValI]; in UnrollLoop() 628 VMap[OrigPHI] = InVal; in UnrollLoop() 701 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop() local 704 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) { in UnrollLoop() 706 InVal = LastValueMap[InVal]; in UnrollLoop() 709 PN->addIncoming(InVal, Latches.back()); in UnrollLoop()
|
D | BasicBlockUtils.cpp | 653 Value *InVal = nullptr; in UpdatePHINodes() local 655 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 659 if (!InVal) in UpdatePHINodes() 660 InVal = PN->getIncomingValue(i); in UpdatePHINodes() 661 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes() 662 InVal = nullptr; in UpdatePHINodes() 668 if (InVal) { in UpdatePHINodes() 683 PN->addIncoming(InVal, NewBB); in UpdatePHINodes()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | PHITransAddr.h | 111 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | PHITransAddr.h | 111 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
|
/external/llvm/include/llvm/Analysis/ |
D | PHITransAddr.h | 112 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
|