Searched refs:FD (Results 1 - 22 of 22) sorted by relevance

/frameworks/compile/slang/
H A Dslang_rs_special_func.cpp28 const clang::FunctionDecl *FD) {
29 if (FD->hasAttr<clang::KernelAttr>()) {
33 if (!FD->getName().equals("root")) {
37 if (FD->getNumParams() == 0) {
43 if ((targetAPI < SLANG_ICS_TARGET_API) && (FD->getNumParams() == 1)) {
44 const clang::QualType &IntType = FD->getASTContext().IntTy;
45 if (FD->getReturnType().getCanonicalType() == IntType) {
56 clang::FunctionDecl const *FD) {
57 slangAssert(Context && FD);
59 const clang::ASTContext &C = FD
27 isGraphicsRootRSFunc(unsigned int targetAPI, const clang::FunctionDecl *FD) argument
54 validateSpecialFuncDecl(unsigned int targetAPI, slang::RSContext *Context, clang::FunctionDecl const *FD) argument
[all...]
H A Dslang_rs_special_func.h30 inline bool isInitRSFunc(const clang::FunctionDecl *FD) { argument
31 if (!FD) {
34 const llvm::StringRef Name = FD->getName();
39 inline bool isDtorRSFunc(const clang::FunctionDecl *FD) { argument
40 if (!FD) {
43 const llvm::StringRef Name = FD->getName();
49 const clang::FunctionDecl *FD);
52 const clang::FunctionDecl *FD) {
53 return isGraphicsRootRSFunc(targetAPI, FD) || isInitRSFunc(FD) ||
51 isSpecialRSFunc(unsigned int targetAPI, const clang::FunctionDecl *FD) argument
[all...]
H A Dslang_rs_export_foreach.cpp41 bool isRootRSFunc(const clang::FunctionDecl *FD) { argument
42 if (!FD) {
45 return FD->getName().equals("root");
55 RSContext *Context, const clang::FunctionDecl *FD) {
56 slangAssert(Context && FD);
59 numParams = FD->getNumParams();
63 if (!isRootRSFunc(FD)) {
64 Context->ReportError(FD->getLocation(),
67 << FD->getName() << SLANG_MINIMUM_TARGET_API
73 mResultType = FD
54 validateAndConstructParams( RSContext *Context, const clang::FunctionDecl *FD) argument
86 validateAndConstructOldStyleParams( RSContext *Context, const clang::FunctionDecl *FD) argument
164 validateAndConstructKernelParams( RSContext *Context, const clang::FunctionDecl *FD) argument
253 processSpecialParameters( RSContext *Context, const clang::FunctionDecl *FD, size_t *IndexOfFirstSpecialParameter) argument
268 setSignatureMetadata(RSContext *Context, const clang::FunctionDecl *FD) argument
309 Create(RSContext *Context, const clang::FunctionDecl *FD) argument
348 clang::FieldDecl *FD = local
430 isRSForEachFunc(unsigned int targetAPI, const clang::FunctionDecl *FD) argument
469 getNumInputs(unsigned int targetAPI, const clang::FunctionDecl *FD) argument
[all...]
H A Dslang_rs_context.cpp95 int RSContext::getForEachSlotNumber(const clang::FunctionDecl* FD) { argument
96 const clang::StringRef& funcName = FD->getName();
108 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { argument
109 slangAssert(!FD->getName().empty() && "Function name should not be empty");
111 if (!FD->isThisDeclarationADefinition()) {
115 slangAssert(FD->getStorageClass() == clang::SC_None);
118 if (RSSpecialFunc::isSpecialRSFunc(mTargetAPI, FD)) {
120 return RSSpecialFunc::validateSpecialFuncDecl(mTargetAPI, this, FD);
124 if (RSExportForEach::isRSForEachFunc(mTargetAPI, FD)) {
125 RSExportForEach *EFE = RSExportForEach::Create(this, FD);
160 addForEach(const clang::FunctionDecl* FD) argument
265 clang::FunctionDecl* FD = llvm::dyn_cast<clang::FunctionDecl>(D); local
320 markUsedByReducePragma(clang::FunctionDecl *FD, CheckName Check) argument
[all...]
H A Dslang_rs_export_func.cpp36 const clang::FunctionDecl *FD) {
37 slangAssert(Context && FD);
38 const clang::ASTContext &C = FD->getASTContext();
39 if (FD->getReturnType().getCanonicalType() != C.VoidTy) {
41 FD->getLocation(),
51 const clang::FunctionDecl *FD) {
52 llvm::StringRef Name = FD->getName();
57 if (!ValidateFuncDecl(Context, FD)) {
61 F = new RSExportFunc(Context, Name, FD);
64 if (FD
35 ValidateFuncDecl(slang::RSContext *Context, const clang::FunctionDecl *FD) argument
50 Create(RSContext *Context, const clang::FunctionDecl *FD) argument
88 clang::FieldDecl *FD = local
[all...]
H A 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);
H A Dslang_rs_check_ast.cpp149 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) { argument
150 if (!FD) {
154 if (FD->hasAttr<clang::KernelAttr>()) {
156 if (FD->getStorageClass() == clang::SC_Static) {
157 Context->ReportError(FD->getLocation(),
160 << FD->getName();
168 FD->getAttr<clang::KernelAttr>()->getKernelKind();
171 Context->ReportError(FD->getLocation(),
174 << KernelKind << FD->getName();
179 clang::QualType resultType = FD
[all...]
H A Dslang_rs_export_func.h54 const clang::FunctionDecl *FD)
61 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD);
65 Context->getMangleContext().mangleName(FD, BufStm);
72 const clang::FunctionDecl *FD);
53 RSExportFunc(RSContext *Context, const llvm::StringRef &Name, const clang::FunctionDecl *FD) argument
H A Dslang_rs_special_kernel_param.h36 const clang::FunctionDecl *FD,
H A Dslang_rs_foreach_lowering.cpp67 const clang::FunctionDecl* FD = local
70 if (FD == nullptr) {
74 return FD;
98 const clang::FunctionDecl* FD = clang::dyn_cast<clang::FunctionDecl>(D); local
100 if (FD == nullptr) {
104 const clang::StringRef& funcName = FD->getName();
172 clang::FunctionDecl* FD = clang::FunctionDecl::Create( local
178 ParamDecls[I] = clang::ParmVarDecl::Create(mASTCtxt, FD, Loc,
184 FD->setParams(llvm::makeArrayRef(ParamDecls, kNumParams));
188 FD
384 handleForEachCalls(clang::FunctionDecl* FD, unsigned int targetAPI) argument
[all...]
H A Dslang_backend.cpp363 void Backend::AnnotateFunction(clang::FunctionDecl *FD) { argument
364 if (FD &&
365 FD->hasBody() &&
366 !Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) {
368 mRefCount.SetDeclContext(FD);
369 mRefCount.Visit(FD->getBody());
395 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
396 if (FD == nullptr)
398 if (!FD->getName().startswith("rs")) // Check prefix
400 if (!Slang::IsLocInRSHeaderFile(FD
409 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
492 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor(); local
502 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
[all...]
H A Dslang_rs_check_ast.h70 void ValidateFunctionDecl(clang::FunctionDecl *FD);
H A Dslang_rs_foreach_lowering.h37 // Given a FunctionDecl FD and the target API level, either translates all
38 // rsForEach() and rsForEachWithOptions() calls inside FD into calls to the
39 // low-level rsForEachInternal() API, if FD is not a kernel function itself;
40 // or, in the case where FD is a kernel function, reports a compiler error on
42 void handleForEachCalls(clang::FunctionDecl* FD, unsigned int targetAPI);
H A Dslang_rs_special_kernel_param.cpp93 // FD->getNumParams() if none are found.
99 const clang::FunctionDecl *FD,
111 size_t NumParams = FD->getNumParams();
115 const clang::ParmVarDecl *PVD = FD->getParamDecl(i);
96 processSpecialKernelParameters( slang::RSContext *Context, std::function<std::string ()> DiagnosticDescription, const clang::FunctionDecl *FD, size_t *IndexOfFirstSpecialParameter, unsigned int *SignatureMetadata) argument
H A Dslang_rs_object_ref_count.cpp55 clang::FunctionDecl *FD = static_cast<clang::FunctionDecl*>(*I); local
60 if (FD->getName() == "rsSetObject") {
61 slangAssert((FD->getNumParams() == 2) &&
64 } else if (FD->getName() == "rsClearObject") {
65 slangAssert((FD->getNumParams() == 1) &&
72 const clang::ParmVarDecl *PVD = FD->getParamDecl(0);
78 // The rs object type passed to the FD
85 RSObjectFD[DT] = FD;
525 const clang::FieldDecl *FD = *FI; local
526 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
544 const clang::FieldDecl *FD = *FI; local
588 clang::FieldDecl *FD = *FI; local
921 clang::FieldDecl *FD = *FI; local
1428 const clang::FunctionDecl* FD = CE->getDirectCallee(); local
1598 clang::FunctionDecl *FD = nullptr; local
[all...]
H A Dslang_backend.h111 void AnnotateFunction(clang::FunctionDecl *FD);
120 // of FD to lower-level runtime calls to rsForEachInternal(), if FD is not a
124 void LowerRSForEachCall(clang::FunctionDecl* FD, bool isKernel);
H A 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);
H A Dslang_rs_export_type.cpp324 const clang::FieldDecl *FD = *FI; local
325 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
336 if (FD->isBitField()) {
338 FD->getLocation(),
340 << RD->getName() << FD->getName();
554 const clang::FieldDecl *FD = *FI; local
555 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1053 const clang::FieldDecl *FD = *FI; local
1054 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1370 const clang::FieldDecl *FD local
1513 clang::FieldDecl *FD = *FI; local
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuScript.cpp190 int FD = open(fileName, O_RDONLY); local
191 if (FD == -1) {
198 ssize_t nread = read(FD, buf, sizeof(buf));
209 if (close(FD) != 0) {
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/loaders/
H A DLoaderDicom.java90 static final short FD = vr("FD"); field in class:LoaderDicom
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/
H A DarmCOMM_s.h768 LDM$cc.FD sp!, {$_RRegList, pc}
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/api/
H A DarmCOMM_s.h771 LDM$cc.FD sp!, {$_RRegList, pc}

Completed in 269 milliseconds