Lines Matching defs:Context

55     RSContext *Context, const clang::FunctionDecl *FD) {
56 slangAssert(Context && FD);
61 if (Context->getTargetAPI() < SLANG_JB_TARGET_API) {
64 Context->ReportError(FD->getLocation(),
77 valid &= validateAndConstructKernelParams(Context, FD);
79 valid &= validateAndConstructOldStyleParams(Context, FD);
82 valid &= setSignatureMetadata(Context, FD);
87 RSContext *Context, const clang::FunctionDecl *FD) {
88 slangAssert(Context && FD);
95 clang::ASTContext &C = Context->getASTContext();
97 Context->ReportError(FD->getLocation(),
107 valid &= processSpecialParameters(Context, FD, &IndexOfFirstSpecialParameter);
116 Context->ReportError(PVD->getLocation(),
120 << FD->getName() << listSpecialKernelParameters(Context->getTargetAPI())
131 Context->ReportError(PVD->getLocation(),
144 Context->ReportError(
154 Context->ReportError(FD->getLocation(),
165 RSContext *Context, const clang::FunctionDecl *FD) {
166 slangAssert(Context && FD);
168 clang::ASTContext &C = Context->getASTContext();
170 if (Context->getTargetAPI() < SLANG_JB_MR1_TARGET_API) {
171 Context->ReportError(FD->getLocation(),
185 Context->ReportError(
195 valid &= processSpecialParameters(Context, FD, &IndexOfFirstSpecialParameter);
202 if (Context->getTargetAPI() >= SLANG_M_TARGET_API || i == 0) {
204 Context->ReportError(PVD->getLocation(),
215 Context->ReportError(PVD->getLocation(),
225 Context->ReportError(PVD->getLocation(),
234 if (valid && mIns.empty() && !mHasReturnType && Context->getTargetAPI() < SLANG_M_TARGET_API) {
235 Context->ReportError(FD->getLocation(),
254 RSContext *Context, const clang::FunctionDecl *FD,
261 return slang::processSpecialKernelParameters(Context,
268 bool RSExportForEach::setSignatureMetadata(RSContext *Context,
288 if (Context->getTargetAPI() < SLANG_ICS_TARGET_API) {
298 Context->ReportError(FD->getLocation(),
309 RSExportForEach *RSExportForEach::Create(RSContext *Context,
311 slangAssert(Context && FD);
317 FE = new RSExportForEach(Context, Name);
319 if (!FE->validateAndConstructParams(Context, FD)) {
323 clang::ASTContext &Ctx = Context->getASTContext();
334 const clang::ASTContext &C = Context->getASTContext();
367 RSExportType::Create(Context, T.getTypePtr(), LegacyKernelArgument);
388 RSExportType *InExportType = RSExportType::Create(Context, T, EK);
402 FE->mOutType = RSExportType::Create(Context, ReturnType,
408 FE->mOutType = RSExportType::Create(Context, OutType, LegacyKernelArgument);
414 slangAssert(Context->getDiagnostics()->hasErrorOccurred() &&
422 RSExportForEach *RSExportForEach::CreateDummyRoot(RSContext *Context) {
423 slangAssert(Context);
425 RSExportForEach *FE = new RSExportForEach(Context, Name);