Lines Matching refs:BlockArg
270 static bool checkOpenCLBlockArgs(Sema &S, Expr *BlockArg) { in checkOpenCLBlockArgs() argument
272 cast<BlockPointerType>(BlockArg->getType().getCanonicalType()); in checkOpenCLBlockArgs()
288 if (isa<BlockExpr>(BlockArg)) { in checkOpenCLBlockArgs()
289 BlockDecl *BD = cast<BlockExpr>(BlockArg)->getBlockDecl(); in checkOpenCLBlockArgs()
291 } else if (isa<DeclRefExpr>(BlockArg)) { in checkOpenCLBlockArgs()
292 ErrorLoc = cast<DeclRefExpr>(BlockArg)->getLocStart(); in checkOpenCLBlockArgs()
310 Expr *BlockArg = TheCall->getArg(0); in SemaOpenCLBuiltinKernelWorkGroupSize() local
311 if (!isBlockPointer(BlockArg)) { in SemaOpenCLBuiltinKernelWorkGroupSize()
312 S.Diag(BlockArg->getLocStart(), in SemaOpenCLBuiltinKernelWorkGroupSize()
316 return checkOpenCLBlockArgs(S, BlockArg); in SemaOpenCLBuiltinKernelWorkGroupSize()
325 Expr *BlockArg, in checkOpenCLEnqueueVariadicArgs() argument
328 cast<BlockPointerType>(BlockArg->getType().getCanonicalType()); in checkOpenCLEnqueueVariadicArgs()