/frameworks/compile/slang/ |
D | slang_rs_special_func.cpp | 28 const clang::FunctionDecl *FD) { in isGraphicsRootRSFunc() argument 29 if (FD->hasAttr<clang::RenderScriptKernelAttr>()) { in isGraphicsRootRSFunc() 33 if (!FD->getName().equals("root")) { in isGraphicsRootRSFunc() 37 if (FD->getNumParams() == 0) { in isGraphicsRootRSFunc() 43 if ((targetAPI < SLANG_ICS_TARGET_API) && (FD->getNumParams() == 1)) { in isGraphicsRootRSFunc() 44 const clang::QualType &IntType = FD->getASTContext().IntTy; in isGraphicsRootRSFunc() 45 if (FD->getReturnType().getCanonicalType() == IntType) { in isGraphicsRootRSFunc() 56 clang::FunctionDecl const *FD) { in validateSpecialFuncDecl() argument 57 slangAssert(Context && FD); in validateSpecialFuncDecl() 59 const clang::ASTContext &C = FD->getASTContext(); in validateSpecialFuncDecl() [all …]
|
D | slang_rs_export_foreach.cpp | 41 bool isRootRSFunc(const clang::FunctionDecl *FD) { in isRootRSFunc() argument 42 if (!FD) { in isRootRSFunc() 45 return FD->getName().equals("root"); in isRootRSFunc() 55 RSContext *Context, const clang::FunctionDecl *FD) { in validateAndConstructParams() argument 56 slangAssert(Context && FD); in validateAndConstructParams() 59 numParams = FD->getNumParams(); in validateAndConstructParams() 63 if (!isRootRSFunc(FD)) { in validateAndConstructParams() 64 Context->ReportError(FD->getLocation(), in validateAndConstructParams() 67 << FD->getName() << SLANG_MINIMUM_TARGET_API in validateAndConstructParams() 73 mResultType = FD->getReturnType().getCanonicalType(); in validateAndConstructParams() [all …]
|
D | slang_rs_special_func.h | 30 inline bool isInitRSFunc(const clang::FunctionDecl *FD) { in isInitRSFunc() argument 31 if (!FD) { in isInitRSFunc() 34 const llvm::StringRef Name = FD->getName(); in isInitRSFunc() 39 inline bool isDtorRSFunc(const clang::FunctionDecl *FD) { in isDtorRSFunc() argument 40 if (!FD) { in isDtorRSFunc() 43 const llvm::StringRef Name = FD->getName(); in isDtorRSFunc() 49 const clang::FunctionDecl *FD); 52 const clang::FunctionDecl *FD) { in isSpecialRSFunc() argument 53 return isGraphicsRootRSFunc(targetAPI, FD) || isInitRSFunc(FD) || in isSpecialRSFunc() 54 isDtorRSFunc(FD); in isSpecialRSFunc() [all …]
|
D | slang_rs_context.cpp | 96 int RSContext::getForEachSlotNumber(const clang::FunctionDecl* FD) { in getForEachSlotNumber() argument 97 const clang::StringRef& funcName = FD->getName(); in getForEachSlotNumber() 109 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { in processExportFunc() argument 110 slangAssert(!FD->getName().empty() && "Function name should not be empty"); in processExportFunc() 112 if (!FD->isThisDeclarationADefinition()) { in processExportFunc() 116 slangAssert(FD->getStorageClass() == clang::SC_None); in processExportFunc() 119 if (RSSpecialFunc::isSpecialRSFunc(mTargetAPI, FD)) { in processExportFunc() 121 return RSSpecialFunc::validateSpecialFuncDecl(mTargetAPI, this, FD); in processExportFunc() 125 if (RSExportForEach::isRSForEachFunc(mTargetAPI, FD)) { in processExportFunc() 126 RSExportForEach *EFE = RSExportForEach::Create(this, FD); in processExportFunc() [all …]
|
D | slang_rs_export_func.cpp | 36 const clang::FunctionDecl *FD) { in ValidateFuncDecl() argument 37 slangAssert(Context && FD); in ValidateFuncDecl() 38 const clang::ASTContext &C = FD->getASTContext(); in ValidateFuncDecl() 39 if (FD->getReturnType().getCanonicalType() != C.VoidTy) { in ValidateFuncDecl() 41 FD->getLocation(), in ValidateFuncDecl() 51 const clang::FunctionDecl *FD) { in Create() argument 52 llvm::StringRef Name = FD->getName(); in Create() 57 if (!ValidateFuncDecl(Context, FD)) { in Create() 61 F = new RSExportFunc(Context, Name, FD); in Create() 64 if (FD->getNumParams() <= 0) { in Create() [all …]
|
D | slang_rs_check_ast.cpp | 149 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) { in ValidateFunctionDecl() argument 150 if (!FD) { in ValidateFunctionDecl() 155 if (FD->hasAttr<clang::RenderScriptKernelAttr>() && in ValidateFunctionDecl() 156 FD->getStorageClass() == clang::SC_Static) { in ValidateFunctionDecl() 157 Context->ReportError(FD->getLocation(), in ValidateFunctionDecl() 160 << FD->getName(); in ValidateFunctionDecl() 164 clang::QualType resultType = FD->getReturnType().getCanonicalType(); in ValidateFunctionDecl() 165 bool isExtern = (FD->getFormalLinkage() == clang::ExternalLinkage); in ValidateFunctionDecl() 168 if (!RSExportType::ValidateType(Context, C, resultType, FD, in ValidateFunctionDecl() 169 FD->getLocStart(), mTargetAPI, in ValidateFunctionDecl() [all …]
|
D | slang_rs_export_foreach.h | 86 const clang::FunctionDecl *FD); 89 const clang::FunctionDecl *FD); 92 const clang::FunctionDecl *FD); 95 const clang::FunctionDecl *FD, 99 const clang::FunctionDecl *FD); 102 const clang::FunctionDecl *FD); 182 const clang::FunctionDecl *FD); 185 const clang::FunctionDecl *FD);
|
D | slang_rs_foreach_lowering.cpp | 67 const clang::FunctionDecl* FD = in matchFunctionDesignator() local 70 if (FD == nullptr) { in matchFunctionDesignator() 74 return FD; in matchFunctionDesignator() 98 const clang::FunctionDecl* FD = clang::dyn_cast<clang::FunctionDecl>(D); in matchKernelLaunchCall() local 100 if (FD == nullptr) { in matchKernelLaunchCall() 104 const clang::StringRef& funcName = FD->getName(); in matchKernelLaunchCall() 172 clang::FunctionDecl* FD = clang::FunctionDecl::Create( in CreateForEachInternalFunctionDecl() local 178 ParamDecls[I] = clang::ParmVarDecl::Create(mASTCtxt, FD, Loc, in CreateForEachInternalFunctionDecl() 184 FD->setParams(llvm::makeArrayRef(ParamDecls, kNumParams)); in CreateForEachInternalFunctionDecl() 188 FD->setImplicit(); in CreateForEachInternalFunctionDecl() [all …]
|
D | slang_backend.cpp | 408 clang::FieldDecl* FD = clang::dyn_cast<clang::FieldDecl>(D); in PadStruct() local 409 slangAssert(FD && "found a non field declaration within a struct"); in PadStruct() 410 FieldsInfo.push_back(std::make_pair(size_t(0), FD)); in PadStruct() 480 const clang::FieldDecl* FD = info.second; in PadStruct() local 482 if ((foundBitField = FD->isBitField())) in PadStruct() 495 fieldPrePaddingOffset = fieldOffset + (ASTC.getTypeSize(FD->getType()) >> 3); in PadStruct() 538 clang::FieldDecl* const FD = in PadStruct() local 546 FD->setImplicit(true); in PadStruct() 547 RD->addDecl(FD); in PadStruct() 601 void Backend::AnnotateFunction(clang::FunctionDecl *FD) { in AnnotateFunction() argument [all …]
|
D | slang_rs_export_func.h | 50 const clang::FunctionDecl *FD) in RSExportFunc() argument 51 : RSExportable(Context, RSExportable::EX_FUNC, FD->getLocation()), in RSExportFunc() 57 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD); in RSExportFunc() 61 Context->getMangleContext().mangleName(FD, BufStm); in RSExportFunc() 68 const clang::FunctionDecl *FD);
|
D | slang_rs_object_ref_count.cpp | 54 clang::FunctionDecl *FD = static_cast<clang::FunctionDecl*>(*I); in GetRSRefCountingFunctions() local 59 if (FD->getName() == "rsSetObject") { in GetRSRefCountingFunctions() 60 slangAssert((FD->getNumParams() == 2) && in GetRSRefCountingFunctions() 63 } else if (FD->getName() == "rsClearObject") { in GetRSRefCountingFunctions() 64 slangAssert((FD->getNumParams() == 1) && in GetRSRefCountingFunctions() 71 const clang::ParmVarDecl *PVD = FD->getParamDecl(0); in GetRSRefCountingFunctions() 84 RSObjectFD[DT] = FD; in GetRSRefCountingFunctions() 524 const clang::FieldDecl *FD = *FI; in CountRSObjectTypes() local 525 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CountRSObjectTypes() 543 const clang::FieldDecl *FD = *FI; in CountRSObjectTypes() local [all …]
|
D | slang_rs_special_kernel_param.cpp | 99 const clang::FunctionDecl *FD, in processSpecialKernelParameters() argument 111 size_t NumParams = FD->getNumParams(); in processSpecialKernelParameters() 115 const clang::ParmVarDecl *PVD = FD->getParamDecl(i); in processSpecialKernelParameters()
|
D | slang_rs_export_type.cpp | 323 const clang::FieldDecl *FD = *FI; in TypeExportableHelper() local 324 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in TypeExportableHelper() 335 if (FD->isBitField()) { in TypeExportableHelper() 337 FD->getLocation(), in TypeExportableHelper() 339 << RD->getName() << FD->getName(); in TypeExportableHelper() 558 const clang::FieldDecl *FD = *FI; in ValidateTypeHelper() local 559 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in ValidateTypeHelper() 1058 const clang::FieldDecl *FD = *FI; in IsStructureTypeWithRSObject() local 1059 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in IsStructureTypeWithRSObject() 1377 const clang::FieldDecl *FD = *FIT; in Create() local [all …]
|
D | slang_rs_special_kernel_param.h | 36 const clang::FunctionDecl *FD,
|
D | slang_backend.h | 111 void AnnotateFunction(clang::FunctionDecl *FD); 124 void LowerRSForEachCall(clang::FunctionDecl* FD, bool isKernel);
|
D | slang_rs_context.h | 108 bool processExportFunc(const clang::FunctionDecl *FD); 205 bool addForEach(const clang::FunctionDecl* FD); 254 int getForEachSlotNumber(const clang::FunctionDecl* FD); 275 void markUsedByReducePragma(clang::FunctionDecl *FD, CheckName Check);
|
D | slang_rs_foreach_lowering.h | 42 void handleForEachCalls(clang::FunctionDecl* FD, unsigned int targetAPI);
|
D | slang_rs_check_ast.h | 70 void ValidateFunctionDecl(clang::FunctionDecl *FD);
|
D | slang_rs_object_ref_count.h | 171 void HandleParamsAndLocals(clang::FunctionDecl *FD);
|
/frameworks/av/media/codec2/tests/ |
D | C2SampleComponent_test.cpp | 34 using FD=C2FieldDescriptor; in PrintTo() typedef 36 case FD::INT32: *os << "i32"; break; in PrintTo() 37 case FD::INT64: *os << "i64"; break; in PrintTo() 38 case FD::UINT32: *os << "u32"; break; in PrintTo() 39 case FD::UINT64: *os << "u64"; break; in PrintTo() 40 case FD::FLOAT: *os << "float"; break; in PrintTo() 41 case FD::STRING: *os << "char"; break; in PrintTo() 42 case FD::BLOB: *os << "u8"; break; in PrintTo() 44 if (fd.type() & FD::STRUCT_FLAG) { in PrintTo() 45 *os << "struct-" << (fd.type() & ~FD::STRUCT_FLAG); in PrintTo()
|
D | C2Param_test.cpp | 32 using FD=C2FieldDescriptor; in PrintTo() typedef 34 case FD::INT32: *os << "i32"; break; in PrintTo() 35 case FD::INT64: *os << "i64"; break; in PrintTo() 36 case FD::UINT32: *os << "u32"; break; in PrintTo() 37 case FD::UINT64: *os << "u64"; break; in PrintTo() 38 case FD::FLOAT: *os << "float"; break; in PrintTo() 39 case FD::STRING: *os << "char"; break; in PrintTo() 40 case FD::BLOB: *os << "u8"; break; in PrintTo() 42 if (fd.type() & FD::STRUCT_FLAG) { in PrintTo() 43 *os << "struct-" << (fd.type() & ~FD::STRUCT_FLAG); in PrintTo() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuScript.cpp | 175 int FD = open(fileName, O_RDONLY | O_CLOEXEC); in addFileToChecksum() local 176 if (FD == -1) { in addFileToChecksum() 183 ssize_t nread = read(FD, buf, sizeof(buf)); in addFileToChecksum() 194 if (close(FD) != 0) { in addFileToChecksum()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/ |
D | LoaderDicom.java | 90 static final short FD = vr("FD"); field in LoaderDicom
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_native_fence_sync.txt | 235 FD attribute. We could do this with either a new sync object type or with a
|
/frameworks/base/services/tests/servicestests/res/raw/ |
D | backup_telephony_with_password | 26 …5ң�z�s�-0�s �Џ�ԃX��s��E���XO~8�qʝ���K4����7՟�ch�Y��{���Lf9�9Z���(�_r�`>�`]��i[#��dH�ԥ:i�FD� 56 %]���]��c�YފbcFD��.9�C�0�e�!4���r�q�$0�]~�]�W4]詪�d�Y\�[,Cϲ�����4�c/���X��qʐ���� �SD�?fRg"…
|