11#ifndef POLLY_SCEV_VALIDATOR_H
12#define POLLY_SCEV_VALIDATOR_H
28 llvm::SetVector<const llvm::Loop *> &Loops);
36void findValues(
const llvm::SCEV *Expr, llvm::ScalarEvolution &SE,
37 llvm::SetVector<llvm::Value *> &Values);
48 llvm::Loop *Scope,
bool AllowLoops,
51 const llvm::SCEV *Expression, llvm::ScalarEvolution &SE,
56 llvm::Loop *Scope, llvm::ScalarEvolution &SE,
60 const llvm::SCEV *Expression,
61 llvm::ScalarEvolution &SE);
69std::pair<const llvm::SCEVConstant *, const llvm::SCEV *>
79 llvm::ScalarEvolution &SE,
static RegisterPass< ScopPrinterWrapperPass > M("dot-scops", "Polly - Print Scops of function")
Pass to detect the maximal static control parts (Scops) of a function.
This file contains the declaration of the PolyhedralInfo class, which will provide an interface to ex...
bool isAffineConstraint(llvm::Value *V, const llvm::Region *R, llvm::Loop *Scope, llvm::ScalarEvolution &SE, ParameterSetTy &Params, bool OrExpr=false)
Check if V describes an affine constraint in R.
void findValues(const llvm::SCEV *Expr, llvm::ScalarEvolution &SE, llvm::SetVector< llvm::Value * > &Values)
Find the values referenced by SCEVUnknowns in a given SCEV expression.
void findLoops(const llvm::SCEV *Expr, llvm::SetVector< const llvm::Loop * > &Loops)
Find the loops referenced from a SCEV expression.
bool isAffineExpr(const llvm::Region *R, llvm::Loop *Scope, const llvm::SCEV *Expression, llvm::ScalarEvolution &SE, InvariantLoadsSetTy *ILS=nullptr)
@ PHI
MemoryKind::PHI: Models PHI nodes within the SCoP.
const llvm::SCEV * tryForwardThroughPHI(const llvm::SCEV *Expr, llvm::Region &R, llvm::ScalarEvolution &SE, ScopDetection *SD)
Try to look through PHI nodes, where some incoming edges come from error blocks.
llvm::SetVector< llvm::AssertingVH< llvm::LoadInst > > InvariantLoadsSetTy
Type for a set of invariant loads.
std::pair< const llvm::SCEVConstant *, const llvm::SCEV * > extractConstantFactor(const llvm::SCEV *M, llvm::ScalarEvolution &SE)
Extract the constant factors from the multiplication M.
llvm::SetVector< const llvm::SCEV * > ParameterSetTy
Set type for parameters.
ParameterSetTy getParamsInAffineExpr(const llvm::Region *R, llvm::Loop *Scope, const llvm::SCEV *Expression, llvm::ScalarEvolution &SE)
bool hasScalarDepsInsideRegion(const llvm::SCEV *Expr, const llvm::Region *R, llvm::Loop *Scope, bool AllowLoops, const InvariantLoadsSetTy &ILS)
Returns true when the SCEV contains references to instructions within the region.
llvm::Value * getUniqueNonErrorValue(llvm::PHINode *PHI, llvm::Region *R, ScopDetection *SD)
Return a unique non-error block incoming value for PHI if available.