Home
last modified time | relevance | path

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

/frameworks/compile/slang/
Dslang_rs_export_type.h196 class RSExportType : public RSExportable {
218 RSExportType(RSContext *Context,
232 static RSExportType *Create(RSContext *Context,
254 virtual ~RSExportType();
280 static RSExportType *Create(RSContext *Context, const clang::Type *T,
284 static RSExportType *CreateFromDecl(RSContext *Context,
363 virtual bool matchODR(const RSExportType *E, bool LookInto) const;
367 class RSExportPrimitiveType : public RSExportType {
368 friend class RSExportType; variable
394 : RSExportType(Context, Class, Name), in RSExportPrimitiveType()
[all …]
Dslang_rs_reflection_cpp.cpp61 static std::string GetTypeName(const RSExportType *ET, bool PreIdentifier = true) { in GetTypeName()
62 if((!PreIdentifier) && (ET->getClass() != RSExportType::ExportClassConstantArray)) { in GetTypeName()
67 case RSExportType::ExportClassPrimitive: { in GetTypeName()
77 case RSExportType::ExportClassPointer: { in GetTypeName()
78 const RSExportType *PointeeType = in GetTypeName()
81 if (PointeeType->getClass() != RSExportType::ExportClassRecord) in GetTypeName()
86 case RSExportType::ExportClassVector: { in GetTypeName()
93 case RSExportType::ExportClassMatrix: { in GetTypeName()
96 case RSExportType::ExportClassConstantArray: { in GetTypeName()
109 case RSExportType::ExportClassRecord: { in GetTypeName()
[all …]
Dslang_rs_reflection.cpp93 void genAddElement(const RSExportType *ET, const std::string &VarName,
193 std::string GetReduceResultTypeName(const RSExportType *ET) { in GetReduceResultTypeName()
195 case RSExportType::ExportClassConstantArray: { in GetReduceResultTypeName()
203 case RSExportType::ExportClassRecord: in GetReduceResultTypeName()
221 static const char *GetTypeNullValue(const RSExportType *ET) { in GetTypeNullValue()
223 case RSExportType::ExportClassPrimitive: { in GetTypeNullValue()
234 case RSExportType::ExportClassPointer: in GetTypeNullValue()
235 case RSExportType::ExportClassVector: in GetTypeNullValue()
236 case RSExportType::ExportClassMatrix: in GetTypeNullValue()
237 case RSExportType::ExportClassConstantArray: in GetTypeNullValue()
[all …]
Dslang_rs_export_type.cpp324 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in TypeExportableHelper()
559 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in ValidateTypeHelper()
682 bool RSExportType::NormalizeType(const clang::Type *&T, in NormalizeType()
691 TypeName = RSExportType::GetTypeName(T); in NormalizeType()
705 bool RSExportType::ValidateType(slang::RSContext *Context, clang::ASTContext &C, in ValidateType()
727 bool RSExportType::ValidateVarDecl(slang::RSContext *Context, in ValidateVarDecl()
736 *RSExportType::GetTypeOfDecl(const clang::DeclaratorDecl *DD) { in GetTypeOfDecl()
748 llvm::StringRef RSExportType::GetTypeName(const clang::Type* T) { in GetTypeName()
829 RSExportType *RSExportType::Create(RSContext *Context, in Create()
843 RSExportType *ET = nullptr; in Create()
[all …]
Dslang_rs_export_var.cpp31 const RSExportType *ET) in RSExportVar()
43 case RSExportType::ExportClassPrimitive: in RSExportVar()
44 case RSExportType::ExportClassVector: { in RSExportVar()
48 case RSExportType::ExportClassPointer: { in RSExportVar()
60 case RSExportType::ExportClassConstantArray: { in RSExportVar()
83 case RSExportType::ExportClassMatrix: in RSExportVar()
84 case RSExportType::ExportClassRecord: { in RSExportVar()
Dslang_rs_reflection.h206 static std::string GetTypeName(const RSExportType *ET, unsigned Style = TypeNameDefault);
209 static bool exportableReduce(const RSExportType *ResultType);
218 void genInitExportVariable(const RSExportType *ET, const std::string &VarName,
243 void genExportReduceResultType(const RSExportType *ResultType);
245 void genTypeCheck(const RSExportType *ET, const char *VarName);
247 void genTypeInstanceFromPointer(const RSExportType *ET);
249 void genTypeInstance(const RSExportType *ET);
251 void genFieldPackerInstance(const RSExportType *ET);
276 void genAddElementToElementBuilder(const RSExportType *ERT,
282 bool genCreateFieldPacker(const RSExportType *T, const char *FieldPackerName,
[all …]
Dslang_rs_reflection_cpp.h118 void genInitExportVariable(const RSExportType *ET, const std::string &VarName,
139 bool genCreateFieldPacker(const RSExportType *T, const char *FieldPackerName);
142 void genPackVarOfType(const RSExportType *ET, const char *VarName,
146 void genTypeCheck(const RSExportType *ET, const char *VarName);
149 void genTypeInstanceFromPointer(const RSExportType *ET);
150 void genTypeInstance(const RSExportType *ET);
Dslang_rs_export_element.cpp71 RSExportType *RSExportElement::Create(RSContext *Context, in Create()
77 RSExportType *ET = nullptr; in Create()
84 if (!RSExportType::NormalizeType(T, TypeName, Context, nullptr, in Create()
131 RSExportType *RSExportElement::CreateFromDecl(RSContext *Context, in CreateFromDecl()
133 const clang::Type* T = RSExportType::GetTypeOfDecl(DD); in CreateFromDecl()
141 return RSExportType::Create(Context, T, NotLegacyKernelArgument); in CreateFromDecl()
161 return RSExportType::Create(Context, T, NotLegacyKernelArgument); 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_context.h59 class RSExportType; variable
74 typedef std::unordered_set<RSExportType*> ExportReduceResultTypeSet;
76 typedef llvm::StringMap<RSExportType*> ExportTypeMap;
278 void insertExportReduceResultType(RSExportType *Type) { mExportReduceResultType.insert(Type); } in insertExportReduceResultType()
281 std::vector<RSExportType *> getReduceResultTypes(FilterIn Filt, Compare Comp) const { in getReduceResultTypes()
282 std::vector<RSExportType *> Return; in getReduceResultTypes()
286 [Comp](const RSExportType *a, const RSExportType *b) { in getReduceResultTypes()
315 bool insertExportType(const llvm::StringRef &TypeName, RSExportType *Type);
Dslang_rs_export_foreach.h42 typedef llvm::SmallVectorImpl<const RSExportType*> InTypeVec;
55 llvm::SmallVector<const RSExportType*, 16> mInTypes;
56 RSExportType *mOutType;
143 inline const RSExportType *getOutType() const { in getOutType()
Dslang_rs_export_reduce.h37 typedef llvm::SmallVectorImpl<const RSExportType*> InTypeVec;
75 llvm::SmallVector<const RSExportType*, kAccumulatorInsSmallSize> mAccumulatorInTypes;
78 RSExportType *mResultType;
158 const RSExportType *getResultType() const { return mResultType; } in getResultType()
Dslang_rs_export_foreach.cpp372 RSExportType *ET = in Create()
373 RSExportType::Create(Context, T.getTypePtr(), LegacyKernelArgument); in Create()
376 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) && in Create()
391 RSExportType *InExportType = RSExportType::Create(Context, T, EK); in Create()
406 FE->mOutType = RSExportType::Create(Context, ReturnType, in Create()
412 FE->mOutType = RSExportType::Create(Context, OutType, LegacyKernelArgument); in Create()
Dslang_rs_check_ast.cpp168 if (!RSExportType::ValidateType(Context, C, resultType, FD, in ValidateFunctionDecl()
178 if (!RSExportType::ValidateType(Context, C, QT, PVD, PVD->getLocStart(), in ValidateFunctionDecl()
205 if (!RSExportType::NormalizeType(T, TypeName, Context, VD, in ValidateVarDecl()
222 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAPI, mIsFilterscript)) { in ValidateVarDecl()
278 !RSExportType::ValidateType(Context, C, E->getType(), nullptr, E->getExprLoc(), in VisitExpr()
Dslang_rs_export_func.cpp107 RSExportType *ET = in Create()
108 RSExportType::Create(Context, T.getTypePtr(), NotLegacyKernelArgument); in Create()
117 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) && in Create()
Dslang_rs_context.cpp83 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); in processExportVar()
187 RSExportType *ET = nullptr; in processExportType()
212 ET = RSExportType::Create(this, T, NotLegacyKernelArgument); in processExportType()
389 RSExportType *ET) { in insertExportType()
Dslang_rs_export_reduce.cpp404 RSExportType *ParamEType = nullptr; in analyzeAccumulator()
417 } else if (RSExportType::ValidateType(&S.RSC, S.ASTC, ParamQType, Param, Param->getLocStart(), in analyzeAccumulator()
422 ParamEType = RSExportType::Create(&S.RSC, ParamType, NotLegacyKernelArgument); in analyzeAccumulator()
713 } else if (RSExportType::ValidateType(&S.RSC, S.ASTC, PointeeQType, in analyzeResultType()
719 if ((mResultType = RSExportType::Create(&S.RSC, PointeeQType.getTypePtr(), in analyzeResultType()
721 const RSExportType *CheckType = mResultType; in analyzeResultType()
723 if (mResultType->getClass() == RSExportType::ExportClassConstantArray) { in analyzeResultType()
728 case RSExportType::ExportClassMatrix: in analyzeResultType()
Dslang_rs_reflection_state.h37 class RSExportType; variable
252 void addForEachIn(const RSExportForEach *EF, const RSExportType *Type);
254 void addForEachParam(const RSExportForEach *EF, const RSExportType *Type);
474 static std::string getUniqueTypeName(const RSExportType *T);
Dslang_backend.cpp765 const RSExportType *ET = EV->getType(); in dumpExportVarInfo()
774 case RSExportType::ExportClassPrimitive: { in dumpExportVarInfo()
785 case RSExportType::ExportClassPointer: { in dumpExportVarInfo()
792 case RSExportType::ExportClassMatrix: { in dumpExportVarInfo()
807 case RSExportType::ExportClassVector: in dumpExportVarInfo()
808 case RSExportType::ExportClassConstantArray: in dumpExportVarInfo()
809 case RSExportType::ExportClassRecord: { in dumpExportVarInfo()
1149 const RSExportType *ET = I->getValue(); in dumpExportTypeInfo()
1156 if (ET->getClass() == RSExportType::ExportClassRecord) { in dumpExportTypeInfo()
Dslang_rs_reflection_state.cpp104 std::string ReflectionState::getUniqueTypeName(const RSExportType *T) { in getUniqueTypeName()
265 const RSExportType *OET = EF->getOutType(); in beginForEach()
267 slangAssert(OET->getClass() == RSExportType::ExportClassPointer); in beginForEach()
383 void ReflectionState::addForEachIn(const RSExportForEach *EF, const RSExportType *Type) { in addForEachIn()
392 slangAssert(Type->getClass() == RSExportType::ExportClassPointer); in addForEachIn()
430 void ReflectionState::addForEachParam(const RSExportForEach *EF, const RSExportType *Type) { in addForEachParam()
728 const RSExportType *T = FieldExport->getType(); in declareRecord()
Dslang_rs_object_ref_count.cpp525 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CountRSObjectTypes()
544 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CountRSObjectTypes()
588 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in ClearStructRSObject()
923 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CreateStructRSSetObject()
1092 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in AppendRSObjectInit()
1159 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in AppendRSObjectInit()
1265 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in ClearRSObject()
1300 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in InitializeRSObject()
Dslang.cpp481 RSExportType *ET = static_cast<RSExportType *>(RSE); in checkODR()
482 if (ET->getClass() != RSExportType::ExportClassRecord) in checkODR()