Lines Matching refs:AvailableValue
179 struct llvm::gvn::AvailableValue { struct in llvm::gvn
194 static AvailableValue get(Value *V, unsigned Offset = 0) { in get() argument
195 AvailableValue Res; in get()
202 static AvailableValue getMI(MemIntrinsic *MI, unsigned Offset = 0) { in getMI() argument
203 AvailableValue Res; in getMI()
210 static AvailableValue getLoad(LoadInst *LI, unsigned Offset = 0) { in getLoad() argument
211 AvailableValue Res; in getLoad()
218 static AvailableValue getUndef() { in getUndef() argument
219 AvailableValue Res; in getUndef()
259 AvailableValue AV;
261 static AvailableValueInBlock get(BasicBlock *BB, AvailableValue &&AV) { in get()
270 return get(BB, AvailableValue::get(V, Offset)); in get()
274 return get(BB, AvailableValue::getUndef()); in getUndef()
872 Value *AvailableValue::MaterializeAdjustedValue(LoadInst *LI, in MaterializeAdjustedValue()
961 Value *Address, AvailableValue &Res) { in AnalyzeLoadAvailability()
979 Res = AvailableValue::get(DepSI->getValueOperand(), Offset); in AnalyzeLoadAvailability()
998 Res = AvailableValue::getLoad(DepLI, Offset); in AnalyzeLoadAvailability()
1011 Res = AvailableValue::getMI(DepMI, Offset); in AnalyzeLoadAvailability()
1033 Res = AvailableValue::get(UndefValue::get(LI->getType())); in AnalyzeLoadAvailability()
1039 Res = AvailableValue::get(Constant::getNullValue(LI->getType())); in AnalyzeLoadAvailability()
1055 Res = AvailableValue::get(S->getValueOperand()); in AnalyzeLoadAvailability()
1070 Res = AvailableValue::getLoad(LD); in AnalyzeLoadAvailability()
1111 AvailableValue AV; in AnalyzeLoadAvailability()
1433 static void reportLoadElim(LoadInst *LI, Value *AvailableValue, in reportLoadElim() argument
1441 << NV("InfavorOfValue", AvailableValue); in reportLoadElim()
1769 AvailableValue AV; in processLoad()
1771 Value *AvailableValue = AV.MaterializeAdjustedValue(L, L, *this); in processLoad() local
1774 patchAndReplaceAllUsesWith(L, AvailableValue); in processLoad()
1779 reportLoadElim(L, AvailableValue, ORE); in processLoad()
1782 if (MD && AvailableValue->getType()->isPtrOrPtrVectorTy()) in processLoad()
1783 MD->invalidateCachedPointerInfo(AvailableValue); in processLoad()