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.
Paths
| Differential D22424
[OpenCL] Fixes bug of missing OCL related metadata on the AMDGCN target ClosedPublic Authored by ashi1 on Jul 15 2016, 2:07 PM.
Details Summary 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 TimelineThis revision is now accepted and ready to land.Jul 18 2016, 12:53 PM Anastasia edited edge metadata. Comment ActionsApart from function renaming LGTM!
ashi1 edited edge metadata. ashi1 marked an inline comment as done. Comment ActionsRevised based on Anastasia's comments. Now using new function name appendOpenCLVersionMD( Closed by commit rL276010: [OpenCL] Fixes bug of missing OCL version metadata on the AMDGCN target (authored by yaxunl). · Explain WhyJul 19 2016, 12:47 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 64545 cfe/trunk/lib/CodeGen/TargetInfo.cpp
cfe/trunk/test/CodeGenOpenCL/spir_version.cl
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||