diff options
| author | Tobias Grosser <tobias@grosser.es> | 2016-07-18 15:44:32 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2016-07-18 15:44:32 +0000 |
| commit | b9fc860a575df0a7fdea7b08090deb6246995355 (patch) | |
| tree | 206b5125994f2daa5d1a953ef6f89e78b7a6585c /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
| parent | 1fb9b64dc0f94e1315d75f5ab4273962514b931e (diff) | |
GPGPU: collect array references
Initialize the list of references to a GPU array to ensure that the arrays that
need to be passed to kernel calls are computed correctly. Furthermore, the very
same information is also necessary to compute synchronization correctly. As the
functionality to compute these references is already available, what is left for
us to do is only to connect the necessary functionality to compute array
reference information.
llvm-svn: 275798
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
| -rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index dc5f56f0b2ed..33cf8c322c0d 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -450,6 +450,8 @@ public: setArrayBounds(PPCGArray, Array); i++; + + collect_references(PPCGProg, &PPCGArray); } } |
