[llvm-commits] [polly] r131960 - /polly/trunk/lib/ScheduleOptimizer.cpp

Tobias Grosser grosser at fim.uni-passau.de
Tue May 24 05:20:07 PDT 2011


Author: grosser
Date: Tue May 24 07:20:07 2011
New Revision: 131960

URL: http://llvm.org/viewvc/llvm-project?rev=131960&view=rev
Log:
ScheduleOptimizer: Declare functions static

Functions that are currently only used in this file can be declared static.

Suggested by: ether

Modified:
    polly/trunk/lib/ScheduleOptimizer.cpp

Modified: polly/trunk/lib/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/ScheduleOptimizer.cpp?rev=131960&r1=131959&r2=131960&view=diff
==============================================================================
--- polly/trunk/lib/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/ScheduleOptimizer.cpp Tue May 24 07:20:07 2011
@@ -58,7 +58,7 @@
   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 @@
 //   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;
 





More information about the llvm-commits mailing list