[GPGPU] Collect parameter dimension used in MemoryAccesses
commite7902e24bcd4d464e95109d223e3560d74961248
authorTobias Grosser <tobias@grosser.es>
Sat, 19 Aug 2017 12:58:28 +0000 (19 12:58 +0000)
committerTobias Grosser <tobias@grosser.es>
Sat, 19 Aug 2017 12:58:28 +0000 (19 12:58 +0000)
tree6a65a6c453fa2c99b037e784869c92231ae07132
parente730b87511432db35c61c5a288ed77634e815f9e
[GPGPU] Collect parameter dimension used in MemoryAccesses

When using -polly-ignore-integer-wrapping and -polly-acc-codegen-managed-memory
we add parameter dimensions lazily to the domains, which results in PPCG not
including parameter dimensions that are only used in memory accesses in the
kernel space. To make sure these parameters are still passed to the kernel, we
collect these parameter dimensions and align the kernel's parameter space
before code-generating it.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@311239 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/CodeGen/IslNodeBuilder.h
lib/CodeGen/IslNodeBuilder.cpp
lib/CodeGen/PPCGCodeGeneration.cpp
test/GPGPU/memory-only-referenced-from-access.ll [new file with mode: 0644]