]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: rename AFATVARDEF to AVARDEF
authorRuss Cox <rsc@golang.org>
Fri, 14 Feb 2014 03:17:22 +0000 (22:17 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 14 Feb 2014 03:17:22 +0000 (22:17 -0500)
The "fat" referred to being used for multiword values only.
We're going to use it for non-fat values sometimes too.

No change other than the renaming.

TBR=iant
CC=golang-codereviews
https://golang.org/cl/63650043

16 files changed:
src/cmd/5g/ggen.c
src/cmd/5g/peep.c
src/cmd/5g/prog.c
src/cmd/5l/5.out.h
src/cmd/6g/ggen.c
src/cmd/6g/prog.c
src/cmd/6l/6.out.h
src/cmd/8g/ggen.c
src/cmd/8g/prog.c
src/cmd/8l/8.out.h
src/cmd/gc/gen.c
src/cmd/gc/go.h
src/cmd/gc/pgen.c
src/cmd/gc/plive.c
src/liblink/asm6.c
src/liblink/asm8.c

index 9073841b4138094e1b2c6b0e6bb9281ddd1d42a2..16aef3d1a582ba940afca8688463ff4a79bcc9bd 100644 (file)
@@ -772,7 +772,7 @@ clearfat(Node *nl)
        if(componentgen(N, nl))
                return;
 
-       gfatvardef(nl);
+       gvardef(nl);
 
        c = w % 4;      // bytes
        q = w / 4;      // quads
index 0c95abe302e74ca74dab8b67c4c7bccca4f49adf..8bf97c963ca388af52fbbbef51e2484db0e96bb6 100644 (file)
@@ -1164,7 +1164,7 @@ copyu(Prog *p, Adr *v, Adr *s)
 
        case APCDATA:
        case AFUNCDATA:
-       case AFATVARDEF:
+       case AVARDEF:
                return 0;
        }
 }
index 3e42721365ee0db7c350d0dc819e08d4e10bacda..ffef5a5b2a82dc68d0979af25f224de784076cc1 100644 (file)
@@ -29,7 +29,7 @@ static ProgInfo progtable[ALAST] = {
        [AUNDEF]=       {Break},
        [AUSEFIELD]=    {OK},
        [ACHECKNIL]=    {LeftRead},
-       [AFATVARDEF]=   {Pseudo | RightWrite},
+       [AVARDEF]=      {Pseudo | RightWrite},
 
        // NOP is an internal no-op that also stands
        // for USED and SET annotations, not the Intel opcode.
index 16348a457e14032f02daa228619a2c1f1ba7e953..adeb29a05b9e1749c9c4e7f6b222bb9dca0b76c6 100644 (file)
@@ -198,7 +198,7 @@ enum        as
        AFUNCDATA,
        APCDATA,
        ACHECKNIL,
-       AFATVARDEF,
+       AVARDEF,
 
        AMRC, // MRC/MCR
 
index 62c58d4ea05361e11150d20672e6425871c7d95c..7d01900225bd7b0bc410841f5369c77b262e2432 100644 (file)
@@ -1023,7 +1023,7 @@ clearfat(Node *nl)
        if(debug['g'])
                dump("\nclearfat", nl);
 
-       gfatvardef(nl);
+       gvardef(nl);
 
        w = nl->type->width;
        // Avoid taking the address for simple enough types.
index 71f44a3e20f50945d0a9abebb99f645bbe3a3f8f..76c9be14fc120e61e9ced78d8db6af7c59f02f0d 100644 (file)
@@ -41,7 +41,7 @@ static ProgInfo progtable[ALAST] = {
        [AUNDEF]=       {Break},
        [AUSEFIELD]=    {OK},
        [ACHECKNIL]=    {LeftRead},
-       [AFATVARDEF]=   {Pseudo | RightWrite},
+       [AVARDEF]=      {Pseudo | RightWrite},
 
        // NOP is an internal no-op that also stands
        // for USED and SET annotations, not the Intel opcode.
index f5ade5a34aa37329e7a7d827dcba5041d702c98b..f84fef72206dc3f0656ad613ce02fb2b01c3d169 100644 (file)
@@ -762,7 +762,7 @@ enum        as
        AFUNCDATA,
        APCDATA,
        ACHECKNIL,
-       AFATVARDEF,
+       AVARDEF,
        
        ALAST
 };
index c6dbe16f03e61aecbbe62b148fe54ed64c2b6cdc..c0d25013feb321422c44dfc58f7ded0a5b352a3c 100644 (file)
@@ -78,7 +78,7 @@ clearfat(Node *nl)
        if(componentgen(N, nl))
                return;
 
-       gfatvardef(nl);
+       gvardef(nl);
 
        c = w % 4;      // bytes
        q = w / 4;      // quads
index 0162b02881c3870d3160de2a04c272a24abcaf34..a39c37f8e1083522c2532fa07bace525bc1b1a61 100644 (file)
@@ -41,7 +41,7 @@ static ProgInfo progtable[ALAST] = {
        [AUNDEF]=       {Break},
        [AUSEFIELD]=    {OK},
        [ACHECKNIL]=    {LeftRead},
-       [AFATVARDEF]=   {Pseudo | RightWrite},
+       [AVARDEF]=      {Pseudo | RightWrite},
 
        // NOP is an internal no-op that also stands
        // for USED and SET annotations, not the Intel opcode.
index 748096db106d6f41f639714067cc10963840b11d..d2598660add003463d26353018725ddb181e3a21 100644 (file)
@@ -579,7 +579,7 @@ enum        as
        AFUNCDATA,
        APCDATA,
        ACHECKNIL,
-       AFATVARDEF,
+       AVARDEF,
        
        ALAST
 };
index 21a184944457e75bbc4670f9a866b6144ca3b581..e6b22a3c5ec72bb00f2a1be33f6b1e67aa78a51b 100644 (file)
@@ -768,7 +768,7 @@ cgen_eface(Node *n, Node *res)
         */
        Node dst;
 
-       gfatvardef(res);
+       gvardef(res);
        dst = *res;
        dst.type = types[tptr];
        dst.xoffset += widthptr;
@@ -797,7 +797,7 @@ cgen_slice(Node *n, Node *res)
        if(n->list->next->next)
                offs = n->list->next->next->n;
 
-       gfatvardef(res);
+       gvardef(res);
 
        // dst.len = hi [ - lo ]
        dst = *res;
index b95173a5d0a84077bd6e6d1fde63592d231c31ce..049809e61a96194cc5348a48e592ee439572102e 100644 (file)
@@ -1494,7 +1494,7 @@ void      gdatacomplex(Node*, Mpcplx*);
 void   gdatastring(Node*, Strlit*);
 void   ggloblnod(Node *nam);
 void   ggloblsym(Sym *s, int32 width, int dupok, int rodata);
-void   gfatvardef(Node*);
+void   gvardef(Node*);
 Prog*  gjmp(Prog*);
 void   gused(Node*);
 void   movelarge(NodeList*);
index eb689eb344ba06d6901232f8bfc46b225bcaf88b..8190fc36ff292d0b15f26f8f4942ded487d6d59a 100644 (file)
@@ -32,28 +32,28 @@ makefuncdatasym(char *namefmt, int64 funcdatakind)
 }
 
 void
