Home
last modified time | relevance | path

Searched refs:FD (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/compile/slang/
Dslang_rs_special_func.cpp28 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 …]
Dslang_rs_export_foreach.cpp41 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 …]
Dslang_rs_special_func.h30 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 …]
Dslang_rs_context.cpp96 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 …]
Dslang_rs_export_func.cpp36 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 …]
Dslang_rs_check_ast.cpp149 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 …]
Dslang_rs_export_foreach.h86 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);
Dslang_rs_foreach_lowering.cpp67 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 …]
Dslang_backend.cpp408 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 …]
Dslang_rs_export_func.h50 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);
Dslang_rs_object_ref_count.cpp54 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 …]
Dslang_rs_export_type.cpp323 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 …]
Dslang_rs_special_kernel_param.cpp99 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()
Dslang_backend.h111 void AnnotateFunction(clang::FunctionDecl *FD);
124 void LowerRSForEachCall(clang::FunctionDecl* FD, bool isKernel);
Dslang_rs_context.h108 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);
Dslang_rs_special_kernel_param.h36 const clang::FunctionDecl *FD,
Dslang_rs_foreach_lowering.h42 void handleForEachCalls(clang::FunctionDecl* FD, unsigned int targetAPI);
Dslang_rs_check_ast.h70 void ValidateFunctionDecl(clang::FunctionDecl *FD);
Dslang_rs_object_ref_count.h171 void HandleParamsAndLocals(clang::FunctionDecl *FD);
/frameworks/av/media/libstagefright/codec2/tests/
DC2Param_test.cpp32 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/
DrsCpuScript.cpp174 int FD = open(fileName, O_RDONLY); in addFileToChecksum() local
175 if (FD == -1) { in addFileToChecksum()
182 ssize_t nread = read(FD, buf, sizeof(buf)); in addFileToChecksum()
193 if (close(FD) != 0) { in addFileToChecksum()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java90 static final short FD = vr("FD"); field in LoaderDicom
/frameworks/native/opengl/specs/
DEGL_ANDROID_native_fence_sync.txt235 FD attribute. We could do this with either a new sync object type or with a
/frameworks/base/services/tests/servicestests/res/raw/
Dbackup_telephony_with_password26 …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ފbc�FD��.9�C�0�e�!4���r�q�$0�]~�]�W4]詪�d�Y\�[,Cϲ�����4�c/���X��qʐ���� �SD�?fRg"…
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/
DarmCOMM_s.h768 LDM$cc.FD sp!, {$_RRegList, pc}

12