Home
last modified time | relevance | path

Searched refs:RecordDecl (Results 1 – 25 of 86) sorted by relevance

1234

/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp112 void LayoutUnion(const RecordDecl *D);
117 RecordDecl::field_iterator &FI,
118 RecordDecl::field_iterator FE);
122 bool LayoutFields(const RecordDecl *D);
202 void Layout(const RecordDecl *D);
207 void CGRecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout()
273 RecordDecl::field_iterator &FI, in LayoutBitfields()
274 RecordDecl::field_iterator FE) { in LayoutBitfields()
307 RecordDecl::field_iterator BFI = FI; in LayoutBitfields()
310 for (RecordDecl::field_iterator FJ = FI; in LayoutBitfields()
[all …]
DCodeGenTypes.h46 class RecordDecl; variable
102 SmallVector<const RecordDecl *, 8> DeferredRecords;
146 const CGRecordLayout &getCGRecordLayout(const RecordDecl*);
224 CGRecordLayout *ComputeRecordLayout(const RecordDecl *D,
229 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
235 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
DCodeGenTypes.cpp51 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName()
110 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked);
117 isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT, in isSafeToConvert()
118 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument
146 for (RecordDecl::field_iterator I = RD->field_begin(), in isSafeToConvert()
160 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument
181 static bool isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT) { in isSafeToConvert()
185 llvm::SmallPtrSet<const RecordDecl*, 16> AlreadyChecked; in isSafeToConvert()
256 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType()
619 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
[all …]
DCodeGenTBAA.cpp182 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields()
194 for (RecordDecl::field_iterator i = RD->field_begin(), in CollectFields()
DCGDebugInfo.h186 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile F,
287 llvm::DIType createRecordFwdDecl(const RecordDecl *, llvm::DIDescriptor);
351 StringRef getClassName(const RecordDecl *RD);
DCGExprAgg.cpp262 RecordDecl *Record = RecordTy->getDecl(); in TypeRequiresGCollection()
388 RecordDecl *record = initList->getType()->castAs<RecordType>()->getDecl(); in EmitStdInitializerList()
389 RecordDecl::field_iterator field = record->field_begin(); in EmitStdInitializerList()
1191 RecordDecl *record = E->getType()->castAs<RecordType>()->getDecl(); in VisitInitListExpr()
1202 for (RecordDecl::field_iterator Field = record->field_begin(), in VisitInitListExpr()
1233 for (RecordDecl::field_iterator field = record->field_begin(), in VisitInitListExpr()
1325 RecordDecl *SD = E->getType()->getAs<RecordType>()->getDecl(); in GetNumNonZeroBytesInInit()
1329 for (RecordDecl::field_iterator Field = SD->field_begin(), in GetNumNonZeroBytesInInit()
1506 RecordDecl *Record = RecordTy->getDecl(); in EmitAggregateCopy()
DCGExprConstant.cpp74 void Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase,
376 RecordDecl *RD = ILE->getType()->getAs<RecordType>()->getDecl(); in Build()
384 for (RecordDecl::field_iterator Field = RD->field_begin(), in Build()
445 void ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD, in Build()
484 for (RecordDecl::field_iterator Field = RD->field_begin(), in Build()
525 RecordDecl *RD = Ty->getAs<RecordType>()->getDecl(); in Finalize()
594 const RecordDecl *RD = ValTy->castAs<RecordType>()->getDecl(); in BuildStruct()
1330 for (RecordDecl::field_iterator I = RD->field_begin(), in FillInNullDataMemberPointers()
1395 for (RecordDecl::field_iterator I = record->field_begin(), in EmitNullConstant()
DTargetInfo.cpp152 const RecordDecl *RD = RT->getDecl(); in isEmptyRecord()
163 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in isEmptyRecord()
204 const RecordDecl *RD = RT->getDecl(); in isSingleElementStruct()
231 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in isSingleElementStruct()
303 const RecordDecl *RD = RT->getDecl(); in canExpandIndirectArgument()
309 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in canExpandIndirectArgument()
632 for (RecordDecl::field_iterator i = RT->getDecl()->field_begin(), in shouldReturnTypeInRegister()
734 const RecordDecl *RD = RT->getDecl(); in isRecordWithSSEVectorType()
743 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in isRecordWithSSEVectorType()
1554 const RecordDecl *RD = RT->getDecl(); in classify()
[all …]
DCGDebugInfo.cpp107 if (const RecordDecl *RDecl = dyn_cast<RecordDecl>(Context)) { in getContextDescriptor()
184 CGDebugInfo::getClassName(const RecordDecl *RD) { in getClassName()
564 llvm::DIType CGDebugInfo::createRecordFwdDecl(const RecordDecl *RD, in createRecordFwdDecl()
602 if (const RecordDecl *RD = dyn_cast<RecordDecl>(Context)) { in createContextChain()
631 RecordDecl *RD = RTy->getDecl(); in CreatePointeeType()
817 RecordDecl::field_iterator Field = CXXDecl->field_begin(); in CollectRecordLambdaFields()
924 CollectRecordFields(const RecordDecl *record, llvm::DIFile tunit, in CollectRecordFields()
943 for (RecordDecl::decl_iterator I = record->decls_begin(), in CollectRecordFields()
1323 RecordDecl *RD = Ty->getDecl(); in CreateType()
2023 RecordDecl *RD = Ty->getDecl(); in CreateLimitedType()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp67 static bool IsClangType(const RecordDecl *RD) { in IsClangType()
71 static bool IsClangDecl(const RecordDecl *RD) { in IsClangDecl()
75 static bool IsClangStmt(const RecordDecl *RD) { in IsClangStmt()
79 static bool IsClangAttr(const RecordDecl *RD) { in IsClangAttr()
232 for (RecordDecl::field_iterator I = R->field_begin(), E = R->field_end(); in CheckASTMemory()
248 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit()
249 for (RecordDecl::field_iterator I = RD->field_begin(), E = RD->field_end(); in Visit()
/external/clang/lib/AST/
DDecl.cpp538 if (cast<RecordDecl>(Field->getDeclContext())->isAnonymousStructOrUnion()) in getLVForNamespaceScopeDecl()
762 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember()
1173 } else if (const RecordDecl *RD = dyn_cast<RecordDecl>(*I)) { in printQualifiedName()
2796 const RecordDecl *RD = getParent(); in getFieldIndex()
2800 for (RecordDecl::field_iterator I = RD->field_begin(), E = RD->field_end(); in getFieldIndex()
3013 RecordDecl::RecordDecl(Kind DK, TagKind TK, DeclContext *DC, in RecordDecl() function in RecordDecl
3015 IdentifierInfo *Id, RecordDecl *PrevDecl) in RecordDecl()
3025 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, in Create()
3027 IdentifierInfo *Id, RecordDecl* PrevDecl) { in Create()
3028 RecordDecl* R = new (C) RecordDecl(Record, TK, DC, StartLoc, IdLoc, Id, in Create()
[all …]
DASTImporter.cpp107 bool ImportDefinition(RecordDecl *From, RecordDecl *To,
121 bool IsStructuralMatch(RecordDecl *FromRecord, RecordDecl *ToRecord,
133 Decl *VisitRecordDecl(RecordDecl *D);
831 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent()
838 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent()
839 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent()
905 static Optional<unsigned> findAnonymousStructOrUnionIndex(RecordDecl *Anon) { in findAnonymousStructOrUnionIndex()
909 RecordDecl *Owner = dyn_cast<RecordDecl>(Anon->getDeclContext()); in findAnonymousStructOrUnionIndex()
932 RecordDecl *D1, RecordDecl *D2) { in IsStructurallyEquivalent()
1053 RecordDecl::field_iterator Field2 = D2->field_begin(), in IsStructurallyEquivalent()
[all …]
DRecordLayoutBuilder.cpp669 void Layout(const RecordDecl *D);
673 void LayoutFields(const RecordDecl *D);
1586 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in InitializeLayout()
1615 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout()
1636 void RecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout()
1728 void RecordLayoutBuilder::LayoutFields(const RecordDecl *D) { in LayoutFields()
1734 for (RecordDecl::field_iterator Field = D->field_begin(), in LayoutFields()
2223 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in FinishLayout()
2460 ASTContext::getASTRecordLayout(const RecordDecl *D) const { in getASTRecordLayout()
2467 getExternalSource()->CompleteType(const_cast<RecordDecl*>(D)); in getASTRecordLayout()
[all …]
DCXXInheritance.cpp396 RecordDecl *BaseRecord = in FindTagMember()
413 RecordDecl *BaseRecord = in FindOrdinaryMember()
432 RecordDecl *BaseRecord = in FindNestedNameSpecifierMember()
/external/clang/include/clang/AST/
DDecl.h2131 const RecordDecl *getParent() const { in getParent()
2132 return cast<RecordDecl>(getDeclContext()); in getParent()
2135 RecordDecl *getParent() { in getParent()
2136 return cast<RecordDecl>(getDeclContext()); in getParent()
2863 class RecordDecl : public TagDecl {
2890 RecordDecl(Kind DK, TagKind TK, DeclContext *DC,
2892 IdentifierInfo *Id, RecordDecl *PrevDecl);
2895 static RecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
2897 IdentifierInfo *Id, RecordDecl* PrevDecl = 0);
2898 static RecordDecl *CreateDeserialized(const ASTContext &C, unsigned ID);
[all …]
DASTContext.h138 mutable llvm::DenseMap<const RecordDecl*, const ASTRecordLayout*>
220 mutable RecordDecl *CFConstantStringTypeDecl;
245 mutable RecordDecl *BlockDescriptorType;
251 mutable RecordDecl *BlockDescriptorExtendedType;
1020 QualType getRecordType(const RecordDecl *Decl) const;
1594 const ASTRecordLayout &getASTRecordLayout(const RecordDecl *D) const;
1601 void DumpRecordLayout(const RecordDecl *RD, raw_ostream &OS,
2163 void getObjCEncodingForStructureImpl(RecordDecl *RD, std::string &S,
DExternalASTSource.h30 class RecordDecl; variable
247 layoutRecordType(const RecordDecl *Record, in layoutRecordType()
DRecordLayout.h24 class RecordDecl; variable
DDeclCXX.h271 class CXXRecordDecl : public RecordDecl {
626 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl());
629 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl());
633 return cast_or_null<CXXRecordDecl>(RecordDecl::getPreviousDecl());
636 return cast_or_null<CXXRecordDecl>(RecordDecl::getPreviousDecl());
640 return cast_or_null<CXXRecordDecl>(RecordDecl::getMostRecentDecl());
643 return cast_or_null<CXXRecordDecl>(RecordDecl::getMostRecentDecl());
/external/clang/include/clang/Frontend/
DLayoutOverrideSource.h51 layoutRecordType(const RecordDecl *Record,
/external/clang/lib/Frontend/
DLayoutOverrideSource.cpp156 LayoutOverrideSource::layoutRecordType(const RecordDecl *Record, in layoutRecordType()
173 for (RecordDecl::field_iterator F = Record->field_begin(), in layoutRecordType()
DASTConsumers.cpp207 const RecordDecl* RD = cast<RecordDecl>(DC); in PrintDeclContext()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp244 const CXXRecordDecl *RecordDecl = ObjectType->getAsCXXRecordDecl(); in VisitCXXDestructor() local
245 assert(RecordDecl && "Only CXXRecordDecls should have destructors"); in VisitCXXDestructor()
246 const CXXDestructorDecl *DtorDecl = RecordDecl->getDestructor(); in VisitCXXDestructor()
/external/clang/lib/Sema/
DSemaAttr.cpp114 void Sema::AddAlignmentAttributesForRecord(RecordDecl *RD) { in AddAlignmentAttributesForRecord()
132 void Sema::AddMsStructLayoutForRecord(RecordDecl *RD) { in AddMsStructLayoutForRecord()
/external/clang/unittests/AST/
DSourceLocationTest.cpp44 LocationVerifier<RecordDecl> Verifier; in TEST()

1234