Lines Matching refs:BDV

331   Value * const BDV;  member
335 BaseDefiningValueResult(Value *BDV, bool IsKnownBase) in BaseDefiningValueResult()
336 : BDV(BDV), IsKnownBase(IsKnownBase) { in BaseDefiningValueResult()
340 bool MustBeBase = isKnownBaseResult(BDV); in BaseDefiningValueResult()
555 Cached = findBaseDefiningValue(I).BDV; in findBaseDefiningValueCached()
748 auto isExpectedBDVType = [](Value *BDV) { in findBasePointer() argument
749 return isa<PHINode>(BDV) || isa<SelectInst>(BDV) || in findBasePointer()
750 isa<ExtractElementInst>(BDV) || isa<InsertElementInst>(BDV); in findBasePointer()
829 Value *BDV = Pair.first; in findBasePointer() local
830 assert(!isKnownBaseResult(BDV) && "why did it get added?"); in findBasePointer()
835 Value *BDV = findBaseOrBDV(V, cache); in findBasePointer() local
836 return getStateForBDV(BDV); in findBasePointer()
840 if (SelectInst *select = dyn_cast<SelectInst>(BDV)) { in findBasePointer()
843 } else if (PHINode *Phi = dyn_cast<PHINode>(BDV)) { in findBasePointer()
846 } else if (auto *EE = dyn_cast<ExtractElementInst>(BDV)) { in findBasePointer()
853 auto *IE = cast<InsertElementInst>(BDV); in findBasePointer()
858 BDVState oldState = States[BDV]; in findBasePointer()
862 States[BDV] = newState; in findBasePointer()
957 Value *BDV = findBaseOrBDV(Input, cache); in findBasePointer() local
959 if (isKnownBaseResult(BDV)) { in findBasePointer()
960 Base = BDV; in findBasePointer()
963 assert(States.count(BDV)); in findBasePointer()
964 Base = States[BDV].getBase(); in findBasePointer()
980 Instruction *BDV = cast<Instruction>(Pair.first); in findBasePointer() local
983 assert(!isKnownBaseResult(BDV) && "why did it get added?"); in findBasePointer()
989 PHINode *phi = cast<PHINode>(BDV); in findBasePointer()
1032 SelectInst *Sel = cast<SelectInst>(BDV); in findBasePointer()
1043 Value *InVal = cast<ExtractElementInst>(BDV)->getVectorOperand(); in findBasePointer()
1050 auto *BdvIE = cast<InsertElementInst>(BDV); in findBasePointer()
1074 auto *BDV = Pair.first; in findBasePointer() local
1077 assert(BDV && Base); in findBasePointer()
1078 assert(!isKnownBaseResult(BDV) && "why did it get added?"); in findBasePointer()
1084 ReverseMap[Base] = BDV; in findBasePointer()
1090 auto ReplaceBaseInstWith = [&](Value *BDV, Instruction *BaseI, in findBasePointer()
1101 assert(States.count(BDV)); in findBasePointer()
1102 assert(States[BDV].isConflict() && States[BDV].getBase() == BaseI); in findBasePointer()
1103 States[BDV] = BDVState(BDVState::Conflict, Replacement); in findBasePointer()
1128 auto *BDV = Pair.first; in findBasePointer() local
1130 assert(BDV && base); in findBasePointer()
1132 std::string fromstr = cache.count(BDV) ? cache[BDV]->getName() : "none"; in findBasePointer()
1134 << " for: " << BDV->getName() in findBasePointer()
1138 if (cache.count(BDV)) { in findBasePointer()
1141 assert((!isKnownBaseResult(cache[BDV]) || cache[BDV] == base) && in findBasePointer()
1144 cache[BDV] = base; in findBasePointer()