Remove an assert mandating that OpenCL must be used with the SPIR target. We need to be able to use the SPIR target with non-OpenCL inputs, which worked perfectly well until commit 264241 introduced an assert that requires OpenCL be set in LangOpts.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
So we build a bunch of internal libraries in a mix of OpenCL and C++, and then link them all together to create SPIR libraries that can be fed to calls to clLinkProgram and linked against user kernels.
I don't have commit rights to Clang - if the patch is ok to go could one of you bring the patch in for me?