GPGPU: create default initialized PPCG scop and gpu program
authorTobias Grosser <tobias@grosser.es>
Thu, 14 Jul 2016 10:22:19 +0000 (10:22 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 14 Jul 2016 10:22:19 +0000 (10:22 +0000)
commite938517e379160d3033557af5c6fcf8a89a4910f
tree24016fe8e180a9bdddd9d45277216e324f6a2268
parentb67e1e2dd7b2fb24dd57d68791c853876aaf9628
GPGPU: create default initialized PPCG scop and gpu program

At this stage, we do not yet modify the IR but just generate a default
initialized ppcg_scop and gpu_prog and free both immediately. Both will later be
filled with data from the polly::Scop and are needed to use PPCG for GPU
schedule generation. This commit does not yet perform any GPU code generation,
but ensures that the basic infrastructure has been put in place.

We also add a simple test case to ensure the new code is run and use this
opportunity to verify that GPU_CODEGEN tests are only run if GPU code generation
has been enabled in cmake.

llvm-svn: 275389
polly/CMakeLists.txt
polly/lib/CodeGen/PPCGCodeGeneration.cpp
polly/lib/External/ppcg/ppcg.c
polly/lib/External/ppcg/ppcg.h
polly/test/GPGPU/double-parallel-loop.ll [new file with mode: 0644]
polly/test/lit.site.cfg.in