[polly] r264272 - Add namespace for struct [NFC]

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 06:20:52 PDT 2016


Author: jdoerfert
Date: Thu Mar 24 08:20:52 2016
New Revision: 264272

URL: http://llvm.org/viewvc/llvm-project?rev=264272&view=rev
Log:
Add namespace for struct [NFC]

  This will clean up the doxygen documentation.

Modified:
    polly/trunk/lib/CodeGen/IslAst.cpp

Modified: polly/trunk/lib/CodeGen/IslAst.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslAst.cpp?rev=264272&r1=264271&r2=264272&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslAst.cpp (original)
+++ polly/trunk/lib/CodeGen/IslAst.cpp Thu Mar 24 08:20:52 2016
@@ -71,16 +71,7 @@ static cl::opt<bool> DetectParallel("pol
                                     cl::init(false), cl::ZeroOrMore,
                                     cl::cat(PollyCategory));
 
-/// @brief Free an IslAstUserPayload object pointed to by @p Ptr
-static void freeIslAstUserPayload(void *Ptr) {
-  delete ((IslAstInfo::IslAstUserPayload *)Ptr);
-}
-
-IslAstInfo::IslAstUserPayload::~IslAstUserPayload() {
-  isl_ast_build_free(Build);
-  isl_pw_aff_free(MinimalDependenceDistance);
-}
-
+namespace polly {
 /// @brief Temporary information used when building the ast.
 struct AstBuildUserInfo {
   /// @brief Construct and initialize the helper struct for AST creation.
@@ -96,6 +87,17 @@ struct AstBuildUserInfo {
   /// @brief The last iterator id created for the current SCoP.
   isl_id *LastForNodeId;
 };
+}
+
+/// @brief Free an IslAstUserPayload object pointed to by @p Ptr
+static void freeIslAstUserPayload(void *Ptr) {
+  delete ((IslAstInfo::IslAstUserPayload *)Ptr);
+}
+
+IslAstInfo::IslAstUserPayload::~IslAstUserPayload() {
+  isl_ast_build_free(Build);
+  isl_pw_aff_free(MinimalDependenceDistance);
+}
 
 /// @brief Print a string @p str in a single line using @p Printer.
 static isl_printer *printLine(__isl_take isl_printer *Printer,




More information about the llvm-commits mailing list