Searched refs:RSExportType (Results 1 - 16 of 16) sorted by relevance

/frameworks/compile/slang/
H A Dslang_rs_export_var.h35 class RSExportType;
41 const RSExportType *mET;
48 const RSExportType *ET);
52 inline const RSExportType *getType() const { return mET; }
H A Dslang_rs_export_var.cpp31 const RSExportType *ET)
40 case RSExportType::ExportClassPrimitive:
41 case RSExportType::ExportClassVector: {
45 case RSExportType::ExportClassPointer: {
55 case RSExportType::ExportClassRecord: {
H A Dslang_rs_export_element.h37 class RSExportType;
58 static RSExportType *Create(RSContext *Context,
67 static RSExportType *CreateFromDecl(RSContext *Context,
H A Dslang_rs_export_type.h63 class RSExportType : public RSExportable { class in namespace:slang
85 RSExportType(RSContext *Context,
92 // @T was normalized by calling RSExportType::NormalizeType().
93 // @TypeName was retrieve from RSExportType::GetTypeName() before calling
96 static RSExportType *Create(RSContext *Context,
102 // This function convert the RSExportType to LLVM type. Actually, it should be
122 virtual ~RSExportType();
137 static RSExportType *Create(RSContext *Context, const clang::Type *T);
138 static RSExportType *CreateFromDecl(RSContext *Context,
157 // Return the number of bits necessary to hold the specified RSExportType
[all...]
H A Dslang_rs_reflection.cpp320 static std::string GetTypeName(const RSExportType *ET) {
322 case RSExportType::ExportClassPrimitive: {
326 case RSExportType::ExportClassPointer: {
327 const RSExportType *PointeeType =
330 if (PointeeType->getClass() != RSExportType::ExportClassRecord)
335 case RSExportType::ExportClassVector: {
338 case RSExportType::ExportClassMatrix: {
341 case RSExportType::ExportClassConstantArray: {
348 case RSExportType::ExportClassRecord: {
360 static const char *GetTypeNullValue(const RSExportType *E
[all...]
H A Dslang_rs_export_element.cpp60 RSExportType *RSExportElement::Create(RSContext *Context,
63 // Create RSExportType corresponded to the @T first and then verify
66 RSExportType *ET = NULL;
73 if (!RSExportType::NormalizeType(T, TypeName, Context->getDiagnostics(),
122 RSExportType *RSExportElement::CreateFromDecl(RSContext *Context,
124 const clang::Type* T = RSExportType::GetTypeOfDecl(DD);
132 return RSExportType::Create(Context, T);
152 return RSExportType::Create(Context, T);
H A Dslang_rs_export_type.cpp194 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
273 // Return the type that can be used to create RSExportType, will always return
348 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
395 /****************************** RSExportType ******************************/
396 bool RSExportType::NormalizeType(const clang::Type *&T,
404 TypeName = RSExportType::GetTypeName(T);
425 bool RSExportType::ValidateVarDecl(clang::VarDecl *VD) {
434 *RSExportType::GetTypeOfDecl(const clang::DeclaratorDecl *DD) {
450 llvm::StringRef RSExportType::GetTypeName(const clang::Type* T) {
535 RSExportType *RSExportTyp
652 RSExportType::RSExportType(RSContext *Context, function in class:slang::RSExportType
[all...]
H A Dslang_rs_export_foreach.h42 RSExportType *mInType;
43 RSExportType *mOutType;
94 inline const RSExportType *getInType() const {
98 inline const RSExportType *getOutType() const {
H A Dslang_rs_backend.cpp123 if (!RSExportType::NormalizeType(T, TypeName, &C.getDiagnostics(), VD)) {
127 valid &= RSExportType::ValidateVarDecl(VD);
213 const RSExportType *ET = EV->getType();
222 case RSExportType::ExportClassPrimitive: {
233 case RSExportType::ExportClassPointer: {
240 case RSExportType::ExportClassMatrix: {
248 case RSExportType::ExportClassVector:
249 case RSExportType::ExportClassConstantArray:
250 case RSExportType::ExportClassRecord: {
440 const RSExportType *E
[all...]
H A Dslang_rs_export_func.cpp110 RSExportType *ET =
111 RSExportType::Create(Context, T.getTypePtr());
120 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) &&
166 size_t T1Size = RSExportType::GetTypeAllocSize(F->getType());
H A Dslang_rs_reflection.h228 const RSExportType *ET,
249 const RSExportType *ET,
253 const RSExportType *ET);
275 const RSExportType *ERT,
286 const RSExportType *T,
289 const RSExportType *T,
293 const RSExportType *T,
H A Dslang_rs_context.cpp93 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
158 RSExportType *ET = NULL;
183 ET = RSExportType::Create(this, T);
234 RSExportType *ET) {
H A Dslang_rs_export_foreach.cpp268 RSExportType *ET = RSExportType::Create(Context, T.getTypePtr());
277 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) &&
286 FE->mInType = RSExportType::Create(Context, T);
291 FE->mOutType = RSExportType::Create(Context, T);
H A Dslang_rs_context.h52 class RSExportType;
64 typedef llvm::StringMap<RSExportType*> ExportTypeMap;
204 bool insertExportType(const llvm::StringRef &TypeName, RSExportType *Type);
H A Dslang_rs.cpp91 RSExportType *ET = static_cast<RSExportType *>(RSE);
92 if (ET->getClass() != RSExportType::ExportClassRecord)
H A Dslang_rs_object_ref_count.cpp633 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
652 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
695 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1019 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1149 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1194 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1255 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1289 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);

Completed in 65 milliseconds