/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/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 367 std::pair<Value*, unsigned> InVal = in INITIALIZE_PASS_DEPENDENCY() local 369 if (InVal.first != 0 && InVal.second == CurrentGeneration) { in INITIALIZE_PASS_DEPENDENCY() 371 << *InVal.first << '\n'); in INITIALIZE_PASS_DEPENDENCY() 372 if (!Inst->use_empty()) Inst->replaceAllUsesWith(InVal.first); in INITIALIZE_PASS_DEPENDENCY() 394 std::pair<Value*, unsigned> InVal = AvailableCalls->lookup(Inst); in INITIALIZE_PASS_DEPENDENCY() local 395 if (InVal.first != 0 && InVal.second == CurrentGeneration) { in INITIALIZE_PASS_DEPENDENCY() 397 << *InVal.first << '\n'); in INITIALIZE_PASS_DEPENDENCY() 398 if (!Inst->use_empty()) Inst->replaceAllUsesWith(InVal.first); in INITIALIZE_PASS_DEPENDENCY()
|
D | SimplifyCFGPass.cpp | 262 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in MergeEmptyReturnBlocks() local 269 RetBlockPHI->addIncoming(InVal, *PI); in MergeEmptyReturnBlocks()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 977 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() local 978 if (InVal.DefInst != nullptr && in processNode() 979 InVal.MatchingId == MemInst.getMatchingId() && in processNode() 983 InVal.IsAtomic >= MemInst.isAtomic() && in processNode() 984 (isOperatingOnInvariantMemAt(Inst, InVal.Generation) || in processNode() 985 isSameMemGeneration(InVal.Generation, CurrentGeneration, in processNode() 986 InVal.DefInst, Inst))) { in processNode() 987 Value *Op = getOrCreateResult(InVal.DefInst, Inst->getType()); in processNode() 990 << " to: " << *InVal.DefInst << '\n'); in processNode() 1028 std::pair<Instruction *, unsigned> InVal = AvailableCalls.lookup(Inst); in processNode() local [all …]
|
D | RewriteStatepointsForGC.cpp | 818 auto visitIncomingValue = [&](Value *InVal) { in findBasePointer() argument 819 Value *Base = findBaseOrBDV(InVal, Cache); in findBasePointer() 830 for (Value *InVal : PN->incoming_values()) in findBasePointer() 831 visitIncomingValue(InVal); in findBasePointer() 1044 Value *InVal = PN->getIncomingValue(i); in findBasePointer() local 1062 Value *Base = getBaseForInput(InVal, nullptr); in findBasePointer() 1078 Value *Base = getBaseForInput(InVal, InBB->getTerminator()); in findBasePointer() 1092 Value *InVal = cast<ExtractElementInst>(BDV)->getVectorOperand(); in findBasePointer() local 1095 BaseEE->setOperand(0, getBaseForInput(InVal, BaseEE)); in findBasePointer() 1099 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/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 257 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop() local 258 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) in UnrollLoop() 260 InVal = LastValueMap[InValI]; in UnrollLoop() 261 VMap[OrigPHINode[i]] = InVal; in UnrollLoop() 312 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop() local 315 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) { in UnrollLoop() 317 InVal = LastValueMap[InVal]; in UnrollLoop() 320 PN->addIncoming(InVal, Latches.back()); in UnrollLoop()
|
D | BasicBlockUtils.cpp | 406 Value *InVal = 0; in UpdatePHINodes() local 408 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 410 if (InVal != PN->getIncomingValueForBlock(Preds[i])) { in UpdatePHINodes() 411 InVal = 0; in UpdatePHINodes() 416 if (InVal) { in UpdatePHINodes() 435 InVal = NewPHI; in UpdatePHINodes() 440 PN->addIncoming(InVal, NewBB); in UpdatePHINodes()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 352 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI() local 353 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI() 358 if (NewInVal != InVal) in FoldPHIArgLoadIntoPHI() 359 InVal = 0; in FoldPHIArgLoadIntoPHI() 364 if (InVal) { in FoldPHIArgLoadIntoPHI() 367 PhiVal = InVal; in FoldPHIArgLoadIntoPHI() 460 Value *InVal = FirstInst->getOperand(0); in FoldPHIArgOpIntoPHI() local 461 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgOpIntoPHI() 466 if (NewInVal != InVal) in FoldPHIArgOpIntoPHI() 467 InVal = 0; in FoldPHIArgOpIntoPHI() [all …]
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 366 InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, in InsertPHITranslatedSubExpr() argument 371 PHITransAddr Tmp(InVal, DL, AC); in InsertPHITranslatedSubExpr() 376 auto *Inst = dyn_cast<Instruction>(InVal); in InsertPHITranslatedSubExpr() 388 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr() 389 InVal->getName() + ".phi.trans.insert", in InsertPHITranslatedSubExpr() 409 InVal->getName() + ".phi.trans.insert", PredBB->getTerminator()); in InsertPHITranslatedSubExpr() 430 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | PHITransAddr.cpp | 369 InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, in InsertPHITranslatedSubExpr() argument 374 PHITransAddr Tmp(InVal, TD); in InsertPHITranslatedSubExpr() 380 Instruction *Inst = cast<Instruction>(InVal); in InsertPHITranslatedSubExpr() 391 OpVal, InVal->getType(), in InsertPHITranslatedSubExpr() 392 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr() 411 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr() 432 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 597 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI() local 598 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI() 621 if (NewInVal != InVal) in FoldPHIArgLoadIntoPHI() 622 InVal = nullptr; in FoldPHIArgLoadIntoPHI() 626 if (InVal) { in FoldPHIArgLoadIntoPHI() 629 NewLI->setOperand(0, InVal); in FoldPHIArgLoadIntoPHI() 782 Value *InVal = FirstInst->getOperand(0); in FoldPHIArgOpIntoPHI() local 783 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgOpIntoPHI() 788 if (NewInVal != InVal) in FoldPHIArgOpIntoPHI() 789 InVal = nullptr; in FoldPHIArgOpIntoPHI() [all …]
|
/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/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/swiftshader/third_party/llvm-7.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() 695 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop() local 698 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) { in UnrollLoop() 700 InVal = LastValueMap[InVal]; in UnrollLoop() 703 PN->addIncoming(InVal, Latches.back()); in UnrollLoop()
|
D | BasicBlockUtils.cpp | 427 Value *InVal = nullptr; in UpdatePHINodes() local 429 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 433 if (!InVal) in UpdatePHINodes() 434 InVal = PN->getIncomingValue(i); in UpdatePHINodes() 435 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes() 436 InVal = nullptr; in UpdatePHINodes() 442 if (InVal) { in UpdatePHINodes() 457 PN->addIncoming(InVal, NewBB); in UpdatePHINodes()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | DwarfEHPrepare.cpp | 430 Value *InVal = PN->getIncomingValueForBlock(*PB); in NormalizeLandingPads() local 432 if (PI != PB && InVal != PN->getIncomingValueForBlock(*PI)) { in NormalizeLandingPads() 433 InVal = 0; in NormalizeLandingPads() 438 if (InVal == 0) { in NormalizeLandingPads() 449 InVal = NewPN; in NormalizeLandingPads() 458 PN->addIncoming(InVal, NewBB); in NormalizeLandingPads()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 36 unsigned InVal = 4+CountS; in DecodeINSERTPSMask() local 38 ShuffleMask[CountD] = InVal; in DecodeINSERTPSMask()
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | PHITransAddr.h | 101 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
|
/external/llvm/include/llvm/Analysis/ |
D | PHITransAddr.h | 112 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | PHITransAddr.h | 112 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
|