Home
last modified time | relevance | path

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

1234

/external/clang/lib/CodeGen/
DCodeGenTypes.h46 class RecordDecl; variable
100 SmallVector<const RecordDecl *, 8> DeferredRecords;
144 const CGRecordLayout &getCGRecordLayout(const RecordDecl*);
220 CGRecordLayout *ComputeRecordLayout(const RecordDecl *D,
225 void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
231 llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
DCodeGenTypes.cpp50 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName()
109 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked);
116 isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT, in isSafeToConvert()
117 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument
145 for (RecordDecl::field_iterator I = RD->field_begin(), in isSafeToConvert()
159 llvm::SmallPtrSet<const RecordDecl*, 16> &AlreadyChecked) { in isSafeToConvert() argument
180 static bool isSafeToConvert(const RecordDecl *RD, CodeGenTypes &CGT) { in isSafeToConvert()
184 llvm::SmallPtrSet<const RecordDecl*, 16> AlreadyChecked; in isSafeToConvert()
255 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType()
571 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { in ConvertRecordDeclType()
[all …]
DCGRecordLayoutBuilder.cpp116 void LayoutUnion(const RecordDecl *D);
120 bool LayoutFields(const RecordDecl *D);
200 void Layout(const RecordDecl *D);
205 void CGRecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout()
362 const RecordDecl *RD = FD->getParent(); in MakeInfo()
461 const RecordDecl *RD = cast<RecordDecl>(RT->getDecl()); in LayoutField()
526 void CGRecordLayoutBuilder::LayoutUnion(const RecordDecl *D) { in LayoutUnion()
539 for (RecordDecl::field_iterator field = D->field_begin(), in LayoutUnion()
804 bool CGRecordLayoutBuilder::LayoutFields(const RecordDecl *D) { in LayoutFields()
818 for (RecordDecl::field_iterator Field = D->field_begin(), in LayoutFields()
[all …]
DCGDebugInfo.h155 void CollectRecordStaticVars(const RecordDecl *, llvm::DIType);
156 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile F,
254 llvm::DIType createRecordFwdDecl(const RecordDecl *, llvm::DIDescriptor);
309 StringRef getClassName(const RecordDecl *RD);
DCGExprAgg.cpp214 RecordDecl *Record = RecordTy->getDecl(); in TypeRequiresGCollection()
340 RecordDecl *record = initList->getType()->castAs<RecordType>()->getDecl(); in EmitStdInitializerList()
341 RecordDecl::field_iterator field = record->field_begin(); in EmitStdInitializerList()
1032 RecordDecl *record = E->getType()->castAs<RecordType>()->getDecl(); in VisitInitListExpr()
1043 for (RecordDecl::field_iterator Field = record->field_begin(), in VisitInitListExpr()
1074 for (RecordDecl::field_iterator field = record->field_begin(), in VisitInitListExpr()
1166 RecordDecl *SD = E->getType()->getAs<RecordType>()->getDecl(); in GetNumNonZeroBytesInInit()
1170 for (RecordDecl::field_iterator Field = SD->field_begin(), in GetNumNonZeroBytesInInit()
1342 RecordDecl *Record = RecordTy->getDecl(); in EmitAggregateCopy()
DTargetInfo.cpp151 const RecordDecl *RD = RT->getDecl(); in isEmptyRecord()
162 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in isEmptyRecord()
203 const RecordDecl *RD = RT->getDecl(); in isSingleElementStruct()
230 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in isSingleElementStruct()
296 const RecordDecl *RD = RT->getDecl(); in canExpandIndirectArgument()
302 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in canExpandIndirectArgument()
623 for (RecordDecl::field_iterator i = RT->getDecl()->field_begin(), in shouldReturnTypeInRegister()
725 const RecordDecl *RD = RT->getDecl(); in isRecordWithSSEVectorType()
734 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in isRecordWithSSEVectorType()
1488 const RecordDecl *RD = RT->getDecl(); in classify()
[all …]
DCGDebugInfo.cpp106 if (const RecordDecl *RDecl = dyn_cast<RecordDecl>(Context)) { in getContextDescriptor()
181 CGDebugInfo::getClassName(const RecordDecl *RD) { in getClassName()
513 llvm::DIType CGDebugInfo::createRecordFwdDecl(const RecordDecl *RD, in createRecordFwdDecl()
555 if (const RecordDecl *RD = dyn_cast<RecordDecl>(Context)) { in createContextChain()
584 RecordDecl *RD = RTy->getDecl(); in CreatePointeeType()
718 CollectRecordStaticVars(const RecordDecl *RD, llvm::DIType FwdDecl) { in CollectRecordStaticVars()
720 for (RecordDecl::decl_iterator I = RD->decls_begin(), E = RD->decls_end(); in CollectRecordStaticVars()
780 CollectRecordFields(const RecordDecl *record, llvm::DIFile tunit, in CollectRecordFields()
791 RecordDecl::field_iterator Field = CXXDecl->field_begin(); in CollectRecordFields()
817 for (RecordDecl::field_iterator I = record->field_begin(), in CollectRecordFields()
[all …]
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()
1315 for (RecordDecl::field_iterator I = RD->field_begin(), in FillInNullDataMemberPointers()
1380 for (RecordDecl::field_iterator I = record->field_begin(), in EmitNullConstant()
DCGCall.cpp474 const RecordDecl *RD = RT->getDecl(); in GetExpandedTypes()
483 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in GetExpandedTypes()
497 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in GetExpandedTypes()
527 RecordDecl *RD = RT->getDecl(); in ExpandTypeFromArgs()
534 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in ExpandTypeFromArgs()
551 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in ExpandTypeFromArgs()
1866 RecordDecl *RD = RT->getDecl(); in ExpandTypeToArgs()
1874 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in ExpandTypeToArgs()
1890 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in ExpandTypeToArgs()
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp66 static bool IsClangType(const RecordDecl *RD) { in IsClangType()
70 static bool IsClangDecl(const RecordDecl *RD) { in IsClangDecl()
74 static bool IsClangStmt(const RecordDecl *RD) { in IsClangStmt()
78 static bool IsClangAttr(const RecordDecl *RD) { in IsClangAttr()
231 for (RecordDecl::field_iterator I = R->field_begin(), E = R->field_end(); in CheckASTMemory()
247 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit()
248 for (RecordDecl::field_iterator I = RD->field_begin(), E = RD->field_end(); in Visit()
DCallAndMessageChecker.cpp152 const RecordDecl *RD = RT->getDecl()->getDefinition(); in PreVisitProcessArg()
154 for (RecordDecl::field_iterator I = in PreVisitProcessArg()
/external/clang/lib/AST/
DDecl.cpp258 if (cast<RecordDecl>(Field->getDeclContext())->isAnonymousStructOrUnion()) in getLVForNamespaceScopeDecl()
528 LV.mergeWithMin(getLVForDecl(cast<RecordDecl>(D->getDeclContext()), in getLVForClassMember()
898 } else if (const RecordDecl *RD = dyn_cast<RecordDecl>(*I)) { in getQualifiedNameAsString()
2515 const RecordDecl *RD = getParent(); in getFieldIndex()
2519 for (RecordDecl::field_iterator I = RD->field_begin(), E = RD->field_end(); in getFieldIndex()
2720 RecordDecl::RecordDecl(Kind DK, TagKind TK, DeclContext *DC, in RecordDecl() function in RecordDecl
2722 IdentifierInfo *Id, RecordDecl *PrevDecl) in RecordDecl()
2731 RecordDecl *RecordDecl::Create(const ASTContext &C, TagKind TK, DeclContext *DC, in Create()
2733 IdentifierInfo *Id, RecordDecl* PrevDecl) { in Create()
2734 RecordDecl* R = new (C) RecordDecl(Record, TK, DC, StartLoc, IdLoc, Id, in Create()
[all …]
DASTImporter.cpp108 bool ImportDefinition(RecordDecl *From, RecordDecl *To,
122 bool IsStructuralMatch(RecordDecl *FromRecord, RecordDecl *ToRecord,
133 Decl *VisitRecordDecl(RecordDecl *D);
824 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent()
877 RecordDecl *D1, RecordDecl *D2) { in IsStructurallyEquivalent()
977 RecordDecl::field_iterator Field2 = D2->field_begin(), in IsStructurallyEquivalent()
979 for (RecordDecl::field_iterator Field1 = D1->field_begin(), in IsStructurallyEquivalent()
1211 if (RecordDecl *Record1 = dyn_cast<RecordDecl>(D1)) { in Finish()
1212 if (RecordDecl *Record2 = dyn_cast<RecordDecl>(D2)) { in Finish()
1590 RecordDecl *ToDecl in VisitRecordType()
[all …]
DRecordLayoutBuilder.cpp669 void Layout(const RecordDecl *D);
673 void LayoutFields(const RecordDecl *D);
1577 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout()
1606 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) in InitializeLayout()
1628 void RecordLayoutBuilder::Layout(const RecordDecl *D) { in Layout()
1720 void RecordLayoutBuilder::LayoutFields(const RecordDecl *D) { in LayoutFields()
1726 for (RecordDecl::field_iterator Field = D->field_begin(), in LayoutFields()
2203 if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) { in FinishLayout()
2388 ASTContext::getASTRecordLayout(const RecordDecl *D) const { in getASTRecordLayout()
2395 getExternalSource()->CompleteType(const_cast<RecordDecl*>(D)); in getASTRecordLayout()
[all …]
DCXXInheritance.cpp383 RecordDecl *BaseRecord = in FindTagMember()
400 RecordDecl *BaseRecord = in FindOrdinaryMember()
419 RecordDecl *BaseRecord = in FindNestedNameSpecifierMember()
/external/clang/include/clang/AST/
DDecl.h2195 const RecordDecl *getParent() const { in getParent()
2196 return cast<RecordDecl>(getDeclContext()); in getParent()
2199 RecordDecl *getParent() { in getParent()
2200 return cast<RecordDecl>(getDeclContext()); in getParent()
2911 class RecordDecl : public TagDecl {
2934 RecordDecl(Kind DK, TagKind TK, DeclContext *DC,
2936 IdentifierInfo *Id, RecordDecl *PrevDecl);
2939 static RecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
2941 IdentifierInfo *Id, RecordDecl* PrevDecl = 0);
2942 static RecordDecl *CreateDeserialized(const ASTContext &C, unsigned ID);
[all …]
DASTContext.h71 class RecordDecl; variable
152 mutable llvm::DenseMap<const RecordDecl*, const ASTRecordLayout*>
234 mutable RecordDecl *CFConstantStringTypeDecl;
257 mutable RecordDecl *BlockDescriptorType;
263 mutable RecordDecl *BlockDescriptorExtendedType;
947 QualType getRecordType(const RecordDecl *Decl) const;
1505 const ASTRecordLayout &getASTRecordLayout(const RecordDecl *D) const;
1512 void DumpRecordLayout(const RecordDecl *RD, raw_ostream &OS,
2057 void getObjCEncodingForStructureImpl(RecordDecl *RD, std::string &S,
DRecordLayout.h24 class RecordDecl; variable
DDeclCXX.h272 class CXXRecordDecl : public RecordDecl {
676 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl());
679 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl());
683 return cast_or_null<CXXRecordDecl>(RecordDecl::getPreviousDecl());
686 return cast_or_null<CXXRecordDecl>(RecordDecl::getPreviousDecl());
690 return cast_or_null<CXXRecordDecl>(RecordDecl::getMostRecentDecl());
693 return cast_or_null<CXXRecordDecl>(RecordDecl::getMostRecentDecl());
/external/clang/include/clang/Frontend/
DLayoutOverrideSource.h50 layoutRecordType(const RecordDecl *Record,
/external/clang/lib/Frontend/
DLayoutOverrideSource.cpp155 LayoutOverrideSource::layoutRecordType(const RecordDecl *Record, in layoutRecordType()
172 for (RecordDecl::field_iterator F = Record->field_begin(), in layoutRecordType()
DASTConsumers.cpp205 const RecordDecl* RD = cast<RecordDecl>(DC); in PrintDeclContext()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp181 const CXXRecordDecl *RecordDecl = ObjectType->getAsCXXRecordDecl(); in VisitCXXDestructor() local
182 assert(RecordDecl && "Only CXXRecordDecls should have destructors"); in VisitCXXDestructor()
183 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/lib/Rewrite/Frontend/
DRewriteObjC.cpp80 RecordDecl *NSStringRecord;
88 RecordDecl *SuperStructDecl;
89 RecordDecl *ConstantStringDecl;
265 void RewriteRecordBody(RecordDecl *RD);
2396 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthMsgSendSuperFunctionDecl()
2443 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthMsgSendSuperStretFunctionDecl()
2580 SuperStructDecl = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in getSuperStructType()
2608 ConstantStringDecl = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in getConstantStringStructType()
3863 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthesizeBlockCall()
4607 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthBlockInitExpr()
[all …]

1234