• Home
  • Raw
  • Download

Lines Matching refs:FD

95 int RSContext::getForEachSlotNumber(const clang::FunctionDecl* FD) {  in getForEachSlotNumber()  argument
96 const clang::StringRef& funcName = FD->getName(); in getForEachSlotNumber()
108 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { in processExportFunc() argument
109 slangAssert(!FD->getName().empty() && "Function name should not be empty"); in processExportFunc()
111 if (!FD->isThisDeclarationADefinition()) { in processExportFunc()
115 slangAssert(FD->getStorageClass() == clang::SC_None); in processExportFunc()
118 if (RSSpecialFunc::isSpecialRSFunc(mTargetAPI, FD)) { in processExportFunc()
120 return RSSpecialFunc::validateSpecialFuncDecl(mTargetAPI, this, FD); in processExportFunc()
124 if (RSExportForEach::isRSForEachFunc(mTargetAPI, FD)) { in processExportFunc()
125 RSExportForEach *EFE = RSExportForEach::Create(this, FD); in processExportFunc()
131 if (FD->getName().equals("root")) { in processExportFunc()
137 if (FD->hasAttr<clang::KernelAttr>()) { in processExportFunc()
140 getForEachSlotNumber(FD->getName()) == in processExportFunc()
152 if (auto *EF = RSExportFunc::Create(this, FD)) { in processExportFunc()
160 bool RSContext::addForEach(const clang::FunctionDecl* FD) { in addForEach() argument
161 const llvm::StringRef& funcName = FD->getName(); in addForEach()
265 clang::FunctionDecl* FD = llvm::dyn_cast<clang::FunctionDecl>(D); in processExports() local
266 if (FD->getFormalLinkage() == clang::ExternalLinkage) { in processExports()
267 if (!processExportFunc(FD)) { in processExports()
320 void RSContext::markUsedByReducePragma(clang::FunctionDecl *FD, CheckName Check) { in markUsedByReducePragma() argument
321 if (mUsedByReducePragmaFns.find(FD) != mUsedByReducePragmaFns.end()) in markUsedByReducePragma()
330 auto NameMatches = [this, FD]() { in markUsedByReducePragma()
332 if ((*I)->matchName(FD->getName())) in markUsedByReducePragma()
341 mUsedByReducePragmaFns.insert(FD); in markUsedByReducePragma()
346 FD->setIsUsed(); in markUsedByReducePragma()
359 clang::DeclContext *const DC = FD->getDeclContext(); in markUsedByReducePragma()
360 const clang::SourceLocation Loc = FD->getLocation(); in markUsedByReducePragma()
364 &mCtx.Idents.get(std::string(".rs.reduce_fn.") + FD->getNameAsString()), in markUsedByReducePragma()
374 FD, false, Loc, FD->getType(), in markUsedByReducePragma()
376 …clang::ImplicitCastExpr *const ICE = clang::ImplicitCastExpr::Create(mCtx, mCtx.getPointerType(FD-… in markUsedByReducePragma()