[PATCH] D27300: [OpenCL] Fix SPIR version generation.

Egor Churaev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 08:00:57 PST 2016


echuraev added inline comments.


================
Comment at: test/CodeGenOpenCL/spir_version.cl:21
-// CHECK-SPIR-CL12: [[SPIR]] = !{i32 2, i32 0}
-// CHECK-SPIR-CL12: [[OCL]] = !{i32 1, i32 2}
 // CHECK-SPIR-CL20: !opencl.spir.version = !{[[SPIR:![0-9]+]]}
----------------
yaxunl wrote:
> why this is removed?
After my changes, value of SPIR version and OCL will be the same and so, it will be generate only one metadata (e.g. !1 = !{i32 1, i32 2}).
The same situation is for checking CL20 below.


https://reviews.llvm.org/D27300





More information about the cfe-commits mailing list