Lines Matching refs:ivars
378 SmallVectorImpl<ObjCIvarDecl *> &IVars);
942 assert(IMD && OID && "Synthesized ivars must be attached to @implementation");
3933 SmallVector<const ObjCIvarDecl *, 8> IVars;
3936 IVars.push_back(IVD);
3938 for (unsigned i = 0, e = IVars.size(); i < e; i++)
3939 if (IVars[i]->isBitField()) {
3940 IvarGroupNumber[IVars[i++]] = ++GroupNo;
3941 while (i < e && IVars[i]->isBitField())
3942 IvarGroupNumber[IVars[i++]] = GroupNo;
3953 SmallVectorImpl<ObjCIvarDecl *> &IVars) {
3960 for (unsigned i=0, e = IVars.size(); i < e; i++) {
3961 ObjCIvarDecl *Ivar = IVars[i];
3979 SmallVector<ObjCIvarDecl *, 8> IVars;
3983 IVars.push_back(const_cast<ObjCIvarDecl *>(IVD));
3985 if (!IVars.empty()) {
3986 unsigned GroupNo = ObjCIvarBitfieldGroupNo(IVars[0]);
3987 // Generate the struct type for this group of bitfield ivars.
3989 SynthesizeBitfieldGroupStructType(IVars[0], IVars);
3990 IVars.clear();
3994 if (!IVars.empty()) {
3996 unsigned GroupNo = ObjCIvarBitfieldGroupNo(IVars[0]);
3998 SynthesizeBitfieldGroupStructType(IVars[0], IVars);
4048 /// an objective-c class with ivars.
4055 SmallVector<ObjCIvarDecl *, 8> IVars;
4058 IVars.push_back(IVD);
4066 // If no ivars and no root or if its root, directly or indirectly,
4067 // have no ivars (thus not synthesized) then no need to synthesize this class.
4068 if ((!CDecl->isThisDeclarationADefinition() || IVars.size() == 0) &&
4078 for (unsigned i = 0, e = IVars.size(); i < e; i++)
4079 RewriteLocallyDefinedNamedAggregates(IVars[i], Result);
4083 for (unsigned i = 0, e = IVars.size(); i < e; i++)
4084 if (IVars[i]->isBitField()) {
4085 ObjCIvarDecl *IV = IVars[i];
4090 SKIP_BITFIELDS(i , e, IVars);
4103 for (unsigned i = 0, e = IVars.size(); i < e; i++) {
4104 if (IVars[i]->isBitField()) {
4105 ObjCIvarDecl *IV = IVars[i];
4110 SKIP_BITFIELDS(i , e, IVars);
4113 RewriteObjCFieldDecl(IVars[i], Result);
4124 /// RewriteIvarOffsetSymbols - Rewrite ivar offset symbols of those ivars which
4130 llvm::SmallPtrSet<ObjCIvarDecl *, 8> Ivars = ReferencedIvars[CDecl];
4131 if (Ivars.empty())
4135 for (llvm::SmallPtrSet<ObjCIvarDecl *, 8>::iterator i = Ivars.begin(),
4136 e = Ivars.end(); i != e; i++) {
6064 // private ivars.
6342 /// const struct _ivar_list_t *ivars;
6427 Result += "\tconst struct _ivar_list_t *ivars;\n";
6611 ArrayRef<ObjCIvarDecl *>ivars,
6651 if (!metaclass && ivars.size() > 0) {
6923 ArrayRef<ObjCIvarDecl *> Ivars,
6937 for (unsigned i =0, e = Ivars.size(); i < e; i++) {
6938 ObjCIvarDecl *IvarDecl = Ivars[i];
6948 if (Ivars[i]->isBitField())
6956 if (Ivars[i]->isBitField()) {
6958 SKIP_BITFIELDS(i , e, Ivars);
6970 SmallVector<ObjCIvarDecl *, 8> Ivars;
6971 // strip off all but the first ivar bitfield from each group of ivars.
6972 // Such ivars in the ivar list table will be replaced by their grouping struct
6976 Ivars.push_back(OriginalIvars[i]);
6981 Ivars.push_back(OriginalIvars[i]);
6985 Write__ivar_list_t_TypeDecl(Result, Ivars.size());
6990 Result += "\t"; Result += utostr(Ivars.size()); Result += ",\n";
6991 for (unsigned i =0, e = Ivars.size(); i < e; i++) {
6992 ObjCIvarDecl *IvarDecl = Ivars[i];
6998 if (Ivars[i]->isBitField())
7005 if (Ivars[i]->isBitField())
7006 RewriteObj.ObjCIvarBitfieldGroupDecl(Ivars[i], Result);
7270 SmallVector<ObjCIvarDecl *, 8> IVars;
7277 IVars.push_back(IVD);
7280 Write__ivar_list_t_initializer(*this, Context, Result, IVars,
7410 IVars,