Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/CodeGen/
DCGOpenCLRuntime.cpp152 EnqueuedBlockMap[E].BlockArg = Block; in recordBlockInfo()
178 EnqueuedBlockMap[Block].BlockArg->stripPointerCasts()); in emitOpenCLEnqueuedBlock()
DCGOpenCLRuntime.h46 llvm::Value *BlockArg; /// The first argument to enqueued block kernel. member
DCGBuiltin.cpp4499 Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
4551 auto *Block = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
4609 Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
4658 Value *Arg = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
4672 Value *Arg = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
4689 Value *Block = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
/external/clang/lib/Sema/
DSemaChecking.cpp270 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()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaChecking.cpp805 static bool checkOpenCLBlockArgs(Sema &S, Expr *BlockArg) { in checkOpenCLBlockArgs() argument
807 cast<BlockPointerType>(BlockArg->getType().getCanonicalType()); in checkOpenCLBlockArgs()
823 if (isa<BlockExpr>(BlockArg)) { in checkOpenCLBlockArgs()
824 BlockDecl *BD = cast<BlockExpr>(BlockArg)->getBlockDecl(); in checkOpenCLBlockArgs()
826 } else if (isa<DeclRefExpr>(BlockArg)) { in checkOpenCLBlockArgs()
827 ErrorLoc = cast<DeclRefExpr>(BlockArg)->getBeginLoc(); in checkOpenCLBlockArgs()
862 Expr *BlockArg = TheCall->getArg(1); in SemaOpenCLBuiltinNDRangeAndBlock() local
863 if (!isBlockPointer(BlockArg)) { in SemaOpenCLBuiltinNDRangeAndBlock()
864 S.Diag(BlockArg->getBeginLoc(), diag::err_opencl_builtin_expected_type) in SemaOpenCLBuiltinNDRangeAndBlock()
868 return checkOpenCLBlockArgs(S, BlockArg); in SemaOpenCLBuiltinNDRangeAndBlock()
[all …]