From 47197fe3f3d62d0903ef3266b6bda7ea3e02f6de Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Thu, 24 Mar 2016 13:20:52 +0000 Subject: [PATCH] Add namespace for struct [NFC] This will clean up the doxygen documentation. llvm-svn: 264272 --- polly/lib/CodeGen/IslAst.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp index 8f266b5..739fc7e 100644 --- a/polly/lib/CodeGen/IslAst.cpp +++ b/polly/lib/CodeGen/IslAst.cpp @@ -71,16 +71,7 @@ static cl::opt DetectParallel("polly-ast-detect-parallel", 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, -- 2.7.4