summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/lib/CodeGen/PPCGCodeGeneration.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index e28088e803f..dc5f56f0b2e 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:
OpenPOWER on IntegriCloud