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

/frameworks/compile/slang/
H A Dslang_rs_export_element.h37 class RSExportType;
57 static RSExportType *Create(RSContext *Context,
66 static RSExportType *CreateFromDecl(RSContext *Context,
H A Dslang_rs_export_var.h32 class RSExportType;
38 const RSExportType *mET;
50 const RSExportType *ET);
54 inline const RSExportType *getType() const { return mET; }
H A Dslang_rs_export_var.cpp31 const RSExportType *ET)
43 case RSExportType::ExportClassPrimitive:
44 case RSExportType::ExportClassVector: {
48 case RSExportType::ExportClassPointer: {
60 case RSExportType::ExportClassConstantArray: {
83 case RSExportType::ExportClassMatrix:
84 case RSExportType::ExportClassRecord: {
H A Dslang_rs_export_type.h170 class RSExportType : public RSExportable { class in namespace:slang
192 RSExportType(RSContext *Context,
199 // @T was normalized by calling RSExportType::NormalizeType().
200 // @TypeName was retrieve from RSExportType::GetTypeName() before calling
203 static RSExportType *Create(RSContext *Context,
209 // This function convert the RSExportType to LLVM type. Actually, it should be
224 virtual ~RSExportType();
249 static RSExportType *Create(RSContext *Context, const clang::Type *T);
250 static RSExportType *CreateFromDecl(RSContext *Context,
280 }; // RSExportType
[all...]
H A Dslang_rs_reflection.cpp86 void genAddElement(const RSExportType *ET, const std::string &VarName,
176 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) {
178 case RSExportType::ExportClassPrimitive: {
182 case RSExportType::ExportClassPointer: {
183 const RSExportType *PointeeType =
186 if (PointeeType->getClass() != RSExportType::ExportClassRecord)
191 case RSExportType::ExportClassVector: {
198 case RSExportType::ExportClassMatrix: {
201 case RSExportType::ExportClassConstantArray: {
210 case RSExportType
[all...]
H A Dslang_rs_reflection_cpp.h101 void genInitExportVariable(const RSExportType *ET, const std::string &VarName,
122 bool genCreateFieldPacker(const RSExportType *T, const char *FieldPackerName);
125 void genPackVarOfType(const RSExportType *ET, const char *VarName,
129 void genTypeCheck(const RSExportType *ET, const char *VarName);
132 void genTypeInstanceFromPointer(const RSExportType *ET);
133 void genTypeInstance(const RSExportType *ET);
H A Dslang_rs_reflection_cpp.cpp62 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) {
64 case RSExportType::ExportClassPrimitive: {
74 case RSExportType::ExportClassPointer: {
75 const RSExportType *PointeeType =
78 if (PointeeType->getClass() != RSExportType::ExportClassRecord)
83 case RSExportType::ExportClassVector: {
90 case RSExportType::ExportClassMatrix: {
93 case RSExportType::ExportClassConstantArray: {
103 case RSExportType::ExportClassRecord: {
184 const RSExportType *OE
[all...]
H A Dslang_rs_export_element.cpp71 RSExportType *RSExportElement::Create(RSContext *Context,
74 // Create RSExportType corresponded to the @T first and then verify
77 RSExportType *ET = NULL;
84 if (!RSExportType::NormalizeType(T, TypeName, Context, NULL))
130 RSExportType *RSExportElement::CreateFromDecl(RSContext *Context,
132 const clang::Type* T = RSExportType::GetTypeOfDecl(DD);
140 return RSExportType::Create(Context, T);
160 return RSExportType::Create(Context, T);
H A Dslang_rs_export_type.cpp308 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
389 // Return the type that can be used to create RSExportType, will always return
517 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
622 /****************************** RSExportType ******************************/
623 bool RSExportType::NormalizeType(const clang::Type *&T,
631 TypeName = RSExportType::GetTypeName(T);
645 bool RSExportType::ValidateType(slang::RSContext *Context, clang::ASTContext &C,
658 bool RSExportType::ValidateVarDecl(slang::RSContext *Context,
666 *RSExportType::GetTypeOfDecl(const clang::DeclaratorDecl *DD) {
678 llvm::StringRef RSExportType
871 RSExportType::RSExportType(RSContext *Context, function in class:slang::RSExportType
[all...]
H A Dslang_rs_reflection.h179 void genInitExportVariable(const RSExportType *ET, const std::string &VarName,
200 void genTypeCheck(const RSExportType *ET, const char *VarName);
202 void genTypeInstanceFromPointer(const RSExportType *ET);
204 void genTypeInstance(const RSExportType *ET);
206 void genFieldPackerInstance(const RSExportType *ET);
223 void genAddElementToElementBuilder(const RSExportType *ERT,
229 bool genCreateFieldPacker(const RSExportType *T, const char *FieldPackerName);
230 void genPackVarOfType(const RSExportType *T, const char *VarName,
232 void genAllocateVarOfType(const RSExportType *T, const std::string &VarName);
H A Dslang_rs_export_foreach.h43 typedef llvm::SmallVectorImpl<const RSExportType*> InTypeVec;
51 llvm::SmallVector<const RSExportType*, 16> mInTypes;
52 RSExportType *mOutType;
132 inline const RSExportType *getOutType() const {
H A Dslang_rs_check_ast.cpp158 if (!RSExportType::ValidateType(Context, C, resultType, FD,
167 if (!RSExportType::ValidateType(Context, C, QT, PVD, PVD->getLocStart(),
195 if (!RSExportType::NormalizeType(T, TypeName, Context, VD)) {
211 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAPI, mIsFilterscript)) {
263 !RSExportType::ValidateType(Context, C, E->getType(), NULL, E->getExprLoc(),
H A Dslang_rs_context.cpp75 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
136 RSExportType *ET = NULL;
161 ET = RSExportType::Create(this, T);
252 RSExportType *ET) {
H A Dslang_rs_export_func.cpp107 RSExportType *ET =
108 RSExportType::Create(Context, T.getTypePtr());
117 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) &&
H A Dslang_rs_export_foreach.cpp394 RSExportType *ET = RSExportType::Create(Context, T.getTypePtr());
403 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) &&
414 RSExportType *InExportType = RSExportType::Create(Context, T);
426 FE->mOutType = RSExportType::Create(Context, T);
430 FE->mOutType = RSExportType::Create(Context, T);
H A Dslang_rs_backend.cpp198 const RSExportType *ET = EV->getType();
207 case RSExportType::ExportClassPrimitive: {
218 case RSExportType::ExportClassPointer: {
225 case RSExportType::ExportClassMatrix: {
240 case RSExportType::ExportClassVector:
241 case RSExportType::ExportClassConstantArray:
242 case RSExportType::ExportClassRecord: {
453 const RSExportType *ET = I->getValue();
460 if (ET->getClass() == RSExportType::ExportClassRecord) {
499 } // ET->getClass() == RSExportType
[all...]
H A Dslang_rs_context.h51 class RSExportType;
63 typedef llvm::StringMap<RSExportType*> ExportTypeMap;
223 bool insertExportType(const llvm::StringRef &TypeName, RSExportType *Type);
H A Dslang_rs.cpp105 RSExportType *ET = static_cast<RSExportType *>(RSE);
106 if (ET->getClass() != RSExportType::ExportClassRecord)
H A Dslang_rs_object_ref_count.cpp621 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
640 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
684 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1010 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1141 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1190 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1249 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);
1284 const clang::Type *T = RSExportType::GetTypeOfDecl(VD);

Completed in 959 milliseconds