Lines Matching refs:AL

23 void SemaOpenCL::handleNoSVMAttr(Decl *D, const ParsedAttr &AL) {  in handleNoSVMAttr()  argument
25 Diag(AL.getLoc(), diag::err_attribute_requires_opencl_version) in handleNoSVMAttr()
26 << AL << "2.0" << 1; in handleNoSVMAttr()
28 Diag(AL.getLoc(), diag::warn_opencl_attr_deprecated_ignored) in handleNoSVMAttr()
29 << AL << getLangOpts().getOpenCLVersionString(); in handleNoSVMAttr()
32 void SemaOpenCL::handleAccessAttr(Decl *D, const ParsedAttr &AL) { in handleAccessAttr() argument
39 AL.getSemanticSpelling()) { in handleAccessAttr()
40 Diag(AL.getLoc(), diag::warn_duplicate_declspec) in handleAccessAttr()
41 << AL.getAttrName()->getName() << AL.getRange(); in handleAccessAttr()
43 Diag(AL.getLoc(), diag::err_opencl_multiple_access_qualifiers) in handleAccessAttr()
61 if (AL.getAttrName()->getName().contains("read_write")) { in handleAccessAttr()
68 Diag(AL.getLoc(), diag::err_opencl_invalid_read_write) in handleAccessAttr()
69 << AL << PDecl->getType() << DeclTy->isImageType(); in handleAccessAttr()
76 D->addAttr(::new (getASTContext()) OpenCLAccessAttr(getASTContext(), AL)); in handleAccessAttr()
79 void SemaOpenCL::handleSubGroupSize(Decl *D, const ParsedAttr &AL) { in handleSubGroupSize() argument
81 const Expr *E = AL.getArgAsExpr(0); in handleSubGroupSize()
82 if (!SemaRef.checkUInt32Argument(AL, E, SGSize)) in handleSubGroupSize()
85 Diag(AL.getLoc(), diag::err_attribute_argument_is_zero) in handleSubGroupSize()
86 << AL << E->getSourceRange(); in handleSubGroupSize()
93 Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL; in handleSubGroupSize()
96 OpenCLIntelReqdSubGroupSizeAttr(getASTContext(), AL, SGSize)); in handleSubGroupSize()