diff options
35 files changed, 61 insertions, 61 deletions
diff --git a/polly/include/polly/Canonicalization.h b/polly/include/polly/Canonicalization.h index 723b49073ba..6bd16fb6bbb 100644 --- a/polly/include/polly/Canonicalization.h +++ b/polly/include/polly/Canonicalization.h @@ -22,6 +22,6 @@ namespace polly { /// of Polly. The set of optimization passes scheduled here is probably not yet /// optimal. TODO: Optimize the set of canonicalization passes. void registerCanonicalicationPasses(llvm::legacy::PassManagerBase &PM); -} +} // namespace polly #endif diff --git a/polly/include/polly/CodeGen/BlockGenerators.h b/polly/include/polly/CodeGen/BlockGenerators.h index 8f8351a5a1d..5efb596958e 100644 --- a/polly/include/polly/CodeGen/BlockGenerators.h +++ b/polly/include/polly/CodeGen/BlockGenerators.h @@ -29,7 +29,7 @@ namespace llvm { class Pass; class Region; class ScalarEvolution; -} +} // namespace llvm namespace polly { using namespace llvm; @@ -833,5 +833,5 @@ private: ValueMapT &BBMap, LoopToScevMapT <S) override; }; -} +} // namespace polly #endif diff --git a/polly/include/polly/CodeGen/CodeGeneration.h b/polly/include/polly/CodeGen/CodeGeneration.h index 03dc869c2e7..5c6430a7601 100644 --- a/polly/include/polly/CodeGen/CodeGeneration.h +++ b/polly/include/polly/CodeGen/CodeGeneration.h @@ -23,6 +23,6 @@ enum VectorizerChoice { VECTORIZER_POLLY, }; extern VectorizerChoice PollyVectorizerChoice; -} +} // namespace polly #endif // POLLY_CODEGENERATION_H diff --git a/polly/include/polly/CodeGen/CodegenCleanup.h b/polly/include/polly/CodeGen/CodegenCleanup.h index 779532f8a1f..a1fd6805dfe 100644 --- a/polly/include/polly/CodeGen/CodegenCleanup.h +++ b/polly/include/polly/CodeGen/CodegenCleanup.h @@ -4,14 +4,14 @@ namespace llvm { class FunctionPass; class PassRegistry; -} +} // namespace llvm namespace polly { llvm::FunctionPass *createCodegenCleanupPass(); -} +} // namespace polly namespace llvm { void initializeCodegenCleanupPass(llvm::PassRegistry &); -} +} // namespace llvm #endif diff --git a/polly/include/polly/CodeGen/IRBuilder.h b/polly/include/polly/CodeGen/IRBuilder.h index 169e288015f..4367405b782 100644 --- a/polly/include/polly/CodeGen/IRBuilder.h +++ b/polly/include/polly/CodeGen/IRBuilder.h @@ -21,7 +21,7 @@ namespace llvm { class ScalarEvolution; -} +} // namespace llvm namespace polly { class Scop; @@ -140,5 +140,5 @@ static inline PollyIRBuilder createPollyIRBuilder(llvm::BasicBlock *BB, Builder.SetInsertPoint(BB->getTerminator()); return Builder; } -} +} // namespace polly #endif diff --git a/polly/include/polly/CodeGen/IslAst.h b/polly/include/polly/CodeGen/IslAst.h index 0ee9dffa20e..3903cf2a0c5 100644 --- a/polly/include/polly/CodeGen/IslAst.h +++ b/polly/include/polly/CodeGen/IslAst.h @@ -28,7 +28,7 @@ namespace llvm { class raw_ostream; -} +} // namespace llvm struct isl_pw_aff; struct isl_ast_node; @@ -183,10 +183,10 @@ public: ///} }; -} +} // namespace polly namespace llvm { class PassRegistry; void initializeIslAstInfoPass(llvm::PassRegistry &); -} +} // namespace llvm #endif /* POLLY_ISL_AST_H */ diff --git a/polly/include/polly/CodeGen/IslExprBuilder.h b/polly/include/polly/CodeGen/IslExprBuilder.h index 3e112829e50..12ed91518ca 100644 --- a/polly/include/polly/CodeGen/IslExprBuilder.h +++ b/polly/include/polly/CodeGen/IslExprBuilder.h @@ -21,7 +21,7 @@ namespace llvm { class DataLayout; class ScalarEvolution; -} +} // namespace llvm struct isl_id; @@ -36,7 +36,7 @@ public: } enum { NumLowBitsAvailable = 0 }; }; -} +} // namespace llvm namespace polly { @@ -227,6 +227,6 @@ private: llvm::Value *createMul(llvm::Value *LHS, llvm::Value *RHS, const llvm::Twine &Name = ""); }; -} +} // namespace polly #endif diff --git a/polly/include/polly/CodeGen/LoopGenerators.h b/polly/include/polly/CodeGen/LoopGenerators.h index 6e2dd4f9c58..70eeaa2d510 100644 --- a/polly/include/polly/CodeGen/LoopGenerators.h +++ b/polly/include/polly/CodeGen/LoopGenerators.h @@ -24,7 +24,7 @@ namespace llvm { class Value; class Pass; class BasicBlock; -} +} // namespace llvm namespace polly { using namespace llvm; diff --git a/polly/include/polly/CodeGen/RuntimeDebugBuilder.h b/polly/include/polly/CodeGen/RuntimeDebugBuilder.h index 7ea1115e158..7dd0453811c 100644 --- a/polly/include/polly/CodeGen/RuntimeDebugBuilder.h +++ b/polly/include/polly/CodeGen/RuntimeDebugBuilder.h @@ -20,7 +20,7 @@ namespace llvm { class Value; class Function; -} +} // namespace llvm namespace polly { @@ -147,6 +147,6 @@ private: static std::vector<llvm::Value *> getGPUThreadIdentifiers(PollyIRBuilder &Builder); }; -} +} // namespace polly #endif diff --git a/polly/include/polly/CodeGen/Utils.h b/polly/include/polly/CodeGen/Utils.h index 0752aa368de..b8db254651c 100644 --- a/polly/include/polly/CodeGen/Utils.h +++ b/polly/include/polly/CodeGen/Utils.h @@ -17,7 +17,7 @@ namespace llvm { class Pass; class Value; class BasicBlock; -} +} // namespace llvm namespace polly { @@ -57,5 +57,5 @@ class Scop; /// @return The 'StartBlock' to which new code can be added. llvm::BasicBlock *executeScopConditionally(Scop &S, llvm::Pass *P, llvm::Value *RTC); -} +} // namespace polly #endif diff --git a/polly/include/polly/DependenceInfo.h b/polly/include/polly/DependenceInfo.h index 1654525fc32..609e8107689 100644 --- a/polly/include/polly/DependenceInfo.h +++ b/polly/include/polly/DependenceInfo.h @@ -232,11 +232,11 @@ private: std::unique_ptr<Dependences> D[Dependences::NumAnalysisLevels]; }; -} // End polly namespace. +} // namespace polly namespace llvm { class PassRegistry; void initializeDependenceInfoPass(llvm::PassRegistry &); -} +} // namespace llvm #endif diff --git a/polly/include/polly/LinkAllPasses.h b/polly/include/polly/LinkAllPasses.h index 3225e0d7886..d9f07a06ef3 100644 --- a/polly/include/polly/LinkAllPasses.h +++ b/polly/include/polly/LinkAllPasses.h @@ -23,7 +23,7 @@ class Pass; class PassInfo; class PassRegistry; class RegionPass; -} +} // namespace llvm namespace polly { llvm::Pass *createCodePreparationPass(); @@ -43,7 +43,7 @@ llvm::Pass *createCodeGenerationPass(); llvm::Pass *createIslScheduleOptimizerPass(); extern char &CodePreparationID; -} +} // namespace polly namespace { struct PollyForcePassLinking { @@ -72,7 +72,7 @@ struct PollyForcePassLinking { polly::createIslScheduleOptimizerPass(); } } PollyForcePassLinking; // Force link by creating a global definition. -} +} // namespace namespace llvm { class PassRegistry; @@ -84,6 +84,6 @@ void initializeIslAstInfoPass(llvm::PassRegistry &); void initializeCodeGenerationPass(llvm::PassRegistry &); void initializeIslScheduleOptimizerPass(llvm::PassRegistry &); void initializePollyCanonicalizePass(llvm::PassRegistry &); -} +} // namespace llvm #endif diff --git a/polly/include/polly/RegisterPasses.h b/polly/include/polly/RegisterPasses.h index 38aca82bff4..dc2aa251445 100644 --- a/polly/include/polly/RegisterPasses.h +++ b/polly/include/polly/RegisterPasses.h @@ -19,11 +19,11 @@ namespace llvm { namespace legacy { class PassManagerBase; -} -} +} // namespace legacy +} // namespace llvm namespace polly { void initializePollyPasses(llvm::PassRegistry &Registry); void registerPollyPasses(llvm::legacy::PassManagerBase &PM); -} +} // namespace polly #endif diff --git a/polly/include/polly/ScheduleOptimizer.h b/polly/include/polly/ScheduleOptimizer.h index f22784abe2f..138f4b343dc 100644 --- a/polly/include/polly/ScheduleOptimizer.h +++ b/polly/include/polly/ScheduleOptimizer.h @@ -23,7 +23,7 @@ struct isl_union_map; namespace polly { extern bool DisablePollyTiling; class Scop; -} +} // namespace polly class ScheduleTreeOptimizer { public: diff --git a/polly/include/polly/ScopDetection.h b/polly/include/polly/ScopDetection.h index 38c8a834211..0b73681edfc 100644 --- a/polly/include/polly/ScopDetection.h +++ b/polly/include/polly/ScopDetection.h @@ -71,7 +71,7 @@ class CallInst; class Instruction; class Value; class IntrinsicInst; -} +} // namespace llvm namespace polly { typedef std::set<const SCEV *> ParamSetType; @@ -590,6 +590,6 @@ public: namespace llvm { class PassRegistry; void initializeScopDetectionPass(llvm::PassRegistry &); -} +} // namespace llvm #endif diff --git a/polly/include/polly/ScopDetectionDiagnostic.h b/polly/include/polly/ScopDetectionDiagnostic.h index 85d17232698..91ced7bcebd 100644 --- a/polly/include/polly/ScopDetectionDiagnostic.h +++ b/polly/include/polly/ScopDetectionDiagnostic.h @@ -39,7 +39,7 @@ class SCEV; class BasicBlock; class Value; class Region; -} +} // namespace llvm namespace polly { diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 7d02ec5b43c..976045fbbc5 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -43,7 +43,7 @@ class ScalarEvolution; class SCEV; class SCEVAddRecExpr; class Type; -} +} // namespace llvm struct isl_ctx; struct isl_map; @@ -2536,6 +2536,6 @@ public: namespace llvm { class PassRegistry; void initializeScopInfoRegionPassPass(llvm::PassRegistry &); -} +} // namespace llvm #endif diff --git a/polly/include/polly/ScopPass.h b/polly/include/polly/ScopPass.h index 5f18ebaa0ac..ca20cbaaf83 100644 --- a/polly/include/polly/ScopPass.h +++ b/polly/include/polly/ScopPass.h @@ -52,6 +52,6 @@ private: void print(raw_ostream &OS, const Module *) const override; }; -} // End llvm namespace +} // namespace polly #endif diff --git a/polly/include/polly/Support/GICHelper.h b/polly/include/polly/Support/GICHelper.h index 87f644cc4bd..0b50954df70 100644 --- a/polly/include/polly/Support/GICHelper.h +++ b/polly/include/polly/Support/GICHelper.h @@ -34,7 +34,7 @@ struct isl_space; namespace llvm { class Value; -} +} // namespace llvm namespace polly { __isl_give isl_val *isl_valFromAPInt(isl_ctx *Ctx, const llvm::APInt Int, diff --git a/polly/include/polly/Support/SCEVAffinator.h b/polly/include/polly/Support/SCEVAffinator.h index 98081409ad7..011688a8987 100644 --- a/polly/include/polly/Support/SCEVAffinator.h +++ b/polly/include/polly/Support/SCEVAffinator.h @@ -37,7 +37,7 @@ class Region; class BasicBlock; class DataLayout; class ScalarEvolution; -} +} // namespace llvm namespace polly { class Scop; @@ -130,6 +130,6 @@ private: friend struct llvm::SCEVVisitor<SCEVAffinator, PWACtx>; }; -} +} // namespace polly #endif diff --git a/polly/include/polly/Support/SCEVValidator.h b/polly/include/polly/Support/SCEVValidator.h index 15ec692f4da..996044b48f5 100644 --- a/polly/include/polly/Support/SCEVValidator.h +++ b/polly/include/polly/Support/SCEVValidator.h @@ -23,7 +23,7 @@ class ScalarEvolution; class Value; class Loop; class LoadInst; -} +} // namespace llvm namespace polly { /// @brief Find the loops referenced from a SCEV expression. @@ -73,6 +73,6 @@ ParameterSetTy getParamsInAffineExpr(const llvm::Region *R, llvm::Loop *Scope, /// @returns The constant factor in @p M and the rest of @p M. std::pair<const llvm::SCEVConstant *, const llvm::SCEV *> extractConstantFactor(const llvm::SCEV *M, llvm::ScalarEvolution &SE); -} +} // namespace polly #endif diff --git a/polly/include/polly/Support/ScopHelper.h b/polly/include/polly/Support/ScopHelper.h index 1f73de88ed6..a182a65a948 100644 --- a/polly/include/polly/Support/ScopHelper.h +++ b/polly/include/polly/Support/ScopHelper.h @@ -29,7 +29,7 @@ class Region; class Pass; class DominatorTree; class RegionInfo; -} +} // namespace llvm namespace polly { class Scop; @@ -275,7 +275,7 @@ private: return llvm::cast<llvm::MemTransferInst>(I); } }; -} +} // namespace polly namespace llvm { /// @brief Specialize simplify_type for MemAccInst to enable dyn_cast and cast @@ -286,7 +286,7 @@ template <> struct simplify_type<polly::MemAccInst> { return I.asInstruction(); } }; -} +} // namespace llvm namespace polly { @@ -414,5 +414,5 @@ bool canSynthesize(const llvm::Value *V, const Scop &S, /// Non-instructions do not use operands at a specific point such that in this /// case this function returns nullptr. llvm::BasicBlock *getUseBlock(llvm::Use &U); -} +} // namespace polly #endif diff --git a/polly/include/polly/Support/ScopLocation.h b/polly/include/polly/Support/ScopLocation.h index 83dc58e92ed..3c15615bf79 100644 --- a/polly/include/polly/Support/ScopLocation.h +++ b/polly/include/polly/Support/ScopLocation.h @@ -18,7 +18,7 @@ namespace llvm { class Region; -} +} // namespace llvm namespace polly { @@ -30,6 +30,6 @@ namespace polly { /// @param FileName The filename where the region was defined. void getDebugLocation(const llvm::Region *R, unsigned &LineBegin, unsigned &LineEnd, std::string &FileName); -} +} // namespace polly #endif // POLLY_SCOP_LOCATION_H diff --git a/polly/lib/Analysis/ScopDetectionDiagnostic.cpp b/polly/lib/Analysis/ScopDetectionDiagnostic.cpp index 6b6b389895c..e43a309717a 100644 --- a/polly/lib/Analysis/ScopDetectionDiagnostic.cpp +++ b/polly/lib/Analysis/ScopDetectionDiagnostic.cpp @@ -58,7 +58,7 @@ template <typename T> std::string operator+(Twine LHS, const T &RHS) { return LHS.concat(Buf).str(); } -} +} // namespace polly namespace llvm { // @brief Lexicographic order on (line, col) of our debug locations. @@ -66,7 +66,7 @@ static bool operator<(const llvm::DebugLoc &LHS, const llvm::DebugLoc &RHS) { return LHS.getLine() < RHS.getLine() || (LHS.getLine() == RHS.getLine() && LHS.getCol() < RHS.getCol()); } -} +} // namespace llvm namespace polly { BBPair getBBPairForRegion(const Region *R) { diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index ce1098fa444..54485576447 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -249,7 +249,7 @@ public: AU.addPreserved<ScopInfoRegionPass>(); } }; -} +} // namespace char CodeGeneration::ID = 1; diff --git a/polly/lib/CodeGen/CodegenCleanup.cpp b/polly/lib/CodeGen/CodegenCleanup.cpp index 2d1e8f2bfb0..44a12c4e6aa 100644 --- a/polly/lib/CodeGen/CodegenCleanup.cpp +++ b/polly/lib/CodeGen/CodegenCleanup.cpp @@ -118,7 +118,7 @@ public: }; char CodegenCleanup::ID; -} +} // namespace FunctionPass *polly::createCodegenCleanupPass() { return new CodegenCleanup(); } diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp index 5bcd784dacd..d0cd02c079e 100644 --- a/polly/lib/CodeGen/IslAst.cpp +++ b/polly/lib/CodeGen/IslAst.cpp @@ -87,7 +87,7 @@ struct AstBuildUserInfo { /// @brief The last iterator id created for the current SCoP. isl_id *LastForNodeId; }; -} +} // namespace polly /// @brief Free an IslAstUserPayload object pointed to by @p Ptr static void freeIslAstUserPayload(void *Ptr) { diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp index 19c0489c26e..11ee29761a8 100644 --- a/polly/lib/Exchange/JSONExporter.cpp +++ b/polly/lib/Exchange/JSONExporter.cpp @@ -87,7 +87,7 @@ struct JSONImporter : public ScopPass { /// @brief Register all analyses and transformation required. void getAnalysisUsage(AnalysisUsage &AU) const override; }; -} +} // namespace char JSONExporter::ID = 0; std::string JSONExporter::getFileName(Scop &S) const { diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index 08f12846ffb..b7ec5353558 100644 --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -336,4 +336,4 @@ static llvm::RegisterStandardPasses static llvm::RegisterStandardPasses RegisterPollyOptimizerScalarLate( llvm::PassManagerBuilder::EP_VectorizerStart, registerPollyScalarOptimizerLatePasses); -} +} // namespace polly diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp index 4b8516338e6..6b70ff72ee8 100644 --- a/polly/lib/Support/SCEVValidator.cpp +++ b/polly/lib/Support/SCEVValidator.cpp @@ -32,7 +32,7 @@ enum TYPE { // An invalid expression. INVALID }; -} +} // namespace SCEVType /// @brief The result the validator returns for a SCEV expression. class ValidatorResult { @@ -635,4 +635,4 @@ extractConstantFactor(const SCEV *S, ScalarEvolution &SE) { return std::make_pair(ConstPart, LeftOver); } -} +} // namespace polly diff --git a/polly/lib/Support/ScopLocation.cpp b/polly/lib/Support/ScopLocation.cpp index 8625c317dde..a4b3dec9566 100644 --- a/polly/lib/Support/ScopLocation.cpp +++ b/polly/lib/Support/ScopLocation.cpp @@ -43,4 +43,4 @@ void getDebugLocation(const Region *R, unsigned &LineBegin, unsigned &LineEnd, LineEnd = std::max(LineEnd, NewLine); } } -} +} // namespace polly diff --git a/polly/lib/Transform/Canonicalization.cpp b/polly/lib/Transform/Canonicalization.cpp index da0034cf178..75d711ce638 100644 --- a/polly/lib/Transform/Canonicalization.cpp +++ b/polly/lib/Transform/Canonicalization.cpp @@ -65,7 +65,7 @@ public: virtual void print(raw_ostream &OS, const Module *) const; //@} }; -} +} // namespace PollyCanonicalize::~PollyCanonicalize() {} diff --git a/polly/lib/Transform/CodePreparation.cpp b/polly/lib/Transform/CodePreparation.cpp index d9d9247861d..0fab4bf6068 100644 --- a/polly/lib/Transform/CodePreparation.cpp +++ b/polly/lib/Transform/CodePreparation.cpp @@ -57,7 +57,7 @@ public: virtual void print(raw_ostream &OS, const Module *) const; //@} }; -} +} // namespace void CodePreparation::clear() {} diff --git a/polly/lib/Transform/DeadCodeElimination.cpp b/polly/lib/Transform/DeadCodeElimination.cpp index ceca4c84692..5bf5c0fb146 100644 --- a/polly/lib/Transform/DeadCodeElimination.cpp +++ b/polly/lib/Transform/DeadCodeElimination.cpp @@ -76,7 +76,7 @@ private: isl_union_set *getLiveOut(Scop &S); bool eliminateDeadCode(Scop &S, int PreciseSteps); }; -} +} // namespace char DeadCodeElim::ID = 0; diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp index a0f6ab3f613..854b558c018 100644 --- a/polly/lib/Transform/ScheduleOptimizer.cpp +++ b/polly/lib/Transform/ScheduleOptimizer.cpp @@ -606,7 +606,7 @@ public: private: isl_schedule *LastSchedule; }; -} +} // namespace char IslScheduleOptimizer::ID = 0; |