|
LLVM 24.0.0git
|
#include "llvm/Analysis/Delinearization.h"#include "AnalysisOptions.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/Analysis/ScalarEvolution.h"#include "llvm/Analysis/ScalarEvolutionDivision.h"#include "llvm/Analysis/ScalarEvolutionExpressions.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/Function.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/PassManager.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Macros | |
| #define | DL_NAME "delinearize" |
| #define | DEBUG_TYPE DL_NAME |
Functions | |
| static bool | containsUndefs (const SCEV *S) |
| static bool | findArrayDimensionsRec (ScalarEvolution &SE, SmallVectorImpl< const SCEV * > &Terms, SmallVectorImpl< const SCEV * > &Sizes) |
| static bool | containsParameters (SmallVectorImpl< const SCEV * > &Terms) |
| static int | numberOfTerms (const SCEV *S) |
| static const SCEV * | removeConstantFactors (ScalarEvolution &SE, const SCEV *T) |
| static std::optional< APInt > | tryIntoAPInt (const SCEV *S) |
| static bool | collectConstantAbsSteps (ScalarEvolution &SE, const SCEV *Expr, SmallVectorImpl< uint64_t > &Steps, uint64_t ElementSize) |
| Collects the absolute values of constant steps for all induction variables. | |
| #define DEBUG_TYPE DL_NAME |
Definition at line 32 of file Delinearization.cpp.
| #define DL_NAME "delinearize" |
Definition at line 31 of file Delinearization.cpp.
|
static |
Collects the absolute values of constant steps for all induction variables.
Returns true if we can prove that all step recurrences are constants and Expr is divisible by ElementSize. Each step recurrence is stored in Steps after divided by ElementSize.
Definition at line 488 of file Delinearization.cpp.
References collectConstantAbsSteps(), llvm::dyn_cast(), llvm::SCEVAddRecExpr::getStart(), llvm::SCEVAddRecExpr::getStepRecurrence(), llvm::SCEVAddRecExpr::isAffine(), Mod, llvm::SmallVectorTemplateBase< T, bool >::push_back(), tryIntoAPInt(), llvm::APInt::tryZExtValue(), llvm::APInt::udivrem(), and uint64_t.
Referenced by collectConstantAbsSteps(), and llvm::findFixedSizeArrayDimensions().
|
inlinestatic |
Definition at line 238 of file Delinearization.cpp.
References llvm::isa(), llvm::SCEVExprContains(), and T.
Referenced by llvm::findArrayDimensions().
Definition at line 35 of file Delinearization.cpp.
References llvm::dyn_cast(), llvm::isa(), and llvm::SCEVExprContains().
|
static |
Definition at line 193 of file Delinearization.cpp.
References llvm::SCEVDivision::divide(), llvm::dyn_cast(), E(), llvm::erase_if(), findArrayDimensionsRec(), llvm::ScalarEvolution::getMulExpr(), llvm::isa(), llvm::Last, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
Referenced by llvm::findArrayDimensions(), and findArrayDimensionsRec().
Definition at line 247 of file Delinearization.cpp.
References llvm::dyn_cast().
Referenced by llvm::findArrayDimensions().
|
static |
Definition at line 253 of file Delinearization.cpp.
References llvm::dyn_cast(), llvm::ScalarEvolution::getMulExpr(), llvm::isa(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), and T.
Referenced by llvm::findArrayDimensions().
Definition at line 478 of file Delinearization.cpp.
References llvm::dyn_cast().
Referenced by collectConstantAbsSteps(), and llvm::findFixedSizeArrayDimensions().