Searched defs:FD (Results 1 - 9 of 9) sorted by relevance

/frameworks/compile/slang/
H A Dslang_rs_export_func.h54 const clang::FunctionDecl *FD)
61 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD);
65 Context->getMangleContext().mangleName(FD, BufStm);
72 const clang::FunctionDecl *FD);
53 RSExportFunc(RSContext *Context, const llvm::StringRef &Name, const clang::FunctionDecl *FD) argument
H A Dslang_rs_export_func.cpp36 const clang::FunctionDecl *FD) {
37 slangAssert(Context && FD);
38 const clang::ASTContext &C = FD->getASTContext();
39 if (FD->getReturnType().getCanonicalType() != C.VoidTy) {
41 FD->getLocation(),
51 const clang::FunctionDecl *FD) {
52 llvm::StringRef Name = FD->getName();
57 if (!ValidateFuncDecl(Context, FD)) {
61 F = new RSExportFunc(Context, Name, FD);
64 if (FD
35 ValidateFuncDecl(slang::RSContext *Context, const clang::FunctionDecl *FD) argument
50 Create(RSContext *Context, const clang::FunctionDecl *FD) argument
88 clang::FieldDecl *FD = local
[all...]
H A Dslang_rs_check_ast.cpp146 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) { argument
147 if (!FD) {
153 size_t numParams = FD->getNumParams();
155 clang::QualType resultType = FD->getReturnType().getCanonicalType();
157 // We use FD as our NamedDecl in the case of a bad return type.
158 if (!RSExportType::ValidateType(Context, C, resultType, FD,
159 FD->getLocStart(), mTargetAPI,
165 clang::ParmVarDecl *PVD = FD->getParamDecl(i);
175 mInKernel = RSExportForEach::isRSForEachFunc(mTargetAPI, Context, FD);
177 if (clang::Stmt *Body = FD
[all...]
H A Dslang_rs_context.cpp88 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { argument
89 slangAssert(!FD->getName().empty() && "Function name should not be empty");
91 if (!FD->isThisDeclarationADefinition()) {
95 if (FD->getStorageClass() != clang::SC_None) {
97 "static function '%s'\n", FD->getName().str().c_str());
101 if (RSExportForEach::isSpecialRSFunc(mTargetAPI, FD)) {
103 return RSExportForEach::validateSpecialFuncDecl(mTargetAPI, this, FD);
104 } else if (RSExportForEach::isRSForEachFunc(mTargetAPI, this, FD)) {
105 RSExportForEach *EFE = RSExportForEach::Create(this, FD);
113 RSExportFunc *EF = RSExportFunc::Create(this, FD);
225 clang::FunctionDecl *FD = (clang::FunctionDecl*) (*DI); local
[all...]
H A Dslang_rs_export_foreach.cpp38 RSContext *Context, const clang::FunctionDecl *FD) {
39 slangAssert(Context && FD);
42 numParams = FD->getNumParams();
46 if (!isRootRSFunc(FD)) {
47 Context->ReportError(FD->getLocation(),
50 << FD->getName() << SLANG_MINIMUM_TARGET_API
56 mResultType = FD->getReturnType().getCanonicalType();
59 if (FD->hasAttr<clang::KernelAttr>()) {
60 valid |= validateAndConstructKernelParams(Context, FD);
62 valid |= validateAndConstructOldStyleParams(Context, FD);
37 validateAndConstructParams( RSContext *Context, const clang::FunctionDecl *FD) argument
69 validateAndConstructOldStyleParams( RSContext *Context, const clang::FunctionDecl *FD) argument
147 validateAndConstructKernelParams( RSContext *Context, const clang::FunctionDecl *FD) argument
227 validateIterationParameters( RSContext *Context, const clang::FunctionDecl *FD, size_t *IndexOfFirstIterator) argument
296 setSignatureMetadata(RSContext *Context, const clang::FunctionDecl *FD) argument
337 Create(RSContext *Context, const clang::FunctionDecl *FD) argument
376 clang::FieldDecl *FD = local
444 isGraphicsRootRSFunc(unsigned int targetAPI, const clang::FunctionDecl *FD) argument
470 isRSForEachFunc(unsigned int targetAPI, slang::RSContext* Context, const clang::FunctionDecl *FD) argument
520 validateSpecialFuncDecl(unsigned int targetAPI, slang::RSContext *Context, clang::FunctionDecl const *FD) argument
[all...]
H A Dslang_rs_backend.cpp75 void RSBackend::AnnotateFunction(clang::FunctionDecl *FD) { argument
76 if (FD &&
77 FD->hasBody() &&
78 !SlangRS::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) {
80 mRefCount.Visit(FD->getBody());
90 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
91 if (FD == NULL)
93 if (!FD->getName().startswith("rs")) // Check prefix
95 if (!SlangRS::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr))
96 mContext->ReportError(FD
105 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
164 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor(); local
174 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
[all...]
H A Dslang_rs_export_foreach.h80 const clang::FunctionDecl *FD);
83 const clang::FunctionDecl *FD);
86 const clang::FunctionDecl *FD);
89 const clang::FunctionDecl *FD,
93 const clang::FunctionDecl *FD);
96 const clang::FunctionDecl *FD);
162 inline static bool isInitRSFunc(const clang::FunctionDecl *FD) { argument
163 if (!FD) {
166 const llvm::StringRef Name = FD->getName();
171 inline static bool isRootRSFunc(const clang::FunctionDecl *FD) { argument
180 isDtorRSFunc(const clang::FunctionDecl *FD) argument
195 isSpecialRSFunc(unsigned int targetAPI, const clang::FunctionDecl *FD) argument
[all...]
H A Dslang_rs_export_type.cpp307 const clang::FieldDecl *FD = *FI; local
308 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
318 if (FD->isBitField()) {
320 FD->getLocation(),
322 << RD->getName() << FD->getName();
516 const clang::FieldDecl *FD = *FI; local
517 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
983 const clang::FieldDecl *FD = *FI; local
984 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1294 const clang::FieldDecl *FD local
1436 clang::FieldDecl *FD = *FI; local
[all...]
H A Dslang_rs_object_ref_count.cpp55 clang::FunctionDecl *FD = static_cast<clang::FunctionDecl*>(*I); local
60 if (FD->getName() == "rsSetObject") {
61 slangAssert((FD->getNumParams() == 2) &&
64 } else if (FD->getName() == "rsClearObject") {
65 slangAssert((FD->getNumParams() == 1) &&
72 const clang::ParmVarDecl *PVD = FD->getParamDecl(0);
78 // The rs object type passed to the FD
85 RSObjectFD[DT] = FD;
620 const clang::FieldDecl *FD = *FI; local
621 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
639 const clang::FieldDecl *FD = *FI; local
683 clang::FieldDecl *FD = *FI; local
1009 clang::FieldDecl *FD = *FI; local
1508 clang::FunctionDecl *FD = NULL; local
[all...]

Completed in 128 milliseconds