-gfatvardef(Node *n)
+gvardef(Node *n)
 {
        if(n == N || !isfat(n->type))
-               fatal("gfatvardef: node is not fat");
+               fatal("gvardef: node is not fat");
        switch(n->class) {
        case PAUTO:
        case PPARAM:
        case PPARAMOUT:
-               gins(AFATVARDEF, N, n);
+               gins(AVARDEF, N, n);
        }
 }
 
 static void
-removefatvardef(Prog *firstp)
+removevardef(Prog *firstp)
 {
        Prog *p;
 
        for(p = firstp; p != P; p = p->link) {
-               while(p->link != P && p->link->as == AFATVARDEF)
+               while(p->link != P && p->link->as == AVARDEF)
                        p->link = p->link->link;
                if(p->to.type == D_BRANCH)
-                       while(p->to.u.branch != P && p->to.u.branch->as == AFATVARDEF)
+                       while(p->to.u.branch != P && p->to.u.branch->as == AVARDEF)
                                p->to.u.branch = p->to.u.branch->link;
        }
 }
@@ -249,7 +249,7 @@ compile(Node *fn)
                frame(0);
 
        // Remove leftover instrumentation from the instruction stream.
-       removefatvardef(ptxt);
+       removevardef(ptxt);
 ret:
        lineno = lno;
 }
index bd146108641683f1fb93ced13e1e3ab60223c47e..108f89399f67f147db9702dd0f1d302fd24c33da 100644 (file)
@@ -710,7 +710,7 @@ progeffects(Prog *prog, Array *vars, Bvec *uevar, Bvec *varkill, Bvec *avarinit)
                                        if(info.flags & (LeftRead | LeftAddr))
                                                bvset(uevar, pos);
                                        if(info.flags & LeftWrite)
-                                               if(from->node != nil && (!isfat(from->node->type) || prog->as == AFATVARDEF))
+                                               if(from->node != nil && (!isfat(from->node->type) || prog->as == AVARDEF))
                                                        bvset(varkill, pos);
                                }
                        }
@@ -736,7 +736,7 @@ Next:
                                        if(info.flags & (RightRead | RightAddr))
                                                bvset(uevar, pos);
                                        if(info.flags & RightWrite)
-                                               if(to->node != nil && (!isfat(to->node->type) || prog->as == AFATVARDEF))
+                                               if(to->node != nil && (!isfat(to->node->type) || prog->as == AVARDEF))
                                                        bvset(varkill, pos);
                                }
                        }
index 25f9edfa9f5f5accb1c45564aa0ec6a79b74dad0..0d56307af4be974fa9e4e34aa5f3d62bed206495 100644 (file)
@@ -1518,7 +1518,7 @@ Optab optab[] =
        { AFUNCDATA,    yfuncdata,      Px, 0,0 },
        { APCDATA,      ypcdata,        Px, 0,0 },
        { ACHECKNIL },
-       { AFATVARDEF },
+       { AVARDEF },
 
        { AEND },
        0
index d2e50c11c14f03d4174d63f965adb29d83d8fe2e..f16faa0480258d5bc3d425200d770a9d9c01ef26 100644 (file)
@@ -1146,7 +1146,7 @@ static Optab optab[] =
        { AFUNCDATA,    yfuncdata,      Px, 0,0 },
        { APCDATA,      ypcdata,        Px, 0,0 },
        { ACHECKNIL },
-       { AFATVARDEF },
+       { AVARDEF },
 
        0
 };