Home
last modified time | relevance | path

Searched refs:RD (Results 1 – 7 of 7) sorted by relevance

/frameworks/compile/slang/
Dslang_rs_export_type.cpp293 clang::RecordDecl *RD = T->getAsStructureType()->getDecl(); in TypeExportableHelper() local
294 slangAssert(RD); in TypeExportableHelper()
295 RD = RD->getDefinition(); in TypeExportableHelper()
296 if (RD == nullptr) { in TypeExportableHelper()
303 TopLevelRecord = RD; in TypeExportableHelper()
305 if (RD->getName().empty()) { in TypeExportableHelper()
306 ReportTypeError(Context, nullptr, RD, in TypeExportableHelper()
312 if (RD->hasFlexibleArrayMember() || RD->hasObjectMember()) in TypeExportableHelper()
319 for (clang::RecordDecl::field_iterator FI = RD->field_begin(), in TypeExportableHelper()
320 FE = RD->field_end(); in TypeExportableHelper()
[all …]
Dslang_rs_export_func.cpp71 clang::RecordDecl *RD = in Create() local
90 RD, in Create()
99 RD->addDecl(FD); in Create()
102 RD->completeDefinition(); in Create()
104 clang::QualType T = Ctx.getTagDeclType(RD); in Create()
Dslang_backend.cpp386 void Backend::PadStruct(clang::RecordDecl* RD) { in PadStruct() argument
407 for (clang::Decl* D : RD->decls()) { in PadStruct()
446 clang::RecordDecl::Create(ASTC, clang::TTK_Struct, RD->getDeclContext(), in PadStruct()
450 RDForLayout->setTypeForDecl(RD->getTypeForDecl()); in PadStruct()
451 if (RD->hasAttrs()) in PadStruct()
452 RDForLayout->setAttrs(RD->getAttrs()); in PadStruct()
457 RD->removeDecl(info.second); in PadStruct()
513 std::cout << "PadStruct(" << RD->getNameAsString() << "):" << std::endl; in PadStruct()
519 if (foundPadding && Slang::IsLocInRSHeaderFile(RD->getLocation(), mSourceMgr)) { in PadStruct()
520 mContext->ReportError(RD->getLocation(), "system structure contains padding: '%0'") in PadStruct()
[all …]
Dslang_rs_object_ref_count.cpp518 clang::RecordDecl *RD = T->getAsUnionType()->getDecl(); in CountRSObjectTypes() local
519 RD = RD->getDefinition(); in CountRSObjectTypes()
520 for (clang::RecordDecl::field_iterator FI = RD->field_begin(), in CountRSObjectTypes()
521 FE = RD->field_end(); in CountRSObjectTypes()
537 clang::RecordDecl *RD = T->getAsStructureType()->getDecl(); in CountRSObjectTypes() local
538 RD = RD->getDefinition(); in CountRSObjectTypes()
539 for (clang::RecordDecl::field_iterator FI = RD->field_begin(), in CountRSObjectTypes()
540 FE = RD->field_end(); in CountRSObjectTypes()
578 clang::RecordDecl *RD = BaseType->getAsStructureType()->getDecl(); in ClearStructRSObject() local
579 RD = RD->getDefinition(); in ClearStructRSObject()
[all …]
Dslang_rs_export_foreach.cpp347 clang::RecordDecl *RD = in Create() local
356 RD, in Create()
365 RD->addDecl(FD); in Create()
366 RD->completeDefinition(); in Create()
369 clang::QualType T = Ctx.getTagDeclType(RD); in Create()
Dslang.cpp494 ReflectedDefinitionListTy::const_iterator RD = in checkODR() local
497 if (RD != ReflectedDefinitions.end()) { in checkODR()
498 const RSExportRecordType *Reflected = RD->getValue().first; in checkODR()
508 << RD->getValue().second; in checkODR()
Dslang_backend.h138 void PadStruct(clang::RecordDecl* RD);