From 76747f76a05e5bc66a455d4a0a1e6d364172caad Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 24 May 2011 12:20:07 +0000 Subject: [PATCH] ScheduleOptimizer: Declare functions static Functions that are currently only used in this file can be declared static. Suggested by: ether llvm-svn: 131960 --- polly/lib/ScheduleOptimizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polly/lib/ScheduleOptimizer.cpp b/polly/lib/ScheduleOptimizer.cpp index 2227a00f94e7..877e2559dcde 100644 --- a/polly/lib/ScheduleOptimizer.cpp +++ b/polly/lib/ScheduleOptimizer.cpp @@ -58,7 +58,7 @@ static int getSingleMap(__isl_take isl_map *map, void *user) { return 0; } -void extendScattering(Scop &S, unsigned scatDimensions) { +static void extendScattering(Scop &S, unsigned scatDimensions) { for (Scop::iterator SI = S.begin(), SE = S.end(); SI != SE; ++SI) { ScopStmt *stmt = *SI; @@ -100,7 +100,7 @@ void extendScattering(Scop &S, unsigned scatDimensions) { // o_0 % 32 = 0 and o_1 % 32 = 0 and o_2 % 32 = 0 // and o0 <= i0 <= o0 + 32 and o1 <= i1 <= o1 + 32 and o2 <= i2 <= o2 + 32 -isl_map *tileBand(isl_map *band) { +static isl_map *tileBand(isl_map *band) { int dimensions = isl_map_n_out(band); int tileSize = 32;