Searched refs:VD (Results 1 - 11 of 11) sorted by last modified time

/frameworks/compile/slang/
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.cpp195 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) { argument
196 if (!VD || RSContext::isSyntheticName(VD->getName())) {
200 clang::QualType QT = VD->getType();
202 if (VD->getFormalLinkage() == clang::ExternalLinkage) {
205 if (!RSExportType::NormalizeType(T, TypeName, Context, VD,
212 if (mInKernel && VD->isStaticLocal()) {
215 VD->getLocation(),
217 << VD->getName();
222 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAP
[all...]
H A Dslang_rs_check_ast.h72 void ValidateVarDecl(clang::VarDecl *VD);
H A Dslang_rs_context.cpp80 bool RSContext::processExportVar(const clang::VarDecl *VD) { argument
81 slangAssert(!VD->getName().empty() && "Variable name should not be empty");
83 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
87 RSExportVar *EV = new RSExportVar(this, VD, ET);
238 clang::VarDecl* VD = llvm::dyn_cast<clang::VarDecl>(D); local
240 if (VD->getFormalLinkage() == clang::ExternalLinkage) {
241 clang::QualType QT = VD->getTypeSourceInfo()->getType();
242 if (QT.isConstQualified() && !VD->hasInit()) {
243 if (Slang::IsLocInRSHeaderFile(VD->getLocation(),
250 DiagEngine->Report(VD
363 clang::VarDecl *const VD = clang::VarDecl::Create( member in class:slang::clang
[all...]
H A Dslang_rs_context.h107 bool processExportVar(const clang::VarDecl *VD);
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(),
327 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
435 TypeExportable(const clang::Type *T, slang::RSContext *Context, const clang::VarDecl *VD, ExportKind EK) argument
445 ValidateRSObjectInVarDecl(slang::RSContext *Context, const clang::VarDecl *VD, bool InCompositeType, unsigned int TargetAPI) argument
509 const clang::VarDecl *VD = (ND ? llvm::dyn_cast<clang::VarDecl>(ND) : nullptr); local
682 NormalizeType(const clang::Type *&T, llvm::StringRef &TypeName, RSContext *Context, const clang::VarDecl *VD, ExportKind EK) argument
727 ValidateVarDecl(slang::RSContext *Context, clang::VarDecl *VD, unsigned int TargetAPI, bool IsFilterscript) argument
921 Create(RSContext *Context, const clang::Type *T, ExportKind EK, const clang::VarDecl *VD) argument
931 CreateFromDecl(RSContext *Context, const clang::VarDecl *VD) argument
[all...]
H A Dslang_rs_export_type.h262 const clang::VarDecl *VD,
276 static bool ValidateVarDecl(slang::RSContext *Context, clang::VarDecl *VD,
282 // T is type of VD or of subobject within VD
283 const clang::VarDecl *VD = nullptr);
285 const clang::VarDecl *VD);
H A Dslang_rs_export_var.cpp30 const clang::VarDecl *VD,
32 : RSExportable(Context, RSExportable::EX_VAR, VD->getLocation()),
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_export_var.h49 const clang::VarDecl *VD,
H A Dslang_rs_object_ref_count.cpp458 // Body -> "rsClearObject(&VD[rsIntIter]);"
1074 clang::VarDecl *VD,
1078 slangAssert(VD);
1092 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1097 VD,
1122 // need to mark M (clang::VarDecl *VD) as used.
1123 VD->markUsed(C);
1159 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1164 VD,
1210 for (clang::VarDecl* VD
1073 AppendRSObjectInit( clang::VarDecl *VD, clang::DeclStmt *DS, DataType DT, clang::Expr *InitExpr) argument
1258 ClearRSObject( clang::VarDecl *VD, clang::DeclContext *DC) argument
1296 InitializeRSObject(clang::VarDecl *VD, DataType *DT, clang::Expr **InitExpr) argument
1523 clang::VarDecl *VD = static_cast<clang::VarDecl*>(D); local
1754 clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*I); local
[all...]
H A Dslang_rs_object_ref_count.h64 inline void addRSObject(clang::VarDecl* VD) { argument
65 mRSO.push_back(VD);
70 void AppendRSObjectInit(clang::VarDecl *VD,
101 static clang::Stmt *ClearRSObject(clang::VarDecl *VD,
129 // Return false if the type of variable declared in VD does not contain
131 static bool InitializeRSObject(clang::VarDecl *VD,

Completed in 66 milliseconds