blob: 98ba09e273ab88cc9d01be1718e233a88e1cb9de [file] [log] [blame]
//===--- SCEVValidator.h - Detect Scops -------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// Checks if a SCEV expression represents a valid affine expression.
//===----------------------------------------------------------------------===//
#ifndef POLLY_SCEV_VALIDATOR_H
#define POLLY_SCEV_VALIDATOR_H
#include <vector>
namespace llvm {
class Region;
class SCEV;
class ScalarEvolution;
class Value;
}
namespace polly {
bool isAffineExpr(const llvm::Region *R, const llvm::SCEV *Expression,
llvm::ScalarEvolution &SE,
const llvm::Value *BaseAddress = 0);
std::vector<const llvm::SCEV*> getParamsInAffineExpr(
const llvm::Region *R,
const llvm::SCEV *Expression,
llvm::ScalarEvolution &SE,
const llvm::Value *BaseAddress = 0);
}
#endif