[polly] r273621 - clang-tidy: Add llvm namespace comments
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 23 15:17:28 PDT 2016
Author: grosser
Date: Thu Jun 23 17:17:27 2016
New Revision: 273621
URL: http://llvm.org/viewvc/llvm-project?rev=273621&view=rev
Log:
clang-tidy: Add llvm namespace comments
llvm commonly adds a comment to the closing brace of a namespace to indicate
which namespace is closed. clang-tidy provides with llvm-namespace-comment
a handy tool to check for this habit. We use it to ensure we consitently use
namespace comments in Polly.
There are slightly different styles in how namespaces are closed in LLVM. As
there is no large difference between the different comment styles we go for the
style clang-tidy suggests by default.
To reproduce this fix run:
for i in `ls tools/polly/lib/*/*.cpp`; \
clang-tidy -checks='-*,llvm-namespace-comment' -p build $i -fix \
-header-filter=".*"; \
done
This cleanup was suggested by Eugene Zelenko <eugene.zelenko at gmail.com> in
http://reviews.llvm.org/D21488 and was split out to increase readability.
Modified:
polly/trunk/include/polly/Canonicalization.h
polly/trunk/include/polly/CodeGen/BlockGenerators.h
polly/trunk/include/polly/CodeGen/CodeGeneration.h
polly/trunk/include/polly/CodeGen/CodegenCleanup.h
polly/trunk/include/polly/CodeGen/IRBuilder.h
polly/trunk/include/polly/CodeGen/IslAst.h
polly/trunk/include/polly/CodeGen/IslExprBuilder.h
polly/trunk/include/polly/CodeGen/LoopGenerators.h
polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h
polly/trunk/include/polly/CodeGen/Utils.h
polly/trunk/include/polly/DependenceInfo.h
polly/trunk/include/polly/LinkAllPasses.h
polly/trunk/include/polly/RegisterPasses.h
polly/trunk/include/polly/ScheduleOptimizer.h
polly/trunk/include/polly/ScopDetection.h
polly/trunk/include/polly/ScopDetectionDiagnostic.h
polly/trunk/include/polly/ScopInfo.h
polly/trunk/include/polly/ScopPass.h
polly/trunk/include/polly/Support/GICHelper.h
polly/trunk/include/polly/Support/SCEVAffinator.h
polly/trunk/include/polly/Support/SCEVValidator.h
polly/trunk/include/polly/Support/ScopHelper.h
polly/trunk/include/polly/Support/ScopLocation.h
polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp
polly/trunk/lib/CodeGen/CodeGeneration.cpp
polly/trunk/lib/CodeGen/CodegenCleanup.cpp
polly/trunk/lib/CodeGen/IslAst.cpp
polly/trunk/lib/Exchange/JSONExporter.cpp
polly/trunk/lib/Support/RegisterPasses.cpp
polly/trunk/lib/Support/SCEVValidator.cpp
polly/trunk/lib/Support/ScopLocation.cpp
polly/trunk/lib/Transform/Canonicalization.cpp
polly/trunk/lib/Transform/CodePreparation.cpp
polly/trunk/lib/Transform/DeadCodeElimination.cpp
polly/trunk/lib/Transform/ScheduleOptimizer.cpp
Modified: polly/trunk/include/polly/Canonicalization.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Canonicalization.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/Canonicalization.h (original)
+++ polly/trunk/include/polly/Canonicalization.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/CodeGen/BlockGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/BlockGenerators.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/BlockGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/BlockGenerators.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/CodeGen/CodeGeneration.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/CodeGeneration.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/CodeGeneration.h (original)
+++ polly/trunk/include/polly/CodeGen/CodeGeneration.h Thu Jun 23 17:17:27 2016
@@ -23,6 +23,6 @@ enum VectorizerChoice {
VECTORIZER_POLLY,
};
extern VectorizerChoice PollyVectorizerChoice;
-}
+} // namespace polly
#endif // POLLY_CODEGENERATION_H
Modified: polly/trunk/include/polly/CodeGen/CodegenCleanup.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/CodegenCleanup.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/CodegenCleanup.h (original)
+++ polly/trunk/include/polly/CodeGen/CodegenCleanup.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/CodeGen/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/IRBuilder.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/IRBuilder.h (original)
+++ polly/trunk/include/polly/CodeGen/IRBuilder.h Thu Jun 23 17:17:27 2016
@@ -21,7 +21,7 @@
namespace llvm {
class ScalarEvolution;
-}
+} // namespace llvm
namespace polly {
class Scop;
@@ -140,5 +140,5 @@ static inline PollyIRBuilder createPolly
Builder.SetInsertPoint(BB->getTerminator());
return Builder;
}
-}
+} // namespace polly
#endif
Modified: polly/trunk/include/polly/CodeGen/IslAst.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/IslAst.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/IslAst.h (original)
+++ polly/trunk/include/polly/CodeGen/IslAst.h Thu Jun 23 17:17:27 2016
@@ -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 */
Modified: polly/trunk/include/polly/CodeGen/IslExprBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/IslExprBuilder.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/IslExprBuilder.h (original)
+++ polly/trunk/include/polly/CodeGen/IslExprBuilder.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/CodeGen/LoopGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/LoopGenerators.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/LoopGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/LoopGenerators.h Thu Jun 23 17:17:27 2016
@@ -24,7 +24,7 @@ namespace llvm {
class Value;
class Pass;
class BasicBlock;
-}
+} // namespace llvm
namespace polly {
using namespace llvm;
Modified: polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h (original)
+++ polly/trunk/include/polly/CodeGen/RuntimeDebugBuilder.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/CodeGen/Utils.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/Utils.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/Utils.h (original)
+++ polly/trunk/include/polly/CodeGen/Utils.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/DependenceInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/DependenceInfo.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/DependenceInfo.h (original)
+++ polly/trunk/include/polly/DependenceInfo.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/LinkAllPasses.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/LinkAllPasses.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/LinkAllPasses.h (original)
+++ polly/trunk/include/polly/LinkAllPasses.h Thu Jun 23 17:17:27 2016
@@ -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::Pass
void initializeCodeGenerationPass(llvm::PassRegistry &);
void initializeIslScheduleOptimizerPass(llvm::PassRegistry &);
void initializePollyCanonicalizePass(llvm::PassRegistry &);
-}
+} // namespace llvm
#endif
Modified: polly/trunk/include/polly/RegisterPasses.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/RegisterPasses.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/RegisterPasses.h (original)
+++ polly/trunk/include/polly/RegisterPasses.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/ScheduleOptimizer.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScheduleOptimizer.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/ScheduleOptimizer.h (original)
+++ polly/trunk/include/polly/ScheduleOptimizer.h Thu Jun 23 17:17:27 2016
@@ -23,7 +23,7 @@ struct isl_union_map;
namespace polly {
extern bool DisablePollyTiling;
class Scop;
-}
+} // namespace polly
class ScheduleTreeOptimizer {
public:
Modified: polly/trunk/include/polly/ScopDetection.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopDetection.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopDetection.h (original)
+++ polly/trunk/include/polly/ScopDetection.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/ScopDetectionDiagnostic.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopDetectionDiagnostic.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopDetectionDiagnostic.h (original)
+++ polly/trunk/include/polly/ScopDetectionDiagnostic.h Thu Jun 23 17:17:27 2016
@@ -39,7 +39,7 @@ class SCEV;
class BasicBlock;
class Value;
class Region;
-}
+} // namespace llvm
namespace polly {
Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/ScopPass.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopPass.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopPass.h (original)
+++ polly/trunk/include/polly/ScopPass.h Thu Jun 23 17:17:27 2016
@@ -52,6 +52,6 @@ private:
void print(raw_ostream &OS, const Module *) const override;
};
-} // End llvm namespace
+} // namespace polly
#endif
Modified: polly/trunk/include/polly/Support/GICHelper.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/GICHelper.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/GICHelper.h (original)
+++ polly/trunk/include/polly/Support/GICHelper.h Thu Jun 23 17:17:27 2016
@@ -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,
Modified: polly/trunk/include/polly/Support/SCEVAffinator.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/SCEVAffinator.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/SCEVAffinator.h (original)
+++ polly/trunk/include/polly/Support/SCEVAffinator.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/include/polly/Support/SCEVValidator.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/SCEVValidator.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/SCEVValidator.h (original)
+++ polly/trunk/include/polly/Support/SCEVValidator.h Thu Jun 23 17:17:27 2016
@@ -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(con
/// @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
Modified: polly/trunk/include/polly/Support/ScopHelper.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/ScopHelper.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/ScopHelper.h (original)
+++ polly/trunk/include/polly/Support/ScopHelper.h Thu Jun 23 17:17:27 2016
@@ -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::
return I.asInstruction();
}
};
-}
+} // namespace llvm
namespace polly {
@@ -414,5 +414,5 @@ bool canSynthesize(const llvm::Value *V,
/// 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
Modified: polly/trunk/include/polly/Support/ScopLocation.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/ScopLocation.h?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/ScopLocation.h (original)
+++ polly/trunk/include/polly/Support/ScopLocation.h Thu Jun 23 17:17:27 2016
@@ -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
Modified: polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp Thu Jun 23 17:17:27 2016
@@ -58,7 +58,7 @@ template <typename T> std::string operat
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::DebugL
return LHS.getLine() < RHS.getLine() ||
(LHS.getLine() == RHS.getLine() && LHS.getCol() < RHS.getCol());
}
-}
+} // namespace llvm
namespace polly {
BBPair getBBPairForRegion(const Region *R) {
Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Thu Jun 23 17:17:27 2016
@@ -249,7 +249,7 @@ public:
AU.addPreserved<ScopInfoRegionPass>();
}
};
-}
+} // namespace
char CodeGeneration::ID = 1;
Modified: polly/trunk/lib/CodeGen/CodegenCleanup.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodegenCleanup.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodegenCleanup.cpp (original)
+++ polly/trunk/lib/CodeGen/CodegenCleanup.cpp Thu Jun 23 17:17:27 2016
@@ -118,7 +118,7 @@ public:
};
char CodegenCleanup::ID;
-}
+} // namespace
FunctionPass *polly::createCodegenCleanupPass() { return new CodegenCleanup(); }
Modified: polly/trunk/lib/CodeGen/IslAst.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslAst.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslAst.cpp (original)
+++ polly/trunk/lib/CodeGen/IslAst.cpp Thu Jun 23 17:17:27 2016
@@ -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) {
Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Thu Jun 23 17:17:27 2016
@@ -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 {
Modified: polly/trunk/lib/Support/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/RegisterPasses.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Support/RegisterPasses.cpp (original)
+++ polly/trunk/lib/Support/RegisterPasses.cpp Thu Jun 23 17:17:27 2016
@@ -336,4 +336,4 @@ static llvm::RegisterStandardPasses
static llvm::RegisterStandardPasses RegisterPollyOptimizerScalarLate(
llvm::PassManagerBuilder::EP_VectorizerStart,
registerPollyScalarOptimizerLatePasses);
-}
+} // namespace polly
Modified: polly/trunk/lib/Support/SCEVValidator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/SCEVValidator.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Support/SCEVValidator.cpp (original)
+++ polly/trunk/lib/Support/SCEVValidator.cpp Thu Jun 23 17:17:27 2016
@@ -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, Sca
return std::make_pair(ConstPart, LeftOver);
}
-}
+} // namespace polly
Modified: polly/trunk/lib/Support/ScopLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopLocation.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopLocation.cpp (original)
+++ polly/trunk/lib/Support/ScopLocation.cpp Thu Jun 23 17:17:27 2016
@@ -43,4 +43,4 @@ void getDebugLocation(const Region *R, u
LineEnd = std::max(LineEnd, NewLine);
}
}
-}
+} // namespace polly
Modified: polly/trunk/lib/Transform/Canonicalization.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/Canonicalization.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Transform/Canonicalization.cpp (original)
+++ polly/trunk/lib/Transform/Canonicalization.cpp Thu Jun 23 17:17:27 2016
@@ -65,7 +65,7 @@ public:
virtual void print(raw_ostream &OS, const Module *) const;
//@}
};
-}
+} // namespace
PollyCanonicalize::~PollyCanonicalize() {}
Modified: polly/trunk/lib/Transform/CodePreparation.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/CodePreparation.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Transform/CodePreparation.cpp (original)
+++ polly/trunk/lib/Transform/CodePreparation.cpp Thu Jun 23 17:17:27 2016
@@ -57,7 +57,7 @@ public:
virtual void print(raw_ostream &OS, const Module *) const;
//@}
};
-}
+} // namespace
void CodePreparation::clear() {}
Modified: polly/trunk/lib/Transform/DeadCodeElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/DeadCodeElimination.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Transform/DeadCodeElimination.cpp (original)
+++ polly/trunk/lib/Transform/DeadCodeElimination.cpp Thu Jun 23 17:17:27 2016
@@ -76,7 +76,7 @@ private:
isl_union_set *getLiveOut(Scop &S);
bool eliminateDeadCode(Scop &S, int PreciseSteps);
};
-}
+} // namespace
char DeadCodeElim::ID = 0;
Modified: polly/trunk/lib/Transform/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ScheduleOptimizer.cpp?rev=273621&r1=273620&r2=273621&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/Transform/ScheduleOptimizer.cpp Thu Jun 23 17:17:27 2016
@@ -606,7 +606,7 @@ public:
private:
isl_schedule *LastSchedule;
};
-}
+} // namespace
char IslScheduleOptimizer::ID = 0;
More information about the llvm-commits
mailing list