/frameworks/compile/slang/ |
D | slang_rs_export_foreach.cpp | 99 RSContext *Context, const clang::FunctionDecl *FD) { in validateAndConstructParams() argument 100 slangAssert(Context && FD); in validateAndConstructParams() 103 numParams = FD->getNumParams(); in validateAndConstructParams() 107 if (!isRootRSFunc(FD)) { in validateAndConstructParams() 108 Context->ReportError(FD->getLocation(), in validateAndConstructParams() 111 << FD->getName() << SLANG_MINIMUM_TARGET_API in validateAndConstructParams() 117 mResultType = FD->getReturnType().getCanonicalType(); in validateAndConstructParams() 120 if (FD->hasAttr<clang::KernelAttr>()) { in validateAndConstructParams() 121 valid |= validateAndConstructKernelParams(Context, FD); in validateAndConstructParams() 123 valid |= validateAndConstructOldStyleParams(Context, FD); in validateAndConstructParams() [all …]
|
D | slang_rs_export_foreach.h | 81 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); 163 inline static bool isInitRSFunc(const clang::FunctionDecl *FD) { in isInitRSFunc() argument 164 if (!FD) { in isInitRSFunc() 167 const llvm::StringRef Name = FD->getName(); in isInitRSFunc() 172 inline static bool isRootRSFunc(const clang::FunctionDecl *FD) { in isRootRSFunc() argument [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_context.cpp | 88 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { in processExportFunc() argument 89 slangAssert(!FD->getName().empty() && "Function name should not be empty"); in processExportFunc() 91 if (!FD->isThisDeclarationADefinition()) { in processExportFunc() 95 if (FD->getStorageClass() != clang::SC_None) { in processExportFunc() 97 "static function '%s'\n", FD->getName().str().c_str()); in processExportFunc() 101 if (RSExportForEach::isSpecialRSFunc(mTargetAPI, FD)) { in processExportFunc() 103 return RSExportForEach::validateSpecialFuncDecl(mTargetAPI, this, FD); in processExportFunc() 104 } else if (RSExportForEach::isRSForEachFunc(mTargetAPI, this, FD)) { in processExportFunc() 105 RSExportForEach *EFE = RSExportForEach::Create(this, FD); in processExportFunc() 113 RSExportFunc *EF = RSExportFunc::Create(this, FD); in processExportFunc() [all …]
|
D | slang_rs_check_ast.cpp | 146 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) { in ValidateFunctionDecl() argument 147 if (!FD) { in ValidateFunctionDecl() 151 clang::QualType resultType = FD->getReturnType().getCanonicalType(); in ValidateFunctionDecl() 152 bool isExtern = (FD->getFormalLinkage() == clang::ExternalLinkage); in ValidateFunctionDecl() 155 if (!RSExportType::ValidateType(Context, C, resultType, FD, in ValidateFunctionDecl() 156 FD->getLocStart(), mTargetAPI, in ValidateFunctionDecl() 161 size_t numParams = FD->getNumParams(); in ValidateFunctionDecl() 163 clang::ParmVarDecl *PVD = FD->getParamDecl(i); in ValidateFunctionDecl() 172 mInKernel = RSExportForEach::isRSForEachFunc(mTargetAPI, Context, FD); in ValidateFunctionDecl() 174 if (clang::Stmt *Body = FD->getBody()) { in ValidateFunctionDecl() [all …]
|
D | slang_backend.cpp | 413 void Backend::AnnotateFunction(clang::FunctionDecl *FD) { in AnnotateFunction() argument 414 if (FD && in AnnotateFunction() 415 FD->hasBody() && in AnnotateFunction() 416 !Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) { in AnnotateFunction() 418 mRefCount.Visit(FD->getBody()); in AnnotateFunction() 428 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); in HandleTopLevelDecl() local 429 if (FD == nullptr) in HandleTopLevelDecl() 431 if (!FD->getName().startswith("rs")) // Check prefix in HandleTopLevelDecl() 433 if (!Slang::IsLocInRSHeaderFile(FD->getLocation(), mSourceMgr)) in HandleTopLevelDecl() 434 mContext->ReportError(FD->getLocation(), in HandleTopLevelDecl() [all …]
|
D | slang_rs_export_func.h | 54 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);
|
D | slang_rs_object_ref_count.cpp | 55 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() 622 const clang::FieldDecl *FD = *FI; in CountRSObjectTypes() local 623 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in CountRSObjectTypes() 641 const clang::FieldDecl *FD = *FI; in CountRSObjectTypes() local [all …]
|
D | slang_rs_export_type.cpp | 309 const clang::FieldDecl *FD = *FI; in TypeExportableHelper() local 310 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in TypeExportableHelper() 320 if (FD->isBitField()) { in TypeExportableHelper() 322 FD->getLocation(), in TypeExportableHelper() 324 << RD->getName() << FD->getName(); in TypeExportableHelper() 524 const clang::FieldDecl *FD = *FI; in ValidateTypeHelper() local 525 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in ValidateTypeHelper() 1018 const clang::FieldDecl *FD = *FI; in IsStructureTypeWithRSObject() local 1019 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD); in IsStructureTypeWithRSObject() 1333 const clang::FieldDecl *FD = *FIT; in Create() local [all …]
|
D | slang_rs_check_ast.h | 70 void ValidateFunctionDecl(clang::FunctionDecl *FD);
|
D | slang_backend.h | 105 void AnnotateFunction(clang::FunctionDecl *FD);
|
D | slang_rs_context.h | 95 bool processExportFunc(const clang::FunctionDecl *FD);
|
/frameworks/rs/cpu_ref/ |
D | rsCpuScript.cpp | 172 int FD = open(fileName, O_RDONLY); in addFileToChecksum() local 173 if (FD == -1) { in addFileToChecksum() 180 ssize_t nread = read(FD, buf, sizeof(buf)); in addFileToChecksum() 191 if (close(FD) != 0) { in addFileToChecksum()
|
/frameworks/rs/java/tests/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/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/api/ |
D | armCOMM_s.h | 771 LDM$cc.FD sp!, {$_RRegList, pc}
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/ |
D | armCOMM_s.h | 768 LDM$cc.FD sp!, {$_RRegList, pc}
|