/frameworks/compile/slang/ |
D | slang_rs_export_type.h | 196 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 …]
|
D | slang_rs_reflection_cpp.cpp | 61 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 …]
|
D | slang_rs_reflection.cpp | 93 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 …]
|
D | slang_rs_export_type.cpp | 324 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in TypeExportableHelper() 563 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in ValidateTypeHelper() 686 bool RSExportType::NormalizeType(const clang::Type *&T, in NormalizeType() 695 TypeName = RSExportType::GetTypeName(T); in NormalizeType() 709 bool RSExportType::ValidateType(slang::RSContext *Context, clang::ASTContext &C, in ValidateType() 731 bool RSExportType::ValidateVarDecl(slang::RSContext *Context, in ValidateVarDecl() 740 *RSExportType::GetTypeOfDecl(const clang::DeclaratorDecl *DD) { in GetTypeOfDecl() 752 llvm::StringRef RSExportType::GetTypeName(const clang::Type* T) { in GetTypeName() 835 RSExportType *RSExportType::Create(RSContext *Context, in Create() 849 RSExportType *ET = nullptr; in Create() [all …]
|
D | slang_rs_export_var.cpp | 31 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()
|
D | slang_rs_reflection.h | 206 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 …]
|
D | 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);
|
D | slang_rs_export_element.cpp | 71 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()
|
D | slang_rs_export_var.h | 32 class RSExportType; variable 38 const RSExportType *mET; 50 const RSExportType *ET); 54 inline const RSExportType *getType() const { return mET; } in getType()
|
D | slang_rs_export_element.h | 37 class RSExportType; variable 57 static RSExportType *Create(RSContext *Context, 66 static RSExportType *CreateFromDecl(RSContext *Context,
|
D | slang_rs_context.h | 59 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);
|
D | slang_rs_export_foreach.h | 42 typedef llvm::SmallVectorImpl<const RSExportType*> InTypeVec; 55 llvm::SmallVector<const RSExportType*, 16> mInTypes; 56 RSExportType *mOutType; 143 inline const RSExportType *getOutType() const { in getOutType()
|
D | 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; } in getResultType()
|
D | slang_rs_export_foreach.cpp | 372 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()
|
D | slang_rs_check_ast.cpp | 168 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()
|
D | slang_rs_export_func.cpp | 107 RSExportType *ET = in Create() 108 RSExportType::Create(Context, T.getTypePtr(), NotLegacyKernelArgument); in Create() 117 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) && in Create()
|
D | slang_rs_context.cpp | 83 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()
|
D | slang_rs_export_reduce.cpp | 404 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()
|
D | slang_rs_reflection_state.h | 37 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);
|
D | slang_backend.cpp | 765 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()
|
D | slang_rs_reflection_state.cpp | 104 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()
|
D | slang.cpp | 481 RSExportType *ET = static_cast<RSExportType *>(RSE); in checkODR() 482 if (ET->getClass() != RSExportType::ExportClassRecord) in checkODR()
|
D | slang_rs_object_ref_count.cpp | 525 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()
|
/frameworks/compile/slang/tests/P_reduce_general_duplicate_array/ |
D | reduce_general_duplicate_array.rscript | 6 // slang doesn't common them (i.e., each gets its own RSExportType);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | reduce.rscript | 275 // slang doesn't common them (i.e., each gets its own RSExportType);
|