Added the opencl.ocl.version metadata to be emitted with amdgcn. Created a static function emitOCLVerMD which is shared between triple spir and target amdgcn.
Also added new testcases to existing test file, spir_version.cl inside test/CodeGenOpenCL.
Differential D22424
[OpenCL] Fixes bug of missing OCL related metadata on the AMDGCN target Authored by ashi1 on Jul 15 2016, 2:07 PM.
Details Added the opencl.ocl.version metadata to be emitted with amdgcn. Created a static function emitOCLVerMD which is shared between triple spir and target amdgcn. Also added new testcases to existing test file, spir_version.cl inside test/CodeGenOpenCL.
Diff Detail
Event TimelineComment Actions Apart from function renaming LGTM!
Comment Actions Revised based on Anastasia's comments. Now using new function name appendOpenCLVersionMD( | ||||||
Could we rename to appendOpenCLVersionMD?