Home
last modified time | relevance | path

Searched refs:CLVer (Results 1 – 5 of 5) sorted by relevance

/external/clang/include/clang/Basic/
DOpenCLOptions.h51 bool is_##Ext##_supported_extension(unsigned CLVer) const { \
52 return is_##Ext##_supported(CLVer) && (Core == ~0U || CLVer < Core); \
59 bool is_##Ext##_supported_core(unsigned CLVer) const { \
60 return is_##Ext##_supported(CLVer) && Core != ~0U && CLVer >= Core; \
/external/spirv-llvm/lib/SPIRV/
DTransOCLMD.cpp70 TransOCLMD():ModulePass(ID), M(nullptr), Ctx(nullptr), CLVer(0) { in TransOCLMD()
81 unsigned CLVer; /// OpenCL version as major*10+minor member in SPIRV::TransOCLMD
90 CLVer = getOCLVersion(M, true); in runOnModule()
91 if (CLVer == 0) in runOnModule()
112 .add(CLVer < kOCLVer::CL21 ? spv::SourceLanguageOpenCL_C in visit()
114 .add(CLVer) in visit()
DOCL21ToSPIRV.cpp63 OCL21ToSPIRV():ModulePass(ID), M(nullptr), Ctx(nullptr), CLVer(0) { in OCL21ToSPIRV()
100 unsigned CLVer; /// OpenCL version as major*10+minor member in SPIRV::OCL21ToSPIRV
115 CLVer = std::get<1>(Src); in runOnModule()
116 if (CLVer < kOCLVer::CL21) in runOnModule()
DOCL20ToSPIRV.cpp75 OCL20ToSPIRV():ModulePass(ID), M(nullptr), Ctx(nullptr), CLVer(0) { in OCL20ToSPIRV()
271 unsigned CLVer; /// OpenCL version as major*10+minor member in SPIRV::OCL20ToSPIRV
335 CLVer = std::get<1>(Src); in runOnModule()
336 if (CLVer > kOCLVer::CL20) in runOnModule()
410 assert(CLVer == kOCLVer::CL20 && "Wrong version of OpenCL"); in visitCallInst()
/external/clang/lib/Parse/
DParsePragma.cpp471 auto CLVer = getLangOpts().OpenCLVersion; in HandlePragmaOpenCLExtension() local
478 if (Supp.is_##nm##_supported_extension(CLVer)) \ in HandlePragmaOpenCLExtension()
483 if (Supp.is_##nm##_supported_extension(CLVer)) \ in HandlePragmaOpenCLExtension()
485 else if (Supp.is_##nm##_supported_core(CLVer)) \ in HandlePragmaOpenCLExtension()