/external/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 610 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() local 611 if (InVal.Data != nullptr && InVal.Generation == CurrentGeneration && in processNode() 612 InVal.MatchingId == MemInst.getMatchingId() && in processNode() 616 InVal.IsAtomic >= MemInst.isAtomic()) { in processNode() 617 Value *Op = getOrCreateResult(InVal.Data, Inst->getType()); in processNode() 620 << " to: " << *InVal.Data << '\n'); in processNode() 652 std::pair<Value *, unsigned> InVal = AvailableCalls.lookup(Inst); in processNode() local 653 if (InVal.first != nullptr && InVal.second == CurrentGeneration) { in processNode() 655 << " to: " << *InVal.first << '\n'); in processNode() 657 Inst->replaceAllUsesWith(InVal.first); in processNode() [all …]
|
D | SimplifyCFGPass.cpp | 105 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks() local 112 RetBlockPHI->addIncoming(InVal, *PI); in mergeEmptyReturnBlocks()
|
D | RewriteStatepointsForGC.cpp | 771 auto visitIncomingValue = [&](Value *InVal) { in findBasePointer() argument 772 Value *Base = findBaseOrBDV(InVal, cache); in findBasePointer() 783 for (Value *InVal : Phi->incoming_values()) in findBasePointer() 784 visitIncomingValue(InVal); in findBasePointer() 992 Value *InVal = phi->getIncomingValue(i); in findBasePointer() local 1010 Value *Base = getBaseForInput(InVal, nullptr); in findBasePointer() 1027 Value *Base = getBaseForInput(InVal, InBB->getTerminator()); in findBasePointer() 1036 Value *InVal = Sel->getOperand(i); in findBasePointer() local 1039 Value *Base = getBaseForInput(InVal, BaseSel); in findBasePointer() 1043 Value *InVal = cast<ExtractElementInst>(BDV)->getVectorOperand(); in findBasePointer() local [all …]
|
D | JumpThreading.cpp | 446 Value *InVal = PN->getIncomingValue(i); in ComputeValueKnownInPredecessors() local 447 if (Constant *KC = getKnownConstant(InVal, Preference)) { in ComputeValueKnownInPredecessors() 450 Constant *CI = LVI->getConstantOnEdge(InVal, in ComputeValueKnownInPredecessors()
|
D | IndVarSimplify.cpp | 599 Value *InVal = PN->getIncomingValue(i); in rewriteLoopExitValues() local 600 if (!isa<Instruction>(InVal)) in rewriteLoopExitValues() 608 Instruction *Inst = cast<Instruction>(InVal); in rewriteLoopExitValues()
|
D | ScalarReplAggregates.cpp | 1214 Value *InVal = PN->getIncomingValue(i); in isSafePHIToSpeculate() local 1223 if (Pred->getTerminator() == InVal) in isSafePHIToSpeculate() 1232 if (isDereferenceablePointer(InVal, DL) || in isSafePHIToSpeculate() 1233 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign)) in isSafePHIToSpeculate()
|
D | SROA.cpp | 1179 Value *InVal = PN.getIncomingValue(Idx); in isSafePHIToSpeculate() local 1184 if (TI == InVal || TI->mayHaveSideEffects()) in isSafePHIToSpeculate() 1195 if (isDereferenceablePointer(InVal, DL) || in isSafePHIToSpeculate() 1196 isSafeToLoadUnconditionally(InVal, TI, MaxAlign)) in isSafePHIToSpeculate() 1232 Value *InVal = PN.getIncomingValue(Idx); in speculatePHINodeLoads() local 1236 InVal, (PN.getName() + ".sroa.speculate.load." + Pred->getName())); in speculatePHINodeLoads()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 351 Value *InVal = FirstLI->getOperand(0); in FoldPHIArgLoadIntoPHI() local 352 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI() 375 if (NewInVal != InVal) in FoldPHIArgLoadIntoPHI() 376 InVal = nullptr; in FoldPHIArgLoadIntoPHI() 380 if (InVal) { in FoldPHIArgLoadIntoPHI() 383 NewLI->setOperand(0, InVal); in FoldPHIArgLoadIntoPHI() 552 Value *InVal = FirstInst->getOperand(0); in FoldPHIArgOpIntoPHI() local 553 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgOpIntoPHI() 558 if (NewInVal != InVal) in FoldPHIArgOpIntoPHI() 559 InVal = nullptr; in FoldPHIArgOpIntoPHI() [all …]
|
D | InstCombineCasts.cpp | 1560 static Instruction *optimizeVectorResize(Value *InVal, VectorType *DestTy, in optimizeVectorResize() argument 1565 VectorType *SrcTy = cast<VectorType>(InVal->getType()); in optimizeVectorResize() 1577 InVal = IC.Builder->CreateBitCast(InVal, SrcTy); in optimizeVectorResize() 1607 return new ShuffleVectorInst(InVal, V2, in optimizeVectorResize()
|
D | InstructionCombining.cpp | 817 Value *InVal = PN->getIncomingValue(i); in FoldOpIntoPhi() local 818 if (isa<Constant>(InVal) && !isa<ConstantExpr>(InVal)) in FoldOpIntoPhi() 821 if (isa<PHINode>(InVal)) return nullptr; // Itself a phi. in FoldOpIntoPhi() 828 if (InvokeInst *II = dyn_cast<InvokeInst>(InVal)) in FoldOpIntoPhi()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 354 Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock); in UnrollLoop() local 355 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) in UnrollLoop() 357 InVal = LastValueMap[InValI]; in UnrollLoop() 358 VMap[OrigPHINode[i]] = InVal; in UnrollLoop() 407 Value *InVal = PN->removeIncomingValue(LatchBlock, false); in UnrollLoop() local 410 if (Instruction *InValI = dyn_cast<Instruction>(InVal)) { in UnrollLoop() 412 InVal = LastValueMap[InVal]; in UnrollLoop() 415 PN->addIncoming(InVal, Latches.back()); in UnrollLoop()
|
D | BasicBlockUtils.cpp | 403 Value *InVal = nullptr; in UpdatePHINodes() local 405 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 409 if (!InVal) in UpdatePHINodes() 410 InVal = PN->getIncomingValue(i); in UpdatePHINodes() 411 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes() 412 InVal = nullptr; in UpdatePHINodes() 418 if (InVal) { in UpdatePHINodes() 433 PN->addIncoming(InVal, NewBB); in UpdatePHINodes()
|
D | LoopUnrollRuntime.cpp | 218 Value *InVal = NewPHI->getIncomingValue(idx); in CloneLoopBlocks() local 220 if (VMap[InVal]) in CloneLoopBlocks() 221 NewPHI->setIncomingValue(idx, VMap[InVal]); in CloneLoopBlocks()
|
D | CloneFunction.cpp | 581 Value *InVal = MapValue(PN->getIncomingValue(pred), in CloneAndPruneIntoFromInst() local 584 assert(InVal && "Unknown input value?"); in CloneAndPruneIntoFromInst() 585 PN->setIncomingValue(pred, InVal); in CloneAndPruneIntoFromInst()
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 368 InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, in InsertPHITranslatedSubExpr() argument 373 PHITransAddr Tmp(InVal, DL, AC); in InsertPHITranslatedSubExpr() 378 auto *Inst = dyn_cast<Instruction>(InVal); in InsertPHITranslatedSubExpr() 390 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in InsertPHITranslatedSubExpr() 391 InVal->getName() + ".phi.trans.insert", in InsertPHITranslatedSubExpr() 411 InVal->getName() + ".phi.trans.insert", PredBB->getTerminator()); in InsertPHITranslatedSubExpr() 432 InVal->getName()+".phi.trans.insert", in InsertPHITranslatedSubExpr()
|
/external/llvm/include/llvm/Analysis/ |
D | PHITransAddr.h | 112 Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB,
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonInstrInfoVector.td | 272 class vcmp_vi1_pat<InstHexagon MI, PatFrag Op, PatFrag InVal, ValueType OutTy> 273 : Pat <(OutTy (Op InVal:$Rs, InVal:$Rt)), 274 (MI InVal:$Rs, InVal:$Rt)>;
|
/external/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 952 Value *InVal; in insertPHIStores() local 953 std::tie(EHBlock, InVal) = Worklist.pop_back_val(); in insertPHIStores() 955 PHINode *PN = dyn_cast<PHINode>(InVal); in insertPHIStores() 973 insertPHIStore(PredBlock, InVal, SpillSlot, Worklist); in insertPHIStores()
|
/external/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 38 unsigned InVal = 4 + CountS; in DecodeINSERTPSMask() local 40 ShuffleMask[CountD] = InVal; in DecodeINSERTPSMask()
|
/external/llvm/lib/Target/AMDGPU/ |
D | R600ISelLowering.cpp | 1884 SDValue InVal = N->getOperand(1); in PerformDAGCombine() local 1889 if (InVal.getOpcode() == ISD::UNDEF) in PerformDAGCombine() 1912 Ops.append(NElts, DAG.getUNDEF(InVal.getValueType())); in PerformDAGCombine() 1922 if (InVal.getValueType() != OpVT) in PerformDAGCombine() 1923 InVal = OpVT.bitsGT(InVal.getValueType()) ? in PerformDAGCombine() 1924 DAG.getNode(ISD::ANY_EXTEND, dl, OpVT, InVal) : in PerformDAGCombine() 1925 DAG.getNode(ISD::TRUNCATE, dl, OpVT, InVal); in PerformDAGCombine() 1926 Ops[Elt] = InVal; in PerformDAGCombine()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1122 Value *InVal = PN->getIncomingValue(op); in AllGlobalLoadUsesSimpleEnoughForHeapSRA() local 1125 if (InVal == StoredVal) continue; in AllGlobalLoadUsesSimpleEnoughForHeapSRA() 1127 if (const PHINode *InPN = dyn_cast<PHINode>(InVal)) { in AllGlobalLoadUsesSimpleEnoughForHeapSRA() 1135 if (const LoadInst *LI = dyn_cast<LoadInst>(InVal)) in AllGlobalLoadUsesSimpleEnoughForHeapSRA() 1424 Value *InVal = PN->getIncomingValue(i); in PerformHeapAllocSRoA() local 1425 InVal = GetHeapSROAValue(InVal, FieldNo, InsertedScalarizedValues, in PerformHeapAllocSRoA() 1427 FieldPN->addIncoming(InVal, PN->getIncomingBlock(i)); in PerformHeapAllocSRoA()
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430ISelLowering.cpp | 486 SDValue InVal; in LowerCCCArguments() local 492 InVal = DAG.getFrameIndex(FI, getPointerTy(DAG.getDataLayout())); in LowerCCCArguments() 507 InVal = DAG.getLoad( in LowerCCCArguments() 513 InVals.push_back(InVal); in LowerCCCArguments()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherEmitter.cpp | 139 uint64_t InVal = Val; in EmitVBRValue() local 148 OS << "/*" << InVal << "*/"; in EmitVBRValue()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 353 llvm::Value *InVal, 1614 llvm::Value *InVal, bool IsInc) { in createBinOpInfoFromIncDec() argument 1616 BinOp.LHS = InVal; in createBinOpInfoFromIncDec() 1617 BinOp.RHS = llvm::ConstantInt::get(InVal->getType(), 1, false); in createBinOpInfoFromIncDec() 1626 const UnaryOperator *E, llvm::Value *InVal, bool IsInc) { in EmitIncDecConsiderOverflowBehavior() argument 1628 llvm::ConstantInt::get(InVal->getType(), IsInc ? 1 : -1, true); in EmitIncDecConsiderOverflowBehavior() 1632 return Builder.CreateAdd(InVal, Amount, Name); in EmitIncDecConsiderOverflowBehavior() 1635 return Builder.CreateNSWAdd(InVal, Amount, Name); in EmitIncDecConsiderOverflowBehavior() 1638 return EmitOverflowCheckedBinOp(createBinOpInfoFromIncDec(E, InVal, IsInc)); in EmitIncDecConsiderOverflowBehavior()
|
D | CGExpr.cpp | 749 ComplexPairTy InVal = EmitLoadOfComplex(LV, E->getExprLoc()); in EmitComplexPrePostIncDec() local 752 if (isa<llvm::IntegerType>(InVal.first->getType())) { in EmitComplexPrePostIncDec() 754 NextVal = llvm::ConstantInt::get(InVal.first->getType(), AmountVal, true); in EmitComplexPrePostIncDec() 757 NextVal = Builder.CreateAdd(InVal.first, NextVal, isInc ? "inc" : "dec"); in EmitComplexPrePostIncDec() 766 NextVal = Builder.CreateFAdd(InVal.first, NextVal, isInc ? "inc" : "dec"); in EmitComplexPrePostIncDec() 769 ComplexPairTy IncVal(NextVal, InVal.second); in EmitComplexPrePostIncDec() 776 return isPre ? IncVal : InVal; in EmitComplexPrePostIncDec()
|