From 1fb9b64dc0f94e1315d75f5ab4273962514b931e Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 18 Jul 2016 15:44:25 +0000 Subject: [PATCH] GPGPU: Pull implementation out of class definition This will allow us to see the full class definition even after we add non-trivial implementations of the different member functions. llvm-svn: 275797 --- polly/lib/CodeGen/PPCGCodeGeneration.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index e28088e803fc..dc5f56f0b2ed 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -92,12 +92,15 @@ private: /// - Kernel: A GPU kernel call (TODO) /// - Data-Transfer: A GPU <-> CPU data-transfer (TODO) /// - virtual void createUser(__isl_take isl_ast_node *User) { - isl_ast_node_free(User); - return; - } + /// @param UserStmt The ast node to generate code for. + virtual void createUser(__isl_take isl_ast_node *UserStmt); }; +void GPUNodeBuilder::createUser(__isl_take isl_ast_node *UserStmt) { + isl_ast_node_free(UserStmt); + return; +} + namespace { class PPCGCodeGeneration : public ScopPass { public: