Home
last modified time | relevance | path

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

/frameworks/compile/slang/
Dslang_rs_special_func.cpp28 const clang::FunctionDecl *FD) { in isGraphicsRootRSFunc() argument
29 if (FD->hasAttr<clang::KernelAttr>()) { 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.cpp95 int RSContext::getForEachSlotNumber(const clang::FunctionDecl* FD) { in getForEachSlotNumber() argument
96 const clang::StringRef& funcName = FD->getName(); in getForEachSlotNumber()
108 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { in processExportFunc() argument
109 slangAssert(!FD->getName().empty() && "Function name should not be empty"); in processExportFunc()
111 if (!FD->isThisDeclarationADefinition()) { in processExportFunc()
115 slangAssert(FD->getStorageClass() == clang::SC_None); in processExportFunc()
118 if (RSSpecialFunc::isSpecialRSFunc(mTargetAPI, FD)) { in processExportFunc()
120 return RSSpecialFunc::validateSpecialFuncDecl(mTargetAPI, this, FD); in processExportFunc()
124 if (RSExportForEach::isRSForEachFunc(mTargetAPI, FD)) { in processExportFunc()
125 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()
154 if (FD->hasAttr<clang::KernelAttr>()) { in ValidateFunctionDecl()
156 if (FD->getStorageClass() == clang::SC_Static) { in ValidateFunctionDecl()
157 Context->ReportError(FD->getLocation(), in ValidateFunctionDecl()
160 << FD->getName(); in ValidateFunctionDecl()
168 FD->getAttr<clang::KernelAttr>()->getKernelKind(); in ValidateFunctionDecl()
171 Context->ReportError(FD->getLocation(), in ValidateFunctionDecl()
174 << KernelKind << FD->getName(); in ValidateFunctionDecl()
179 clang::QualType resultType = FD->getReturnType().getCanonicalType(); in ValidateFunctionDecl()
[all …]
Dslang_rs_export_foreach.h81 const clang::FunctionDecl *FD);
84 const clang::FunctionDecl *FD);
87 const clang::FunctionDecl *FD);
90 const clang::FunctionDecl *FD,
94 const clang::FunctionDecl *FD);
97 const clang::FunctionDecl *FD);
164 const clang::FunctionDecl *FD);
167 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.cpp363 void Backend::AnnotateFunction(clang::FunctionDecl *FD) { in AnnotateFunction() argument
364 if (FD && in AnnotateFunction()
365 FD->hasBody() && in AnnotateFunction()
366 !Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) { in AnnotateFunction()
368 mRefCount.SetDeclContext(FD); in AnnotateFunction()
369 mRefCount.Visit(FD->getBody()); in AnnotateFunction()
395 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); in HandleTopLevelDecl() local
396 if (FD == nullptr) in HandleTopLevelDecl()
398 if (!FD->getName().startswith("rs")) // Check prefix in HandleTopLevelDecl()
400 if (!Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) in HandleTopLevelDecl()
[all …]
Dslang_rs_export_func.h54 const clang::FunctionDecl *FD) in RSExportFunc() argument
61 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD); in RSExportFunc()
65 Context->getMangleContext().mangleName(FD, BufStm); in RSExportFunc()
72 const clang::FunctionDecl *FD);
Dslang_rs_object_ref_count.cpp55 clang::FunctionDecl *FD = static_cast<clang::FunctionDecl*>(*I); in GetRSRefCountingFunctions() local
60 if (FD->getName() == "rsSetObject") { in GetRSRefCountingFunctions()
61 slangAssert((FD->getNumParams() == 2) && in GetRSRefCountingFunctions()
64 } else if (FD->getName() == "rsClearObject") { in GetRSRefCountingFunctions()
65 slangAssert((FD->getNumParams() == 1) && in GetRSRefCountingFunctions()
72 const clang::ParmVarDecl *PVD = FD->getParamDecl(0); in GetRSRefCountingFunctions()
85 RSObjectFD[DT] = FD; in GetRSRefCountingFunctions()
525 const clang::FieldDecl *FD = *FI; in CountRSObjectTypes() local
526 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CountRSObjectTypes()
544 const clang::FieldDecl *FD = *FI; in CountRSObjectTypes() 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_rs_export_type.cpp324 const clang::FieldDecl *FD = *FI; in TypeExportableHelper() local
325 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in TypeExportableHelper()
336 if (FD->isBitField()) { in TypeExportableHelper()
338 FD->getLocation(), in TypeExportableHelper()
340 << RD->getName() << FD->getName(); in TypeExportableHelper()
554 const clang::FieldDecl *FD = *FI; in ValidateTypeHelper() local
555 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in ValidateTypeHelper()
1053 const clang::FieldDecl *FD = *FI; in IsStructureTypeWithRSObject() local
1054 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in IsStructureTypeWithRSObject()
1370 const clang::FieldDecl *FD = *FIT; in Create() local
[all …]
Dslang_rs_context.h108 bool processExportFunc(const clang::FunctionDecl *FD);
200 bool addForEach(const clang::FunctionDecl* FD);
242 int getForEachSlotNumber(const clang::FunctionDecl* FD);
256 void markUsedByReducePragma(clang::FunctionDecl *FD, CheckName Check);
Dslang_backend.h111 void AnnotateFunction(clang::FunctionDecl *FD);
124 void LowerRSForEachCall(clang::FunctionDecl* FD, bool isKernel);
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);
/frameworks/rs/cpu_ref/
DrsCpuScript.cpp190 int FD = open(fileName, O_RDONLY); in addFileToChecksum() local
191 if (FD == -1) { in addFileToChecksum()
198 ssize_t nread = read(FD, buf, sizeof(buf)); in addFileToChecksum()
209 if (close(FD) != 0) { in addFileToChecksum()
/frameworks/rs/java/tests/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/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/api/
DarmCOMM_s.h771 LDM$cc.FD sp!, {$_RRegList, pc}
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/
DarmCOMM_s.h768 LDM$cc.FD sp!, {$_RRegList, pc}