/frameworks/compile/slang/ |
H A D | slang_rs_check_ast.cpp | 185 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) { argument 186 if (!VD) { 190 clang::QualType QT = VD->getType(); 192 if (VD->getFormalLinkage() == clang::ExternalLinkage) { 195 if (!RSExportType::NormalizeType(T, TypeName, Context, VD)) { 201 if (mInKernel && VD->isStaticLocal()) { 204 VD->getLocation(), 206 << VD->getName(); 211 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAPI, mIsFilterscript)) { 213 } else if (clang::Expr *Init = VD [all...] |
H A D | slang_rs_context.cpp | 70 bool RSContext::processExportVar(const clang::VarDecl *VD) { argument 71 slangAssert(!VD->getName().empty() && "Variable name should not be empty"); 75 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); 79 RSExportVar *EV = new RSExportVar(this, VD, ET); 217 clang::VarDecl *VD = (clang::VarDecl*) (*DI); local 218 if (VD->getFormalLinkage() == clang::ExternalLinkage) { 219 if (!processExportVar(VD)) {
|
H A D | slang_rs_export_type.cpp | 170 const clang::VarDecl *VD, 197 const clang::VarDecl *VD, 202 ReportTypeError(Context, VD, TopLevelRecord, 212 ReportTypeError(Context, VD, TopLevelRecord, 218 ReportTypeError(Context, VD, TopLevelRecord, 224 if (TypeExportableHelper(ElementType, SPS, Context, VD, 245 clang::VarDecl const *VD, 268 ReportTypeError(Context, VD, T->getAsUnionType()->getDecl(), 311 if (!TypeExportableHelper(FT, SPS, Context, VD, TopLevelRecord)) { 331 ReportTypeError(Context, VD, TopLevelRecor 193 ConstantArrayTypeExportableHelper( const clang::ConstantArrayType *CAT, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, slang::RSContext *Context, const clang::VarDecl *VD, const clang::RecordDecl *TopLevelRecord) argument 241 TypeExportableHelper( clang::Type const *T, llvm::SmallPtrSet<clang::Type const *, 8> &SPS, slang::RSContext *Context, clang::VarDecl const *VD, clang::RecordDecl const *TopLevelRecord) argument 396 TypeExportable(const clang::Type *T, slang::RSContext *Context, const clang::VarDecl *VD) argument 405 ValidateRSObjectInVarDecl(slang::RSContext *Context, clang::VarDecl *VD, bool InCompositeType, unsigned int TargetAPI) argument 466 clang::VarDecl *VD = (ND ? llvm::dyn_cast<clang::VarDecl>(ND) : NULL); local 623 NormalizeType(const clang::Type *&T, llvm::StringRef &TypeName, RSContext *Context, const clang::VarDecl *VD) argument 658 ValidateVarDecl(slang::RSContext *Context, clang::VarDecl *VD, unsigned int TargetAPI, bool IsFilterscript) argument 858 CreateFromDecl(RSContext *Context, const clang::VarDecl *VD) argument [all...] |
H A D | slang_rs_export_var.cpp | 30 const clang::VarDecl *VD, 33 mName(VD->getName().data(), VD->getName().size()), 40 const clang::Expr *Initializer = VD->getAnyInitializer(); 64 Context->ReportError(VD->getLocation(), 86 VD->getLocation(), 98 clang::QualType QT = VD->getTypeSourceInfo()->getType(); 29 RSExportVar(RSContext *Context, const clang::VarDecl *VD, const RSExportType *ET) argument
|
H A D | slang_rs_object_ref_count.cpp | 546 // Body -> "rsClearObject(&VD[rsIntIter]);" 1123 clang::VarDecl *VD, 1127 slangAssert(VD); 1141 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); 1146 VD, 1190 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); 1195 VD, 1229 clang::VarDecl *VD = *I; local 1230 clang::Stmt *RSClearObjectCall = ClearRSObject(VD, VD 1122 AppendRSObjectInit( clang::VarDecl *VD, clang::DeclStmt *DS, DataType DT, clang::Expr *InitExpr) argument 1242 ClearRSObject( clang::VarDecl *VD, clang::DeclContext *DC) argument 1280 InitializeRSObject(clang::VarDecl *VD, DataType *DT, clang::Expr **InitExpr) argument 1442 clang::VarDecl *VD = static_cast<clang::VarDecl*>(D); local 1515 clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*I); local [all...] |
H A D | slang_rs_object_ref_count.h | 56 inline void addRSObject(clang::VarDecl* VD) { argument 57 mRSO.push_back(VD); 62 void AppendRSObjectInit(clang::VarDecl *VD, 69 static clang::Stmt *ClearRSObject(clang::VarDecl *VD, 89 // Return false if the type of variable declared in VD does not contain 91 static bool InitializeRSObject(clang::VarDecl *VD,
|