Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Sema/SemaChecking.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 832 Lines • ▼ Show 20 Lines | if (!(*I)->isPointerType() || !(*I)->getPointeeType()->isVoidType() || | ||||
IllegalParams = true; | IllegalParams = true; | ||||
} | } | ||||
} | } | ||||
return IllegalParams; | return IllegalParams; | ||||
} | } | ||||
static bool checkOpenCLSubgroupExt(Sema &S, CallExpr *Call) { | static bool checkOpenCLSubgroupExt(Sema &S, CallExpr *Call) { | ||||
if (!S.getOpenCLOptions().isAvailableOption("cl_khr_subgroups", | if (!S.getOpenCLOptions().isSupported("cl_khr_subgroups", S.getLangOpts())) { | ||||
S.getLangOpts())) { | |||||
S.Diag(Call->getBeginLoc(), diag::err_opencl_requires_extension) | S.Diag(Call->getBeginLoc(), diag::err_opencl_requires_extension) | ||||
<< 1 << Call->getDirectCallee() << "cl_khr_subgroups"; | << 1 << Call->getDirectCallee() << "cl_khr_subgroups"; | ||||
return true; | return true; | ||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
static bool SemaOpenCLBuiltinNDRangeAndBlock(Sema &S, CallExpr *TheCall) { | static bool SemaOpenCLBuiltinNDRangeAndBlock(Sema &S, CallExpr *TheCall) { | ||||
▲ Show 20 Lines • Show All 15,482 Lines • Show Last 20 Lines |