Home
last modified time | relevance | path

Searched refs:RSExportType (Results 1 – 19 of 19) sorted by relevance

/frameworks/compile/slang/
Dslang_rs_reflection_cpp.cpp64 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 …]
Dslang_rs_export_type.h89 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 …]
Dslang_rs_reflection.cpp162 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 …]
Dslang_rs_export_var.cpp44 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()
Dslang_rs_export_type.cpp233 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 …]
Dslang_rs_reflection_cpp.h73 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);
Dslang_rs_export_element.cpp59 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()
Dslang_rs_export_var.h32 class RSExportType; variable
38 const RSExportType *mET;
50 const RSExportType *ET);
54 inline const RSExportType *getType() const { return mET; } in getType()
Dslang_rs_export_element.h37 class RSExportType; variable
57 static RSExportType *Create(RSContext *Context,
66 static RSExportType *CreateFromDecl(RSContext *Context,
Dslang_rs_reflection.h242 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,
Dslang_rs_export_foreach.h42 RSExportType *mInType;
43 RSExportType *mOutType;
109 inline const RSExportType *getInType() const { in getInType()
113 inline const RSExportType *getOutType() const { in getOutType()
Dslang_rs_export_func.cpp110 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()
Dslang_rs_backend.cpp205 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()
Dslang_rs_context.cpp92 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()
Dslang_rs_check_ast.cpp162 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()
Dslang_rs_context.h52 class RSExportType; variable
64 typedef llvm::StringMap<RSExportType*> ExportTypeMap;
219 bool insertExportType(const llvm::StringRef &TypeName, RSExportType *Type);
Dslang_rs_export_foreach.cpp448 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()
Dslang_rs.cpp106 RSExportType *ET = static_cast<RSExportType *>(RSE); in checkODR()
107 if (ET->getClass() != RSExportType::ExportClassRecord) in checkODR()
Dslang_rs_object_ref_count.cpp637 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()