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 *Load, 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()
879 Value *AvailableValue::MaterializeAdjustedValue(LoadInst *Load, in MaterializeAdjustedValue()
1006 Value *Address, AvailableValue &Res) { in AnalyzeLoadAvailability()
1024 Res = AvailableValue::get(DepSI->getValueOperand(), Offset); in AnalyzeLoadAvailability()
1056 Res = AvailableValue::getLoad(DepLoad, Offset); in AnalyzeLoadAvailability()
1069 Res = AvailableValue::getMI(DepMI, Offset); in AnalyzeLoadAvailability()
1091 Res = AvailableValue::get(UndefValue::get(Load->getType())); in AnalyzeLoadAvailability()
1097 Res = AvailableValue::get(Constant::getNullValue(Load->getType())); in AnalyzeLoadAvailability()
1113 Res = AvailableValue::get(S->getValueOperand()); in AnalyzeLoadAvailability()
1128 Res = AvailableValue::getLoad(LD); in AnalyzeLoadAvailability()
1169 AvailableValue AV; in AnalyzeLoadAvailability()
1579 static void reportLoadElim(LoadInst *Load, Value *AvailableValue, in reportLoadElim() argument
1587 << NV("InfavorOfValue", AvailableValue); in reportLoadElim()
1915 AvailableValue AV; in processLoad()
1917 Value *AvailableValue = AV.MaterializeAdjustedValue(L, L, *this); in processLoad() local
1920 patchAndReplaceAllUsesWith(L, AvailableValue); in processLoad()
1925 reportLoadElim(L, AvailableValue, ORE); in processLoad()
1928 if (MD && AvailableValue->getType()->isPtrOrPtrVectorTy()) in processLoad()
1929 MD->invalidateCachedPointerInfo(AvailableValue); in processLoad()