diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-04-10 06:55:45 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-04-10 06:55:45 +0000 |
commit | d7e58640a5660d44ac12d1b0175bf6fe32db5b8d (patch) | |
tree | 1a962a720f331027d10cfb2c758a0e5496db9c13 /polly/include | |
parent | 0ee50f6ee46902a568eaa3d8baaa2e99f892fb07 (diff) | |
download | bcm5719-llvm-d7e58640a5660d44ac12d1b0175bf6fe32db5b8d.tar.gz bcm5719-llvm-d7e58640a5660d44ac12d1b0175bf6fe32db5b8d.zip |
Update formatting to latest version of clang-format
llvm-svn: 179160
Diffstat (limited to 'polly/include')
-rw-r--r-- | polly/include/polly/CodeGen/BlockGenerators.h | 8 | ||||
-rw-r--r-- | polly/include/polly/CodeGen/PTXGenerator.h | 10 | ||||
-rw-r--r-- | polly/include/polly/LinkAllPasses.h | 2 | ||||
-rwxr-xr-x | polly/include/polly/MayAliasSet.h | 1 | ||||
-rwxr-xr-x | polly/include/polly/ScopInfo.h | 3 | ||||
-rwxr-xr-x | polly/include/polly/ScopPass.h | 2 | ||||
-rwxr-xr-x | polly/include/polly/Support/SCEVValidator.h | 6 |
7 files changed, 19 insertions, 13 deletions
diff --git a/polly/include/polly/CodeGen/BlockGenerators.h b/polly/include/polly/CodeGen/BlockGenerators.h index 1942e466ae4..5863f373064 100644 --- a/polly/include/polly/CodeGen/BlockGenerators.h +++ b/polly/include/polly/CodeGen/BlockGenerators.h @@ -192,10 +192,10 @@ public: /// loop containing the statemenet. /// @param P A reference to the pass this function is called from. /// The pass is needed to update other analysis. - static void generate( - IRBuilder<> &B, ScopStmt &Stmt, VectorValueMapT &GlobalMaps, - std::vector<LoopToScevMapT> &VLTS, __isl_keep isl_map *Schedule, - Pass *P) { + static void + generate(IRBuilder<> &B, ScopStmt &Stmt, VectorValueMapT &GlobalMaps, + std::vector<LoopToScevMapT> &VLTS, __isl_keep isl_map *Schedule, + Pass *P) { VectorBlockGenerator Generator(B, GlobalMaps, VLTS, Stmt, Schedule, P); Generator.copyBB(); } diff --git a/polly/include/polly/CodeGen/PTXGenerator.h b/polly/include/polly/CodeGen/PTXGenerator.h index 556549d7f9c..42c11dab955 100644 --- a/polly/include/polly/CodeGen/PTXGenerator.h +++ b/polly/include/polly/CodeGen/PTXGenerator.h @@ -130,14 +130,14 @@ private: Value *Size); void createCallSetKernelParameters(Value *Kernel, Value *BlockWidth, Value *BlockHeight, Value *DeviceData); - void createCallLaunchKernel(Value *Kernel, Value *GridWidth, - Value *GridHeight); + void + createCallLaunchKernel(Value *Kernel, Value *GridWidth, Value *GridHeight); void createCallStartTimerByCudaEvent(Value *StartEvent, Value *StopEvent); void createCallStopTimerByCudaEvent(Value *StartEvent, Value *StopEvent, Value *Timer); - void createCallCleanupGPGPUResources(Value *HostData, Value *DeviceData, - Value *Module, Value *Context, - Value *Kernel); + void + createCallCleanupGPGPUResources(Value *HostData, Value *DeviceData, + Value *Module, Value *Context, Value *Kernel); /// @brief Create the CUDA subfunction. /// diff --git a/polly/include/polly/LinkAllPasses.h b/polly/include/polly/LinkAllPasses.h index 061c09d8b9e..5f3b466612e 100644 --- a/polly/include/polly/LinkAllPasses.h +++ b/polly/include/polly/LinkAllPasses.h @@ -1,4 +1,4 @@ -//===- polly/LinkAllPasses.h ------------ Reference All Passes ---*- C++ -*-===// +//===- polly/LinkAllPasses.h ----------- Reference All Passes ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // diff --git a/polly/include/polly/MayAliasSet.h b/polly/include/polly/MayAliasSet.h index 9c477a2daa1..dfdd4e3589a 100755 --- a/polly/include/polly/MayAliasSet.h +++ b/polly/include/polly/MayAliasSet.h @@ -83,6 +83,7 @@ class MayAliasSet { MayAliasSet() {} friend class MayAliasSetInfo; + public: /// @name Must Alias Pointer Iterators diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 355dde6d8ec..a1f7dbbe140 100755 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -106,6 +106,7 @@ private: /// Updated access relation read from JSCOP file. isl_map *newAccessRelation; + public: // @brief Create a memory access from an access in LLVM-IR. // @@ -293,6 +294,7 @@ class ScopStmt { SmallVectorImpl<unsigned> &Scatter); friend class Scop; + public: ~ScopStmt(); @@ -469,6 +471,7 @@ class Scop { void printStatements(raw_ostream &OS) const; friend class ScopInfo; + public: ~Scop(); diff --git a/polly/include/polly/ScopPass.h b/polly/include/polly/ScopPass.h index cc6fc2bec79..3d5373ac185 100755 --- a/polly/include/polly/ScopPass.h +++ b/polly/include/polly/ScopPass.h @@ -32,6 +32,7 @@ class Scop; /// runOnRegion, subclasses override runOnScop. class ScopPass : public RegionPass { Scop *S; + protected: explicit ScopPass(char &ID) : RegionPass(ID), S(0) {} @@ -50,6 +51,7 @@ public: assert(S && "Not on a Scop!"); return *S; } + private: virtual bool runOnRegion(Region *R, RGPassManager &RGM); void print(raw_ostream &OS, const Module *) const; diff --git a/polly/include/polly/Support/SCEVValidator.h b/polly/include/polly/Support/SCEVValidator.h index 404ddfe1e13..ffaf5ee0c6b 100755 --- a/polly/include/polly/Support/SCEVValidator.h +++ b/polly/include/polly/Support/SCEVValidator.h @@ -28,9 +28,9 @@ namespace polly { /// @param S The SCEV to analyze. /// @param R The region in which we look for dependences. bool hasScalarDepsInsideRegion(const llvm::SCEV *S, const llvm::Region *R); -bool isAffineExpr(const llvm::Region *R, const llvm::SCEV *Expression, - llvm::ScalarEvolution &SE, - const llvm::Value *BaseAddress = 0); +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); |