summaryrefslogtreecommitdiffstats
path: root/polly/include
diff options
context:
space:
mode:
Diffstat (limited to 'polly/include')
-rwxr-xr-xpolly/include/polly/Support/ScopHelper.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h
index 4c2336591ff..4f275b2f74b 100755
--- a/polly/include/polly/Support/ScopHelper.h
+++ b/polly/include/polly/Support/ScopHelper.h
@@ -28,6 +28,7 @@ class BasicBlock;
}
namespace polly {
+class Scop;
/// Temporary Hack for extended regiontree.
///
/// @brief Cast the region to loop.
@@ -51,6 +52,14 @@ bool hasInvokeEdge(const llvm::PHINode *PN);
llvm::Value *getPointerOperand(llvm::Instruction &Inst);
llvm::BasicBlock *createSingleExitEdge(llvm::Region *R, llvm::Pass *P);
+/// @brief Simplify the region in a scop to have a single entry edge
+/// and a single exit edge.
+///
+/// @param S The scop that is simplified.
+/// @param P The pass that is currently running.
+///
+void simplifyRegion(polly::Scop *S, llvm::Pass *P);
+
/// @brief Split the entry block of a function to store the newly inserted
/// allocations outside of all Scops.
///
OpenPOWER on IntegriCloud