Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Analysis/ScalarEvolution.h
Show First 20 Lines • Show All 1,770 Lines • ▼ Show 20 Lines | private: | ||||
/// Compute \p LHS - \p RHS and returns the result as an APInt if it is a | /// Compute \p LHS - \p RHS and returns the result as an APInt if it is a | ||||
/// constant, and None if it isn't. | /// constant, and None if it isn't. | ||||
/// | /// | ||||
/// This is intended to be a cheaper version of getMinusSCEV. We can be | /// This is intended to be a cheaper version of getMinusSCEV. We can be | ||||
/// frugal here since we just bail out of actually constructing and | /// frugal here since we just bail out of actually constructing and | ||||
/// canonicalizing an expression in the cases where the result isn't going | /// canonicalizing an expression in the cases where the result isn't going | ||||
/// to be a constant. | /// to be a constant. | ||||
public: | |||||
bjope: nit: Probably cleaner to move this declaration up into the public section, now when it is made… | |||||
Optional<APInt> computeConstantDifference(const SCEV *LHS, const SCEV *RHS); | Optional<APInt> computeConstantDifference(const SCEV *LHS, const SCEV *RHS); | ||||
private: | |||||
/// Drop memoized information computed for S. | /// Drop memoized information computed for S. | ||||
void forgetMemoizedResults(const SCEV *S); | void forgetMemoizedResults(const SCEV *S); | ||||
/// Return an existing SCEV for V if there is one, otherwise return nullptr. | /// Return an existing SCEV for V if there is one, otherwise return nullptr. | ||||
const SCEV *getExistingSCEV(Value *V); | const SCEV *getExistingSCEV(Value *V); | ||||
/// Return false iff given SCEV contains a SCEVUnknown with NULL value- | /// Return false iff given SCEV contains a SCEVUnknown with NULL value- | ||||
/// pointer. | /// pointer. | ||||
▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines |
nit: Probably cleaner to move this declaration up into the public section, now when it is made available in the public API.