Lines Matching refs:AvailableValue

162 struct llvm::gvn::AvailableValue {  struct in llvm::gvn
177 static AvailableValue get(Value *V, unsigned Offset = 0) { in get() argument
178 AvailableValue Res; in get()
185 static AvailableValue getMI(MemIntrinsic *MI, unsigned Offset = 0) { in getMI() argument
186 AvailableValue Res; in getMI()
193 static AvailableValue getLoad(LoadInst *LI, unsigned Offset = 0) { in getLoad() argument
194 AvailableValue Res; in getLoad()
201 static AvailableValue getUndef() { in getUndef() argument
202 AvailableValue Res; in getUndef()
242 AvailableValue AV;
244 static AvailableValueInBlock get(BasicBlock *BB, AvailableValue &&AV) { in get()
253 return get(BB, AvailableValue::get(V, Offset)); in get()
257 return get(BB, AvailableValue::getUndef()); in getUndef()
786 Value *AvailableValue::MaterializeAdjustedValue(LoadInst *LI, in MaterializeAdjustedValue()
875 Value *Address, AvailableValue &Res) { in AnalyzeLoadAvailability()
892 Res = AvailableValue::get(DepSI->getValueOperand(), Offset); in AnalyzeLoadAvailability()
911 Res = AvailableValue::getLoad(DepLI, Offset); in AnalyzeLoadAvailability()
924 Res = AvailableValue::getMI(DepMI, Offset); in AnalyzeLoadAvailability()
948 Res = AvailableValue::get(UndefValue::get(LI->getType())); in AnalyzeLoadAvailability()
954 Res = AvailableValue::get(Constant::getNullValue(LI->getType())); in AnalyzeLoadAvailability()
971 Res = AvailableValue::get(S->getValueOperand()); in AnalyzeLoadAvailability()
987 Res = AvailableValue::getLoad(LD); in AnalyzeLoadAvailability()
1028 AvailableValue AV; in AnalyzeLoadAvailability()
1288 static void reportLoadElim(LoadInst *LI, Value *AvailableValue, in reportLoadElim() argument
1296 << NV("InfavorOfValue", AvailableValue); in reportLoadElim()
1484 AvailableValue AV; in processLoad()
1486 Value *AvailableValue = AV.MaterializeAdjustedValue(L, L, *this); in processLoad() local
1489 patchAndReplaceAllUsesWith(L, AvailableValue); in processLoad()
1492 reportLoadElim(L, AvailableValue, ORE); in processLoad()
1495 if (MD && AvailableValue->getType()->isPtrOrPtrVectorTy()) in processLoad()
1496 MD->invalidateCachedPointerInfo(AvailableValue); in processLoad()