/frameworks/compile/slang/ |
D | slang_rs_reflection_cpp.cpp | 64 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) { in GetTypeName() 66 case RSExportType::ExportClassPrimitive: { in GetTypeName() 70 case RSExportType::ExportClassPointer: { in GetTypeName() 71 const RSExportType *PointeeType = in GetTypeName() 74 if (PointeeType->getClass() != RSExportType::ExportClassRecord) in GetTypeName() 79 case RSExportType::ExportClassVector: { in GetTypeName() 87 case RSExportType::ExportClassMatrix: { in GetTypeName() 90 case RSExportType::ExportClassConstantArray: { in GetTypeName() 100 case RSExportType::ExportClassRecord: { in GetTypeName() 195 const RSExportType *IET = EF->getInType(); in makeHeader() [all …]
|
D | slang_rs_export_type.h | 89 class RSExportType : public RSExportable { 113 RSExportType(RSContext *Context, 124 static RSExportType *Create(RSContext *Context, 150 virtual ~RSExportType(); 174 static RSExportType *Create(RSContext *Context, const clang::Type *T); 175 static RSExportType *CreateFromDecl(RSContext *Context, 197 static size_t GetTypeStoreSize(const RSExportType *ET); 200 static size_t GetTypeAllocSize(const RSExportType *ET); 214 class RSExportPrimitiveType : public RSExportType { 215 friend class RSExportType; variable [all …]
|
D | slang_rs_reflection.cpp | 162 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) { in GetTypeName() 164 case RSExportType::ExportClassPrimitive: { in GetTypeName() 168 case RSExportType::ExportClassPointer: { in GetTypeName() 169 const RSExportType *PointeeType = in GetTypeName() 172 if (PointeeType->getClass() != RSExportType::ExportClassRecord) in GetTypeName() 177 case RSExportType::ExportClassVector: { in GetTypeName() 185 case RSExportType::ExportClassMatrix: { in GetTypeName() 188 case RSExportType::ExportClassConstantArray: { in GetTypeName() 197 case RSExportType::ExportClassRecord: { in GetTypeName() 208 static const char *GetTypeNullValue(const RSExportType *ET) { in GetTypeNullValue() [all …]
|
D | slang_rs_export_var.cpp | 44 const RSExportType *ET) in RSExportVar() 56 case RSExportType::ExportClassPrimitive: in RSExportVar() 57 case RSExportType::ExportClassVector: { in RSExportVar() 61 case RSExportType::ExportClassPointer: { in RSExportVar() 73 case RSExportType::ExportClassConstantArray: { in RSExportVar() 96 case RSExportType::ExportClassMatrix: in RSExportVar() 97 case RSExportType::ExportClassRecord: { in RSExportVar()
|
D | slang_rs_export_type.cpp | 233 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in TypeExportableHelper() 441 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in ValidateTypeHelper() 545 bool RSExportType::NormalizeType(const clang::Type *&T, in NormalizeType() 553 TypeName = RSExportType::GetTypeName(T); in NormalizeType() 574 bool RSExportType::ValidateType(clang::ASTContext &C, clang::QualType QT, in ValidateType() 586 bool RSExportType::ValidateVarDecl(clang::VarDecl *VD, unsigned int TargetAPI, in ValidateVarDecl() 593 *RSExportType::GetTypeOfDecl(const clang::DeclaratorDecl *DD) { in GetTypeOfDecl() 605 llvm::StringRef RSExportType::GetTypeName(const clang::Type* T) { in GetTypeName() 690 RSExportType *RSExportType::Create(RSContext *Context, in Create() 701 RSExportType *ET = NULL; in Create() [all …]
|
D | slang_rs_reflection_cpp.h | 73 void genInitExportVariable(const RSExportType *ET, 96 bool genCreateFieldPacker(const RSExportType *T, 100 void genPackVarOfType(const RSExportType *ET, 105 void genTypeCheck(const RSExportType *ET, const char *VarName); 108 void genTypeInstanceFromPointer(const RSExportType *ET); 109 void genTypeInstance(const RSExportType *ET);
|
D | slang_rs_export_element.cpp | 59 RSExportType *RSExportElement::Create(RSContext *Context, in Create() 65 RSExportType *ET = NULL; in Create() 72 if (!RSExportType::NormalizeType(T, TypeName, Context->getDiagnostics(), in Create() 119 RSExportType *RSExportElement::CreateFromDecl(RSContext *Context, in CreateFromDecl() 121 const clang::Type* T = RSExportType::GetTypeOfDecl(DD); in CreateFromDecl() 129 return RSExportType::Create(Context, T); in CreateFromDecl() 149 return RSExportType::Create(Context, T); in CreateFromDecl()
|
D | slang_rs_export_var.h | 32 class RSExportType; variable 38 const RSExportType *mET; 50 const RSExportType *ET); 54 inline const RSExportType *getType() const { return mET; } in getType()
|
D | slang_rs_export_element.h | 37 class RSExportType; variable 57 static RSExportType *Create(RSContext *Context, 66 static RSExportType *CreateFromDecl(RSContext *Context,
|
D | slang_rs_reflection.h | 242 const RSExportType *ET, 271 const RSExportType *ET, 275 const RSExportType *ET); 278 const RSExportType *ET); 281 const RSExportType *ET); 303 const RSExportType *ERT, 314 const RSExportType *T, 317 const RSExportType *T, 321 const RSExportType *T,
|
D | slang_rs_export_foreach.h | 42 RSExportType *mInType; 43 RSExportType *mOutType; 109 inline const RSExportType *getInType() const { in getInType() 113 inline const RSExportType *getOutType() const { in getOutType()
|
D | slang_rs_export_func.cpp | 110 RSExportType *ET = in Create() 111 RSExportType::Create(Context, T.getTypePtr()); in Create() 120 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) && in Create() 166 size_t T1Size = RSExportType::GetTypeAllocSize(F->getType()); in checkParameterPacketType()
|
D | slang_rs_backend.cpp | 205 const RSExportType *ET = EV->getType(); in dumpExportVarInfo() 214 case RSExportType::ExportClassPrimitive: { in dumpExportVarInfo() 225 case RSExportType::ExportClassPointer: { in dumpExportVarInfo() 232 case RSExportType::ExportClassMatrix: { in dumpExportVarInfo() 240 case RSExportType::ExportClassVector: in dumpExportVarInfo() 241 case RSExportType::ExportClassConstantArray: in dumpExportVarInfo() 242 case RSExportType::ExportClassRecord: { in dumpExportVarInfo() 442 const RSExportType *ET = I->getValue(); in dumpExportTypeInfo() 449 if (ET->getClass() == RSExportType::ExportClassRecord) { in dumpExportTypeInfo()
|
D | slang_rs_context.cpp | 92 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); in processExportVar() 155 RSExportType *ET = NULL; in processExportType() 180 ET = RSExportType::Create(this, T); in processExportType() 271 RSExportType *ET) { in insertExportType()
|
D | slang_rs_check_ast.cpp | 162 if (!RSExportType::ValidateType(C, resultType, FD, in ValidateFunctionDecl() 171 if (!RSExportType::ValidateType(C, QT, PVD, PVD->getLocStart(), in ValidateFunctionDecl() 199 if (!RSExportType::NormalizeType(T, TypeName, &mDiagEngine, VD)) { in ValidateVarDecl() 217 if (!RSExportType::ValidateVarDecl(VD, mTargetAPI, mIsFilterscript)) { in ValidateVarDecl() 278 !RSExportType::ValidateType(C, E->getType(), NULL, E->getExprLoc(), in VisitExpr()
|
D | slang_rs_context.h | 52 class RSExportType; variable 64 typedef llvm::StringMap<RSExportType*> ExportTypeMap; 219 bool insertExportType(const llvm::StringRef &TypeName, RSExportType *Type);
|
D | slang_rs_export_foreach.cpp | 448 RSExportType *ET = RSExportType::Create(Context, T.getTypePtr()); in Create() 457 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) && in Create() 466 FE->mInType = RSExportType::Create(Context, T); in Create() 474 FE->mOutType = RSExportType::Create(Context, T); in Create() 478 FE->mOutType = RSExportType::Create(Context, T); in Create()
|
D | slang_rs.cpp | 106 RSExportType *ET = static_cast<RSExportType *>(RSE); in checkODR() 107 if (ET->getClass() != RSExportType::ExportClassRecord) in checkODR()
|
D | slang_rs_object_ref_count.cpp | 637 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CountRSObjectTypes() 656 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CountRSObjectTypes() 700 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in ClearStructRSObject() 1027 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CreateStructRSSetObject() 1160 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in AppendRSObjectInit() 1209 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in AppendRSObjectInit() 1271 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in ClearRSObject() 1307 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in InitializeRSObject()
|