Lines Matching refs:FD

96 int RSContext::getForEachSlotNumber(const clang::FunctionDecl* FD) {  in getForEachSlotNumber()  argument
97 const clang::StringRef& funcName = FD->getName(); in getForEachSlotNumber()
109 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { in processExportFunc() argument
110 slangAssert(!FD->getName().empty() && "Function name should not be empty"); in processExportFunc()
112 if (!FD->isThisDeclarationADefinition()) { in processExportFunc()
116 slangAssert(FD->getStorageClass() == clang::SC_None); in processExportFunc()
119 if (RSSpecialFunc::isSpecialRSFunc(mTargetAPI, FD)) { in processExportFunc()
121 return RSSpecialFunc::validateSpecialFuncDecl(mTargetAPI, this, FD); in processExportFunc()
125 if (RSExportForEach::isRSForEachFunc(mTargetAPI, FD)) { in processExportFunc()
126 RSExportForEach *EFE = RSExportForEach::Create(this, FD); in processExportFunc()
132 if (FD->getName().equals("root")) { in processExportFunc()
138 if (FD->hasAttr<clang::RenderScriptKernelAttr>()) { in processExportFunc()
141 getForEachSlotNumber(FD->getName()) == in processExportFunc()
153 if (auto *EF = RSExportFunc::Create(this, FD)) { in processExportFunc()
161 bool RSContext::addForEach(const clang::FunctionDecl* FD) { in addForEach() argument
162 const llvm::StringRef& funcName = FD->getName(); in addForEach()
266 clang::FunctionDecl* FD = llvm::dyn_cast<clang::FunctionDecl>(D); in processExports() local
267 if (FD->getFormalLinkage() == clang::ExternalLinkage) { in processExports()
268 if (!processExportFunc(FD)) { in processExports()
321 void RSContext::markUsedByReducePragma(clang::FunctionDecl *FD, CheckName Check) { in markUsedByReducePragma() argument
322 if (mUsedByReducePragmaFns.find(FD) != mUsedByReducePragmaFns.end()) in markUsedByReducePragma()
331 auto NameMatches = [this, FD]() { in markUsedByReducePragma()
333 if ((*I)->matchName(FD->getName())) in markUsedByReducePragma()
342 mUsedByReducePragmaFns.insert(FD); in markUsedByReducePragma()
347 FD->setIsUsed(); in markUsedByReducePragma()
360 clang::DeclContext *const DC = FD->getDeclContext(); in markUsedByReducePragma()
361 const clang::SourceLocation Loc = FD->getLocation(); in markUsedByReducePragma()
365 &mCtx.Idents.get(std::string(".rs.reduce_fn.") + FD->getNameAsString()), in markUsedByReducePragma()
375 FD, false, Loc, FD->getType(), in markUsedByReducePragma()
377 …clang::ImplicitCastExpr *const ICE = clang::ImplicitCastExpr::Create(mCtx, mCtx.getPointerType(FD-… in markUsedByReducePragma()