Changeset View
Changeset View
Standalone View
Standalone View
include/llvm/Transforms/Utils/LoopUtils.h
Show First 20 Lines • Show All 275 Lines • ▼ Show 20 Lines | |||||
/// exception, it takes LICMSafetyInfo and loop as argument. | /// exception, it takes LICMSafetyInfo and loop as argument. | ||||
/// Updates safety information in LICMSafetyInfo argument. | /// Updates safety information in LICMSafetyInfo argument. | ||||
void computeLICMSafetyInfo(LICMSafetyInfo *, Loop *); | void computeLICMSafetyInfo(LICMSafetyInfo *, Loop *); | ||||
/// \brief Checks if the given PHINode in a loop header is an induction | /// \brief Checks if the given PHINode in a loop header is an induction | ||||
/// variable. Returns true if this is an induction PHI along with the step | /// variable. Returns true if this is an induction PHI along with the step | ||||
/// value. | /// value. | ||||
bool isInductionPHI(PHINode *, ScalarEvolution *, ConstantInt *&); | bool isInductionPHI(PHINode *, ScalarEvolution *, ConstantInt *&); | ||||
/// \brief Returns the instructions that use values defined in the loop. | |||||
/// Iterates over loop instruction and get its outsider users. | |||||
anemet: Nit: I don't think this second line is necessary to describe the API, I would drop it. | |||||
SmallVector<Instruction *, 8> findDefsUsedOutsideOfLoop(Loop *L); | |||||
} | } | ||||
#endif | #endif |
Nit: I don't think this second line is necessary to describe the API, I would drop it.