Lines Matching refs:FD
408 clang::FieldDecl* FD = clang::dyn_cast<clang::FieldDecl>(D); in PadStruct() local
409 slangAssert(FD && "found a non field declaration within a struct"); in PadStruct()
410 FieldsInfo.push_back(std::make_pair(size_t(0), FD)); in PadStruct()
480 const clang::FieldDecl* FD = info.second; in PadStruct() local
482 if ((foundBitField = FD->isBitField())) in PadStruct()
495 fieldPrePaddingOffset = fieldOffset + (ASTC.getTypeSize(FD->getType()) >> 3); in PadStruct()
538 clang::FieldDecl* const FD = in PadStruct() local
546 FD->setImplicit(true); in PadStruct()
547 RD->addDecl(FD); in PadStruct()
601 void Backend::AnnotateFunction(clang::FunctionDecl *FD) { in AnnotateFunction() argument
602 if (FD && in AnnotateFunction()
603 FD->hasBody() && in AnnotateFunction()
604 !FD->isImplicit() && in AnnotateFunction()
605 !Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) { in AnnotateFunction()
607 mRefCount.SetDeclContext(FD); in AnnotateFunction()
608 mRefCount.HandleParamsAndLocals(FD); in AnnotateFunction()
634 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); in HandleTopLevelDecl() local
635 if (FD == nullptr) in HandleTopLevelDecl()
637 if (!FD->getName().startswith("rs")) // Check prefix in HandleTopLevelDecl()
639 if (!Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) in HandleTopLevelDecl()
640 mContext->ReportError(FD->getLocation(), in HandleTopLevelDecl()
643 << FD->getName(); in HandleTopLevelDecl()
648 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); in HandleTopLevelDecl() local
649 if (FD) { in HandleTopLevelDecl()
652 mContext->markUsedByReducePragma(FD, RSContext::CheckNameYes); in HandleTopLevelDecl()
653 if (FD->isGlobal()) { in HandleTopLevelDecl()
656 size_t numParams = FD->getNumParams(); in HandleTopLevelDecl()
658 const clang::ParmVarDecl *PVD = FD->getParamDecl(i); in HandleTopLevelDecl()
667 AnnotateFunction(FD); in HandleTopLevelDecl()
672 if (FD && FD->hasBody() && !FD->isImplicit() && in HandleTopLevelDecl()
673 !Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) { in HandleTopLevelDecl()
674 if (FD->hasAttr<clang::RenderScriptKernelAttr>()) { in HandleTopLevelDecl()
679 mContext->addForEach(FD); in HandleTopLevelDecl()
684 mForEachHandler.handleForEachCalls(FD, getTargetAPI()); in HandleTopLevelDecl()
731 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor(); in HandleTranslationUnitPre() local
732 if (FD) { in HandleTranslationUnitPre()
733 HandleTopLevelDecl(clang::DeclGroupRef(FD)); in HandleTranslationUnitPre()
741 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); in HandleTranslationUnitPre() local
742 if (FD && !FD->isGlobal()) { in HandleTranslationUnitPre()
743 AnnotateFunction(FD); in HandleTranslationUnitPre()