Lines Matching refs:Ivars
384 SmallVectorImpl<ObjCIvarDecl *> &IVars);
951 assert(IMD && OID && "Synthesized ivars must be attached to @implementation");
3832 SmallVector<const ObjCIvarDecl *, 8> IVars;
3835 IVars.push_back(IVD);
3837 for (unsigned i = 0, e = IVars.size(); i < e; i++)
3838 if (IVars[i]->isBitField()) {
3839 IvarGroupNumber[IVars[i++]] = ++GroupNo;
3840 while (i < e && IVars[i]->isBitField())
3841 IvarGroupNumber[IVars[i++]] = GroupNo;
3852 SmallVectorImpl<ObjCIvarDecl *> &IVars) {
3859 for (unsigned i=0, e = IVars.size(); i < e; i++) {
3860 ObjCIvarDecl *Ivar = IVars[i];
3878 SmallVector<ObjCIvarDecl *, 8> IVars;
3882 IVars.push_back(const_cast<ObjCIvarDecl *>(IVD));
3884 if (!IVars.empty()) {
3885 unsigned GroupNo = ObjCIvarBitfieldGroupNo(IVars[0]);
3886 // Generate the struct type for this group of bitfield ivars.
3888 SynthesizeBitfieldGroupStructType(IVars[0], IVars);
3889 IVars.clear();
3893 if (!IVars.empty()) {
3895 unsigned GroupNo = ObjCIvarBitfieldGroupNo(IVars[0]);
3897 SynthesizeBitfieldGroupStructType(IVars[0], IVars);
3947 /// an objective-c class with ivars.
3954 SmallVector<ObjCIvarDecl *, 8> IVars;
3957 IVars.push_back(IVD);
3965 // If no ivars and no root or if its root, directly or indirectly,
3966 // have no ivars (thus not synthesized) then no need to synthesize this class.
3967 if ((!CDecl->isThisDeclarationADefinition() || IVars.size() == 0) &&
3977 for (unsigned i = 0, e = IVars.size(); i < e; i++)
3978 RewriteLocallyDefinedNamedAggregates(IVars[i], Result);
3982 for (unsigned i = 0, e = IVars.size(); i < e; i++)
3983 if (IVars[i]->isBitField()) {
3984 ObjCIvarDecl *IV = IVars[i];
3989 SKIP_BITFIELDS(i , e, IVars);
4002 for (unsigned i = 0, e = IVars.size(); i < e; i++) {
4003 if (IVars[i]->isBitField()) {
4004 ObjCIvarDecl *IV = IVars[i];
4009 SKIP_BITFIELDS(i , e, IVars);
4012 RewriteObjCFieldDecl(IVars[i], Result);
4023 /// RewriteIvarOffsetSymbols - Rewrite ivar offset symbols of those ivars which
4029 llvm::SmallPtrSet<ObjCIvarDecl *, 8> Ivars = ReferencedIvars[CDecl];
4030 if (Ivars.empty())
4034 for (ObjCIvarDecl *IvarDecl : Ivars) {
5945 // private ivars.
6232 /// const struct _ivar_list_t *ivars;
6317 Result += "\tconst struct _ivar_list_t *ivars;\n";
6501 ArrayRef<ObjCIvarDecl *>ivars,
6541 if (!metaclass && ivars.size() > 0) {
6813 ArrayRef<ObjCIvarDecl *> Ivars,
6827 for (unsigned i =0, e = Ivars.size(); i < e; i++) {
6828 ObjCIvarDecl *IvarDecl = Ivars[i];
6838 if (Ivars[i]->isBitField())
6846 if (Ivars[i]->isBitField()) {
6848 SKIP_BITFIELDS(i , e, Ivars);
6860 SmallVector<ObjCIvarDecl *, 8> Ivars;
6861 // strip off all but the first ivar bitfield from each group of ivars.
6862 // Such ivars in the ivar list table will be replaced by their grouping struct
6866 Ivars.push_back(OriginalIvars[i]);
6871 Ivars.push_back(OriginalIvars[i]);
6875 Write__ivar_list_t_TypeDecl(Result, Ivars.size());
6880 Result += "\t"; Result += utostr(Ivars.size()); Result += ",\n";
6881 for (unsigned i =0, e = Ivars.size(); i < e; i++) {
6882 ObjCIvarDecl *IvarDecl = Ivars[i];
6888 if (Ivars[i]->isBitField())
6895 if (Ivars[i]->isBitField())
6896 RewriteObj.ObjCIvarBitfieldGroupDecl(Ivars[i], Result);
7145 SmallVector<ObjCIvarDecl *, 8> IVars;
7152 IVars.push_back(IVD);
7155 Write__ivar_list_t_initializer(*this, Context, Result, IVars,
7276 IVars,