[PATCH] D32431: [Polly] Added OpenCL Runtime to GPURuntime Library for GPGPU CodeGen

Philipp Schaad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 09:45:04 PDT 2017


PhilippSchaad added inline comments.


================
Comment at: lib/CodeGen/PPCGCodeGeneration.cpp:2530-2538
+Pass *polly::createPPCGCodeGenerationPassCUDA() {
+  PPCGCodeGeneration::Runtime = GPU_RUNTIME_CUDA;
+  return new PPCGCodeGeneration();
+}
+
+Pass *polly::createPPCGCodeGenerationPassOpenCL() {
+  PPCGCodeGeneration::Runtime = GPU_RUNTIME_OPENCL;
----------------
PhilippSchaad wrote:
> Meinersbur wrote:
> > Did you consider
> > ```
> > Pass *polly::createPPCGCodeGenerationPass(int Runtime);
> > ```
> > ?
> That seems reasonable, but I get a template-conflict for the LLVM Pass-Creation template when trying to change the pass-creation-method structure. I thought it might be easier this way?
Correction: looking at wrong function of course, you mean a different one :-)


https://reviews.llvm.org/D32431





More information about the llvm-commits mailing list