/frameworks/compile/slang/ |
H A D | slang_rs_export_func.h | 54 const clang::FunctionDecl *FD) 61 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD); 65 Context->getMangleContext().mangleName(FD, BufStm); 74 const clang::FunctionDecl *FD); 53 RSExportFunc(RSContext *Context, const llvm::StringRef &Name, const clang::FunctionDecl *FD) argument
|
H A D | slang_rs_export_foreach.cpp | 56 RSContext *Context, const clang::FunctionDecl *FD) { 57 slangAssert(Context && FD); 62 numParams = FD->getNumParams(); 66 if (!isRootRSFunc(FD)) { 68 clang::FullSourceLoc(FD->getLocation(), DiagEngine->getSourceManager()), 72 << FD->getName() 80 if (FD->getResultType().getCanonicalType() != C.VoidTy) { 82 clang::FullSourceLoc(FD->getLocation(), DiagEngine->getSourceManager()), 85 "void type")) << FD->getName(); 93 const clang::ParmVarDecl *PVD = FD 55 validateAndConstructParams( RSContext *Context, const clang::FunctionDecl *FD) argument 219 Create(RSContext *Context, const clang::FunctionDecl *FD) argument 259 clang::FieldDecl *FD = local 314 isGraphicsRootRSFunc(int targetAPI, const clang::FunctionDecl *FD) argument 336 isRSForEachFunc(int targetAPI, const clang::FunctionDecl *FD) argument 367 validateSpecialFuncDecl(int targetAPI, clang::DiagnosticsEngine *DiagEngine, clang::FunctionDecl const *FD) argument [all...] |
H A D | slang_rs_export_func.cpp | 36 const clang::FunctionDecl *FD) { 37 slangAssert(DiagEngine && FD); 38 const clang::ASTContext &C = FD->getASTContext(); 39 if (FD->getResultType().getCanonicalType() != C.VoidTy) { 41 clang::FullSourceLoc(FD->getLocation(), DiagEngine->getSourceManager()), 53 const clang::FunctionDecl *FD) { 54 llvm::StringRef Name = FD->getName(); 59 if (!ValidateFuncDecl(Context->getDiagnostics(), FD)) { 63 F = new RSExportFunc(Context, Name, FD); 66 if (FD 35 ValidateFuncDecl(clang::DiagnosticsEngine *DiagEngine, const clang::FunctionDecl *FD) argument 52 Create(RSContext *Context, const clang::FunctionDecl *FD) argument 91 clang::FieldDecl *FD = local [all...] |
H A D | slang_rs_export_foreach.h | 69 const clang::FunctionDecl *FD); 73 const clang::FunctionDecl *FD); 131 inline static bool isInitRSFunc(const clang::FunctionDecl *FD) { argument 132 if (!FD) { 135 const llvm::StringRef Name = FD->getName(); 140 inline static bool isRootRSFunc(const clang::FunctionDecl *FD) { argument 141 if (!FD) { 144 const llvm::StringRef Name = FD->getName(); 149 inline static bool isDtorRSFunc(const clang::FunctionDecl *FD) { argument 150 if (!FD) { 163 isSpecialRSFunc(int targetAPI, const clang::FunctionDecl *FD) argument [all...] |
H A D | slang_rs_backend.cpp | 71 void RSBackend::AnnotateFunction(clang::FunctionDecl *FD) { argument 72 if (FD && 73 FD->hasBody() && 74 !SlangRS::IsFunctionInRSHeaderFile(FD, mSourceMgr)) { 76 mRefCount.Visit(FD->getBody()); 87 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local 88 if (FD == NULL) 90 if (!FD->getName().startswith("rs")) // Check prefix 92 if (!SlangRS::IsFunctionInRSHeaderFile(FD, mSourceMgr)) 94 clang::FullSourceLoc(FD 104 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local 174 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor(); local 184 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local [all...] |
H A D | slang_rs_context.cpp | 103 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { argument 104 slangAssert(!FD->getName().empty() && "Function name should not be empty"); 106 if (!FD->isThisDeclarationADefinition()) { 110 if (FD->getStorageClass() != clang::SC_None) { 112 "static function '%s'\n", FD->getName().str().c_str()); 116 if (RSExportForEach::isSpecialRSFunc(mTargetAPI, FD)) { 119 getDiagnostics(), FD); 120 } else if (RSExportForEach::isRSForEachFunc(mTargetAPI, FD)) { 121 RSExportForEach *EFE = RSExportForEach::Create(this, FD); 129 RSExportFunc *EF = RSExportFunc::Create(this, FD); 241 clang::FunctionDecl *FD = (clang::FunctionDecl*) (*DI); local [all...] |
H A D | slang_rs.cpp | 246 bool SlangRS::IsFunctionInRSHeaderFile(const clang::FunctionDecl *FD, argument 248 clang::FullSourceLoc FSL(FD->getLocStart(), SourceMgr);
|
H A D | slang_rs_export_type.cpp | 233 const clang::FieldDecl *FD = *FI; local 234 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); 244 if (FD->isBitField()) { 247 clang::FullSourceLoc(FD->getLocation(), 253 << FD->getName(); 435 const clang::FieldDecl *FD = *FI; local 436 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); 849 const clang::FieldDecl *FD = *FI; local 850 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); 1209 const clang::FieldDecl *FD local 1385 clang::FieldDecl *FD = *FI; local [all...] |
H A D | slang_rs_object_ref_count.cpp | 56 clang::FunctionDecl *FD = static_cast<clang::FunctionDecl*>(*I); local 61 if (FD->getName() == "rsSetObject") { 62 slangAssert((FD->getNumParams() == 2) && 65 } else if (FD->getName() == "rsClearObject") { 66 slangAssert((FD->getNumParams() == 1) && 73 const clang::ParmVarDecl *PVD = FD->getParamDecl(0); 79 // The rs object type passed to the FD 86 RSObjectFD[(DT - RSExportPrimitiveType::FirstRSObjectType)] = FD; 636 const clang::FieldDecl *FD = *FI; local 637 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); 655 const clang::FieldDecl *FD = *FI; local 698 clang::FieldDecl *FD = *FI; local 1026 clang::FieldDecl *FD = *FI; local 1524 clang::FunctionDecl *FD = NULL; local [all...] |