Lines Matching refs:AvailableValue

190 struct llvm::gvn::AvailableValue {  struct in llvm::gvn
211 static AvailableValue get(Value *V, unsigned Offset = 0) { in get() argument
212 AvailableValue Res; in get()
219 static AvailableValue getMI(MemIntrinsic *MI, unsigned Offset = 0) { in getMI() argument
220 AvailableValue Res; in getMI()
227 static AvailableValue getLoad(LoadInst *Load, unsigned Offset = 0) { in getLoad() argument
228 AvailableValue Res; in getLoad()
235 static AvailableValue getUndef() { in getUndef() argument
236 AvailableValue Res; in getUndef()
243 static AvailableValue getSelect(SelectInst *Sel, Value *V1, Value *V2) { in getSelect() argument
244 AvailableValue Res; in getSelect()
292 AvailableValue AV;
294 static AvailableValueInBlock get(BasicBlock *BB, AvailableValue &&AV) { in get()
303 return get(BB, AvailableValue::get(V, Offset)); in get()
307 return get(BB, AvailableValue::getUndef()); in getUndef()
312 return get(BB, AvailableValue::getSelect(Sel, V1, V2)); in getSelect()
1006 Value *AvailableValue::MaterializeAdjustedValue(LoadInst *Load, in MaterializeAdjustedValue()
1168 std::optional<AvailableValue>
1187 return AvailableValue::get(DepSI->getValueOperand(), Offset); in AnalyzeLoadAvailability()
1217 return AvailableValue::getLoad(DepLoad, Offset); in AnalyzeLoadAvailability()
1228 return AvailableValue::getMI(DepMI, Offset); in AnalyzeLoadAvailability()
1247 return AvailableValue::get(UndefValue::get(Load->getType())); in AnalyzeLoadAvailability()
1251 return AvailableValue::get(InitVal); in AnalyzeLoadAvailability()
1265 return AvailableValue::get(S->getValueOperand()); in AnalyzeLoadAvailability()
1279 return AvailableValue::getLoad(LD); in AnalyzeLoadAvailability()
1298 return AvailableValue::getSelect(Sel, V1, V2); in AnalyzeLoadAvailability()
1823 static void reportLoadElim(LoadInst *Load, Value *AvailableValue, in reportLoadElim() argument
1831 << NV("InfavorOfValue", AvailableValue); in reportLoadElim()
2167 Value *AvailableValue = AV->MaterializeAdjustedValue(L, L, *this); in processLoad() local
2171 L->replaceAllUsesWith(AvailableValue); in processLoad()
2176 reportLoadElim(L, AvailableValue, ORE); in processLoad()
2179 if (MD && AvailableValue->getType()->isPtrOrPtrVectorTy()) in processLoad()
2180 MD->invalidateCachedPointerInfo(AvailableValue); in processLoad()