if(componentgen(N, nl))
return;
- gfatvardef(nl);
+ gvardef(nl);
c = w % 4; // bytes
q = w / 4; // quads
case APCDATA:
case AFUNCDATA:
- case AFATVARDEF:
+ case AVARDEF:
return 0;
}
}
[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.
AFUNCDATA,
APCDATA,
ACHECKNIL,
- AFATVARDEF,
+ AVARDEF,
AMRC, // MRC/MCR
if(debug['g'])
dump("\nclearfat", nl);
- gfatvardef(nl);
+ gvardef(nl);
w = nl->type->width;
// Avoid taking the address for simple enough types.
[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.
AFUNCDATA,
APCDATA,
ACHECKNIL,
- AFATVARDEF,
+ AVARDEF,
ALAST
};
if(componentgen(N, nl))
return;
- gfatvardef(nl);
+ gvardef(nl);
c = w % 4; // bytes
q = w / 4; // quads
[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.
AFUNCDATA,
APCDATA,
ACHECKNIL,
- AFATVARDEF,
+ AVARDEF,
ALAST
};
*/
Node dst;
- gfatvardef(res);
+ gvardef(res);
dst = *res;
dst.type = types[tptr];
dst.xoffset += widthptr;
if(n->list->next->next)
offs = n->list->next->next->n;
- gfatvardef(res);
+ gvardef(res);
// dst.len = hi [ - lo ]
dst = *res;
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*);
}
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;
}
}
frame(0);
// Remove leftover instrumentation from the instruction stream.
- removefatvardef(ptxt);
+ removevardef(ptxt);
ret:
lineno = lno;
}
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);
}
}
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);
}
}
{ AFUNCDATA, yfuncdata, Px, 0,0 },
{ APCDATA, ypcdata, Px, 0,0 },
{ ACHECKNIL },
- { AFATVARDEF },
+ { AVARDEF },
{ AEND },
0
{ AFUNCDATA, yfuncdata, Px, 0,0 },
{ APCDATA, ypcdata, Px, 0,0 },
{ ACHECKNIL },
- { AFATVARDEF },
+ { AVARDEF },
0
};