HomeSort by relevance Sort by last modified time
    Searched refs:RSExportType (Results 1 - 21 of 21) sorted by null

  /frameworks/compile/slang/
slang_rs_export_element.h 37 class RSExportType;
57 static RSExportType *Create(RSContext *Context,
66 static RSExportType *CreateFromDecl(RSContext *Context,
slang_rs_export_var.h 32 class RSExportType;
38 const RSExportType *mET;
50 const RSExportType *ET);
54 inline const RSExportType *getType() const { return mET; }
slang_rs_export_var.cpp 31 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: {
slang_rs_export_type.h 195 class RSExportType : public RSExportable {
217 RSExportType(RSContext *Context,
224 // @T was normalized by calling RSExportType::NormalizeType().
225 // @TypeName was retrieved from RSExportType::GetTypeName() before calling
230 static RSExportType *Create(RSContext *Context,
237 // This function convert the RSExportType to LLVM type. Actually, it should be
252 virtual ~RSExportType();
278 static RSExportType *Create(RSContext *Context, const clang::Type *T,
282 static RSExportType *CreateFromDecl(RSContext *Context,
310 }; // RSExportType
    [all...]
slang_rs_reflection_cpp.h 118 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);
slang_rs_reflection_cpp.cpp 61 static std::string GetTypeName(const RSExportType *ET, bool PreIdentifier = true) {
62 if((!PreIdentifier) && (ET->getClass() != RSExportType::ExportClassConstantArray)) {
67 case RSExportType::ExportClassPrimitive: {
77 case RSExportType::ExportClassPointer: {
78 const RSExportType *PointeeType =
81 if (PointeeType->getClass() != RSExportType::ExportClassRecord)
86 case RSExportType::ExportClassVector: {
93 case RSExportType::ExportClassMatrix: {
96 case RSExportType::ExportClassConstantArray: {
109 case RSExportType::ExportClassRecord:
    [all...]
slang_rs_reflection.cpp 88 void genAddElement(const RSExportType *ET, const std::string &VarName,
187 std::string GetTypeName(const RSExportType *ET, unsigned Style = TypeNameDefault) {
189 case RSExportType::ExportClassPrimitive: {
194 case RSExportType::ExportClassPointer: {
197 const RSExportType *PointeeType =
200 if (PointeeType->getClass() != RSExportType::ExportClassRecord)
205 case RSExportType::ExportClassVector: {
213 case RSExportType::ExportClassMatrix: {
218 case RSExportType::ExportClassConstantArray: {
229 case RSExportType::ExportClassRecord:
    [all...]
slang_rs_reflection.h 175 static bool exportableReduce(const RSExportType *ResultType);
184 void genInitExportVariable(const RSExportType *ET, const std::string &VarName,
208 void genExportReduceResultType(const RSExportType *ResultType);
210 void genTypeCheck(const RSExportType *ET, const char *VarName);
212 void genTypeInstanceFromPointer(const RSExportType *ET);
214 void genTypeInstance(const RSExportType *ET);
216 void genFieldPackerInstance(const RSExportType *ET);
233 void genAddElementToElementBuilder(const RSExportType *ERT,
239 bool genCreateFieldPacker(const RSExportType *T, const char *FieldPackerName);
240 void genPackVarOfType(const RSExportType *T, const char *VarName
    [all...]
slang_rs_export_element.cpp 71 RSExportType *RSExportElement::Create(RSContext *Context,
74 // Create RSExportType corresponded to the @T first and then verify
77 RSExportType *ET = nullptr;
84 if (!RSExportType::NormalizeType(T, TypeName, Context, nullptr,
131 RSExportType *RSExportElement::CreateFromDecl(RSContext *Context,
133 const clang::Type* T = RSExportType::GetTypeOfDecl(DD);
141 return RSExportType::Create(Context, T, NotLegacyKernelArgument);
161 return RSExportType::Create(Context, T, NotLegacyKernelArgument);
slang_rs_export_foreach.h 43 typedef llvm::SmallVectorImpl<const RSExportType*> InTypeVec;
51 llvm::SmallVector<const RSExportType*, 16> mInTypes;
52 RSExportType *mOutType;
133 inline const RSExportType *getOutType() const {
slang_rs_export_type.cpp 325 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
422 // Return the type that can be used to create RSExportType, will always return
555 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
677 /****************************** RSExportType ******************************/
678 bool RSExportType::NormalizeType(const clang::Type *&T,
687 TypeName = RSExportType::GetTypeName(T);
701 bool RSExportType::ValidateType(slang::RSContext *Context, clang::ASTContext &C,
723 bool RSExportType::ValidateVarDecl(slang::RSContext *Context,
732 *RSExportType::GetTypeOfDecl(const clang::DeclaratorDecl *DD) {
744 llvm::StringRef RSExportType::GetTypeName(const clang::Type* T)
    [all...]
slang_rs_context.h 59 class RSExportType;
74 typedef std::unordered_set<RSExportType*> ExportReduceResultTypeSet;
76 typedef llvm::StringMap<RSExportType*> ExportTypeMap;
259 void insertExportReduceResultType(RSExportType *Type) { mExportReduceResultType.insert(Type); }
262 std::vector<RSExportType *> getReduceResultTypes(FilterIn Filt, Compare Comp) const {
263 std::vector<RSExportType *> Return;
267 [Comp](const RSExportType *a, const RSExportType *b) {
296 bool insertExportType(const llvm::StringRef &TypeName, RSExportType *Type);
slang_rs_export_reduce.h 37 typedef llvm::SmallVectorImpl<const RSExportType*> InTypeVec;
75 llvm::SmallVector<const RSExportType*, kAccumulatorInsSmallSize> mAccumulatorInTypes;
78 RSExportType *mResultType;
158 const RSExportType *getResultType() const { return mResultType; }
slang_rs_export_func.cpp 107 RSExportType *ET =
108 RSExportType::Create(Context, T.getTypePtr(), NotLegacyKernelArgument);
117 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) &&
slang_rs_export_foreach.cpp 366 RSExportType *ET =
367 RSExportType::Create(Context, T.getTypePtr(), LegacyKernelArgument);
371 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) &&
388 RSExportType *InExportType = RSExportType::Create(Context, T, EK);
402 FE->mOutType = RSExportType::Create(Context, ReturnType,
408 FE->mOutType = RSExportType::Create(Context, OutType, LegacyKernelArgument);
slang_rs_check_ast.cpp 183 if (!RSExportType::ValidateType(Context, C, resultType, FD,
193 if (!RSExportType::ValidateType(Context, C, QT, PVD, PVD->getLocStart(),
220 if (!RSExportType::NormalizeType(T, TypeName, Context, VD,
237 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAPI, mIsFilterscript)) {
293 !RSExportType::ValidateType(Context, C, E->getType(), nullptr, E->getExprLoc(),
slang_rs_context.cpp 82 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
186 RSExportType *ET = nullptr;
211 ET = RSExportType::Create(this, T, NotLegacyKernelArgument);
388 RSExportType *ET) {
slang_backend.cpp 526 const RSExportType *ET = EV->getType();
535 case RSExportType::ExportClassPrimitive: {
546 case RSExportType::ExportClassPointer: {
553 case RSExportType::ExportClassMatrix: {
568 case RSExportType::ExportClassVector:
569 case RSExportType::ExportClassConstantArray:
570 case RSExportType::ExportClassRecord: {
836 const RSExportType *ET = I->getValue();
843 if (ET->getClass() == RSExportType::ExportClassRecord) {
882 } // ET->getClass() == RSExportType::ExportClassRecor
    [all...]
slang_rs_export_reduce.cpp 404 RSExportType *ParamEType = nullptr;
417 } else if (RSExportType::ValidateType(&S.RSC, S.ASTC, ParamQType, Param, Param->getLocStart(),
422 ParamEType = RSExportType::Create(&S.RSC, ParamType, NotLegacyKernelArgument);
712 } else if (RSExportType::ValidateType(&S.RSC, S.ASTC, PointeeQType,
718 if ((mResultType = RSExportType::Create(&S.RSC, PointeeQType.getTypePtr(),
720 const RSExportType *CheckType = mResultType;
722 if (mResultType->getClass() == RSExportType::ExportClassConstantArray) {
727 case RSExportType::ExportClassMatrix:
    [all...]
slang.cpp 486 RSExportType *ET = static_cast<RSExportType *>(RSE);
487 if (ET->getClass() != RSExportType::ExportClassRecord)
slang_rs_object_ref_count.cpp 526 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
545 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
589 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
    [all...]

Completed in 58 milliseconds