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

/frameworks/compile/slang/
H A Dslang_rs_special_func.cpp28 const clang::FunctionDecl *FD) {
29 if (FD->hasAttr<clang::RenderScriptKernelAttr>()) {
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
354 clang::FieldDecl *FD = local
434 isRSForEachFunc(unsigned int targetAPI, const clang::FunctionDecl *FD) argument
473 getNumInputs(unsigned int targetAPI, const clang::FunctionDecl *FD) argument
[all...]
H A Dslang_rs_context.cpp96 int RSContext::getForEachSlotNumber(const clang::FunctionDecl* FD) { argument
97 const clang::StringRef& funcName = FD->getName();
109 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { argument
110 slangAssert(!FD->getName().empty() && "Function name should not be empty");
112 if (!FD->isThisDeclarationADefinition()) {
116 slangAssert(FD->getStorageClass() == clang::SC_None);
119 if (RSSpecialFunc::isSpecialRSFunc(mTargetAPI, FD)) {
121 return RSSpecialFunc::validateSpecialFuncDecl(mTargetAPI, this, FD);
125 if (RSExportForEach::isRSForEachFunc(mTargetAPI, FD)) {
126 RSExportForEach *EFE = RSExportForEach::Create(this, FD);
161 addForEach(const clang::FunctionDecl* FD) argument
266 clang::FunctionDecl* FD = llvm::dyn_cast<clang::FunctionDecl>(D); local
321 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_func.h50 const clang::FunctionDecl *FD)
51 : RSExportable(Context, RSExportable::EX_FUNC, FD->getLocation()),
57 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD);
61 Context->getMangleContext().mangleName(FD, BufStm);
68 const clang::FunctionDecl *FD);
49 RSExportFunc(RSContext *Context, const llvm::StringRef &Name, const clang::FunctionDecl *FD) argument
H A Dslang_rs_check_ast.cpp149 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) { argument
150 if (!FD) {
155 if (FD->hasAttr<clang::RenderScriptKernelAttr>() &&
156 FD->getStorageClass() == clang::SC_Static) {
157 Context->ReportError(FD->getLocation(),
160 << FD->getName();
164 clang::QualType resultType = FD->getReturnType().getCanonicalType();
165 bool isExtern = (FD->getFormalLinkage() == clang::ExternalLinkage);
167 // We use FD as our NamedDecl in the case of a bad return type.
168 if (!RSExportType::ValidateType(Context, C, resultType, FD,
[all...]
H A 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);
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.cpp408 clang::FieldDecl* FD = clang::dyn_cast<clang::FieldDecl>(D); local
409 slangAssert(FD && "found a non field declaration within a struct");
410 FieldsInfo.push_back(std::make_pair(size_t(0), FD));
480 const clang::FieldDecl* FD = info.second; local
482 if ((foundBitField = FD->isBitField()))
495 fieldPrePaddingOffset = fieldOffset + (ASTC.getTypeSize(FD->getType()) >> 3);
538 clang::FieldDecl* const FD = member in class:slang::clang
546 FD->setImplicit(true);
547 RD->addDecl(FD);
601 void Backend::AnnotateFunction(clang::FunctionDecl *FD) { argument
634 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
648 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
731 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor(); local
741 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I); local
[all...]
H A Dslang_rs_object_ref_count.cpp54 clang::FunctionDecl *FD = static_cast<clang::FunctionDecl*>(*I); local
59 if (FD->getName() == "rsSetObject") {
60 slangAssert((FD->getNumParams() == 2) &&
63 } else if (FD->getName() == "rsClearObject") {
64 slangAssert((FD->getNumParams() == 1) &&
71 const clang::ParmVarDecl *PVD = FD->getParamDecl(0);
77 // The rs object type passed to the FD
84 RSObjectFD[DT] = FD;
524 const clang::FieldDecl *FD = *FI; local
525 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
543 const clang::FieldDecl *FD = *FI; local
587 clang::FieldDecl *FD = *FI; local
922 clang::FieldDecl *FD = *FI; local
1441 HandleParamsAndLocals(clang::FunctionDecl *FD) argument
1541 const clang::FunctionDecl* FD = CE->getDirectCallee(); local
1747 clang::FunctionDecl *FD = nullptr; 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, const std::function<std::string ()> &DiagnosticDescription, const clang::FunctionDecl *FD, size_t *IndexOfFirstSpecialParameter, unsigned int *SignatureMetadata) argument
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_export_type.cpp323 const clang::FieldDecl *FD = *FI; local
324 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
335 if (FD->isBitField()) {
337 FD->getLocation(),
339 << RD->getName() << FD->getName();
558 const clang::FieldDecl *FD = *FI; local
559 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1058 const clang::FieldDecl *FD = *FI; local
1059 const clang::Type *FT = RSExportType::GetTypeOfDecl(FD);
1377 const clang::FieldDecl *FD local
1523 clang::FieldDecl *FD = *FI; local
[all...]
H A 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);
H A Dslang_rs_object_ref_count.h171 void HandleParamsAndLocals(clang::FunctionDecl *FD);
/frameworks/rs/cpu_ref/
H A DrsCpuScript.cpp175 int FD = open(fileName, O_RDONLY); local
176 if (FD == -1) {
183 ssize_t nread = read(FD, buf, sizeof(buf));
194 if (close(FD) != 0) {
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
H A DLoaderDicom.java90 static final short FD = vr("FD"); field in class:LoaderDicom

Completed in 228 milliseconds