Lines Matching refs:AvailableValue

177 struct llvm::gvn::AvailableValue {  struct in llvm::gvn
196 static AvailableValue get(Value *V, unsigned Offset = 0) { in get() argument
197 AvailableValue Res; in get()
204 static AvailableValue getMI(MemIntrinsic *MI, unsigned Offset = 0) { in getMI() argument
205 AvailableValue Res; in getMI()
212 static AvailableValue getLoad(LoadInst *Load, unsigned Offset = 0) { in getLoad() argument
213 AvailableValue Res; in getLoad()
220 static AvailableValue getUndef() { in getUndef() argument
221 AvailableValue Res; in getUndef()
228 static AvailableValue getSelect(SelectInst *Sel) { in getSelect() argument
229 AvailableValue Res; in getSelect()
275 AvailableValue AV;
277 static AvailableValueInBlock get(BasicBlock *BB, AvailableValue &&AV) { in get()
286 return get(BB, AvailableValue::get(V, Offset)); in get()
290 return get(BB, AvailableValue::getUndef()); in getUndef()
294 return get(BB, AvailableValue::getSelect(Sel)); in getSelect()
965 Value *AvailableValue::MaterializeAdjustedValue(LoadInst *Load, in MaterializeAdjustedValue()
1109 static Optional<AvailableValue>
1134 return AvailableValue::getSelect(Sel); in tryToConvertLoadOfPtrSelect()
1138 Value *Address, AvailableValue &Res) { in AnalyzeLoadAvailability()
1167 Res = AvailableValue::get(DepSI->getValueOperand(), Offset); in AnalyzeLoadAvailability()
1197 Res = AvailableValue::getLoad(DepLoad, Offset); in AnalyzeLoadAvailability()
1210 Res = AvailableValue::getMI(DepMI, Offset); in AnalyzeLoadAvailability()
1231 Res = AvailableValue::get(UndefValue::get(Load->getType())); in AnalyzeLoadAvailability()
1237 Res = AvailableValue::get(InitVal); in AnalyzeLoadAvailability()
1253 Res = AvailableValue::get(S->getValueOperand()); in AnalyzeLoadAvailability()
1268 Res = AvailableValue::getLoad(LD); in AnalyzeLoadAvailability()
1316 AvailableValue AV; in AnalyzeLoadAvailability()
1718 static void reportLoadElim(LoadInst *Load, Value *AvailableValue, in reportLoadElim() argument
1726 << NV("InfavorOfValue", AvailableValue); in reportLoadElim()
2056 AvailableValue AV; in processLoad()
2058 Value *AvailableValue = AV.MaterializeAdjustedValue(L, L, *this); in processLoad() local
2061 patchAndReplaceAllUsesWith(L, AvailableValue); in processLoad()
2066 reportLoadElim(L, AvailableValue, ORE); in processLoad()
2069 if (MD && AvailableValue->getType()->isPtrOrPtrVectorTy()) in processLoad()
2070 MD->invalidateCachedPointerInfo(AvailableValue); in processLoad()