Home | History | Annotate | Download | only in slang

Lines Matching refs:FD

363 void Backend::AnnotateFunction(clang::FunctionDecl *FD) {
364 if (FD &&
365 FD->hasBody() &&
366 !Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) {
368 mRefCount.SetDeclContext(FD);
369 mRefCount.Visit(FD->getBody());
395 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I);
396 if (FD == nullptr)
398 if (!FD->getName().startswith("rs")) // Check prefix
400 if (!Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr))
401 mContext->ReportError(FD->getLocation(),
404 << FD->getName();
409 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I);
410 if (FD) {
413 mContext->markUsedByReducePragma(FD, RSContext::CheckNameYes);
414 if (FD->isGlobal()) {
417 size_t numParams = FD->getNumParams();
419 const clang::ParmVarDecl *PVD = FD->getParamDecl(i);
428 AnnotateFunction(FD);
433 if (FD && FD->hasBody() &&
434 !Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) {
435 if (FD->hasAttr<clang::KernelAttr>()) {
440 mContext->addForEach(FD);
445 mForEachHandler.handleForEachCalls(FD, getTargetAPI());
492 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor();
493 FD) {
494 HandleTopLevelDecl(clang::DeclGroupRef(FD));
502 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I);
503 if (FD && !FD->isGlobal()) {
504 AnnotateFunction(FD);