Searched defs:VD (Results 1 - 7 of 7) sorted by relevance

/frameworks/compile/slang/
H A Dslang_rs_export_var.cpp30 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 Dslang_rs_ast_replace.cpp93 clang::VarDecl* VD; local
94 if ((VD = llvm::dyn_cast<clang::VarDecl>(D))) {
95 if (matchesExpr(VD->getInit())) {
96 VD->setInit(mNewExpr);
H A Dslang_rs_check_ast.cpp210 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) { argument
211 if (!VD || RSContext::isSyntheticName(VD->getName())) {
215 clang::QualType QT = VD->getType();
217 if (VD->getFormalLinkage() == clang::ExternalLinkage) {
220 if (!RSExportType::NormalizeType(T, TypeName, Context, VD,
227 if (mInKernel && VD->isStaticLocal()) {
230 VD->getLocation(),
232 << VD->getName();
237 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAP
[all...]
H A Dslang_rs_object_ref_count.h63 inline void addRSObject(clang::VarDecl* VD) { argument
64 mRSO.push_back(VD);
69 void AppendRSObjectInit(clang::VarDecl *VD,
100 static clang::Stmt *ClearRSObject(clang::VarDecl *VD,
128 // Return false if the type of variable declared in VD does not contain
130 static bool InitializeRSObject(clang::VarDecl *VD,
H A Dslang_rs_context.cpp79 bool RSContext::processExportVar(const clang::VarDecl *VD) { argument
80 slangAssert(!VD->getName().empty() && "Variable name should not be empty");
82 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
86 RSExportVar *EV = new RSExportVar(this, VD, ET);
237 clang::VarDecl* VD = llvm::dyn_cast<clang::VarDecl>(D); local
239 if (VD->getFormalLinkage() == clang::ExternalLinkage) {
240 clang::QualType QT = VD->getTypeSourceInfo()->getType();
241 if (QT.isConstQualified() && !VD->hasInit()) {
242 if (Slang::IsLocInRSHeaderFile(VD->getLocation(),
249 DiagEngine->Report(VD
362 clang::VarDecl *const VD = clang::VarDecl::Create( member in class:slang::clang
[all...]
H A Dslang_rs_export_type.cpp184 const clang::VarDecl *VD,
212 const clang::VarDecl *VD,
218 ReportTypeError(Context, VD, TopLevelRecord,
228 ReportTypeError(Context, VD, TopLevelRecord,
234 ReportTypeError(Context, VD, TopLevelRecord,
240 if (TypeExportableHelper(ElementType, SPS, Context, VD,
261 clang::VarDecl const *VD,
285 ReportTypeError(Context, VD, T->getAsUnionType()->getDecl(),
328 if (!TypeExportableHelper(FT, SPS, Context, VD, TopLevelRecord,
348 ReportTypeError(Context, VD, TopLevelRecor
208 ConstantArrayTypeExportableHelper( const clang::ConstantArrayType *CAT, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, slang::RSContext *Context, const clang::VarDecl *VD, const clang::RecordDecl *TopLevelRecord, ExportKind EK) argument
257 TypeExportableHelper( clang::Type const *T, llvm::SmallPtrSet<clang::Type const *, 8> &SPS, slang::RSContext *Context, clang::VarDecl const *VD, clang::RecordDecl const *TopLevelRecord, ExportKind EK) argument
430 TypeExportable(const clang::Type *T, slang::RSContext *Context, const clang::VarDecl *VD, ExportKind EK) argument
440 ValidateRSObjectInVarDecl(slang::RSContext *Context, const clang::VarDecl *VD, bool InCompositeType, unsigned int TargetAPI) argument
504 const clang::VarDecl *VD = (ND ? llvm::dyn_cast<clang::VarDecl>(ND) : nullptr); local
678 NormalizeType(const clang::Type *&T, llvm::StringRef &TypeName, RSContext *Context, const clang::VarDecl *VD, ExportKind EK) argument
723 ValidateVarDecl(slang::RSContext *Context, clang::VarDecl *VD, unsigned int TargetAPI, bool IsFilterscript) argument
917 Create(RSContext *Context, const clang::Type *T, ExportKind EK, const clang::VarDecl *VD) argument
927 CreateFromDecl(RSContext *Context, const clang::VarDecl *VD) argument
[all...]
H A Dslang_rs_object_ref_count.cpp459 // Body -> "rsClearObject(&VD[rsIntIter]);"
1069 clang::VarDecl *VD,
1073 slangAssert(VD);
1087 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1092 VD,
1136 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1141 VD,
1187 for (clang::VarDecl* VD : mRSO) {
1188 clang::SourceLocation Loc = VD->getSourceRange().getBegin();
1189 clang::Stmt* RSClearObjectCall = ClearRSObject(VD, D
1068 AppendRSObjectInit( clang::VarDecl *VD, clang::DeclStmt *DS, DataType DT, clang::Expr *InitExpr) argument
1235 ClearRSObject( clang::VarDecl *VD, clang::DeclContext *DC) argument
1273 InitializeRSObject(clang::VarDecl *VD, DataType *DT, clang::Expr **InitExpr) argument
1410 clang::VarDecl *VD = static_cast<clang::VarDecl*>(D); local
1605 clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*I); local
[all...]

Completed in 54 milliseconds