[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:38:39 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;
----------------
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?


https://reviews.llvm.org/D32431





More information about the llvm-commits mailing list