shithub: loong

ref: a2ad59b340bf3339dbba105310002474b98d0184
dir: /sys/src/cmd/zc/reg/

View raw version
cgen.c:1126: 	p->as = ABGTZ;
lex.c:1290: 	a = va_arg(fp->args, int);
lex.c:1312: 	l = va_arg(fp->args, long);
lex.c:1345: 			if(fp->flags & ~(FmtWidth|FmtPrec))	/* BUG ROB - was f3 */
lex.c:1375: 	for(t = va_arg(fp->args, Type*); t != T; t = t->link) {
lex.c:1431: 	n = va_arg(fp->args, Node*);
lex.c:1446: 	for(b = va_arg(fp->args, long); b;) {
lex.c:1465: 	n = va_arg(fp->args, int);
list.c:23: 	bits = va_arg(fp->args, Bits);
list.c:48: 	p = va_arg(fp->args, Prog*);
list.c:49: 	a = p->as;
list.c:51: 		sprint(str, "	%A	%D/%d,%D", a, &p->from, p->reg, &p->to);
list.c:53: 	if(p->as == ATEXT)
list.c:54: 		sprint(str, "	%A	%D,%d,%D", a, &p->from, p->reg, &p->to);
list.c:56: 	if(p->reg == NREG)
list.c:57: 		sprint(str, "	%A	%D,%D", a, &p->from, &p->to);
list.c:59: 	if(p->from.type != D_FREG)
list.c:60: 		sprint(str, "	%A	%D,R%d,%D", a, &p->from, p->reg, &p->to);
list.c:62: 		sprint(str, "	%A	%D,F%d,%D", a, &p->from, p->reg, &p->to);
list.c:72: 	a = va_arg(fp->args, int);
list.c:85: 	a = va_arg(fp->args, Adr*);
list.c:155: 	a = va_arg(fp->args, char*);
list.c:203: 	a = va_arg(fp->args, Adr*);
mul.c:606: 	64750,	"b+f+d+p-",
peep.c:19: 		switch(p->as) {
peep.c:38: 			p = p->link;
peep.c:46: 		if(/*p->as == AMOVW ||*/ p->as == AMOVV || p->as == AMOVF || p->as == AMOVD)
peep.c:47: 		if(regtyp(&p->to)) {
peep.c:48: 			if(regtyp(&p->from))
peep.c:49: 			if(p->from.type == p->to.type) {
peep.c:59: 			if(regzer(&p->from))
peep.c:60: 			if(p->to.type == D_REG) {
peep.c:61: 				p->from.type = D_REG;
peep.c:62: 				p->from.reg = 0;
peep.c:81: 		switch(p->as) {
peep.c:90: 			if(p->to.type != D_REG)
peep.c:98: 		if(p1->as != p->as)
peep.c:100: 		if(p1->from.type != D_REG || p1->from.reg != p->to.reg)
peep.c:102: 		if(p1->to.type != D_REG || p1->to.reg != p->to.reg)
peep.c:114: 	p->as = ANOP;
peep.c:115: 	p->from = zprog.from;
peep.c:116: 	p->to = zprog.to;
peep.c:117: 	p->reg = zprog.reg; /**/
peep.c:203: 	v1 = &p->from;
peep.c:206: 	v2 = &p->to;
peep.c:213: 		switch(p->as) {
peep.c:255: 			if(p->to.type == v1->type)
peep.c:256: 			if(p->to.reg == v1->reg) {
peep.c:257: 				if(p->reg == NREG)
peep.c:258: 					p->reg = p->to.reg;
peep.c:267: 			if(p->to.type == v1->type)
peep.c:268: 			if(p->to.reg == v1->reg)
peep.c:272: 		if(copyau(&p->from, v2) ||
peep.c:274: 		   copyau(&p->to, v2))
peep.c:276: 		if(copysub(&p->from, v1, v2, 0) ||
peep.c:278: 		   copysub(&p->to, v1, v2, 0))
peep.c:284: 	copysub(&p->to, v1, v2, 1);
peep.c:287: 		if(p->from.type == v2->type)
peep.c:293: 		copysub(&p->from, v1, v2, 1);
peep.c:295: 		copysub(&p->to, v1, v2, 1);
peep.c:327: 	v1 = &p->from;
peep.c:328: 	v2 = &p->to;
peep.c:424: 	switch(p->as) {
peep.c:452: 			if(copysub(&p->from, v, s, 1))
peep.c:454: 			if(!copyas(&p->to, v))
peep.c:455: 				if(copysub(&p->to, v, s, 1))
peep.c:459: 		if(copyas(&p->to, v)) {
peep.c:460: 			if(copyau(&p->from, v))
peep.c:464: 		if(copyau(&p->from, v))
peep.c:466: 		if(copyau(&p->to, v))
peep.c:510: 			if(copysub(&p->from, v, s, 1))
peep.c:514: 			if(!copyas(&p->to, v))
peep.c:515: 				if(copysub(&p->to, v, s, 1))
peep.c:519: 		if(copyas(&p->to, v)) {
peep.c:520: 			if(p->reg == NREG)
peep.c:521: 				p->reg = p->to.reg;
peep.c:522: 			if(copyau(&p->from, v))
peep.c:528: 		if(copyau(&p->from, v))
peep.c:532: 		if(copyau(&p->to, v))
peep.c:552: 			if(copysub(&p->from, v, s, 1))
peep.c:556: 		if(copyau(&p->from, v))
peep.c:564: 			if(copysub(&p->to, v, s, 1))
peep.c:568: 		if(copyau(&p->to, v))
peep.c:592: 			if(copysub(&p->to, v, s, 1))
peep.c:596: 		if(copyau(&p->to, v))
peep.c:612: 	switch(p->as) {
peep.c:708: 		if(p->from.type == v->type || p->to.type == v->type)
peep.c:709: 		if(p->reg == v->reg) {
reg.c:71: 		lp->m = val;
reg.c:72: 		lp->c = 0;
reg.c:73: 		lp->p = R;
reg.c:78: 	for(; p != P; p = p->link) {
reg.c:79: 		switch(p->as) {
reg.c:102: 			lp->c--;
reg.c:103: 			if(lp->c <= 0) {
reg.c:104: 				lp->c = lp->m;
reg.c:105: 				if(lp->p != R)
reg.c:106: 					lp->p->log5 = r;
reg.c:107: 				lp->p = r;
reg.c:127: 		bit = mkvar(&p->from, p->as==AMOVW);
reg.c:134: 		bit = mkvar(&p->to, 0);
reg.c:136: 		switch(p->as) {
reg.c:138: 			diag(Z, "reg: unknown asop: %A", p->as);
reg.c:178: 		if(p->to.type == D_BRANCH) {
reg.c:179: 			val = p->to.offset - initpc;
reg.c:192: 				nearln = p->lineno;
reg.c:197: 				nearln = p->lineno;
reg.c:208: 		print("\n%L %D\n", p->lineno, &p->from);
reg.c:332: 			rgp->enter = r;
reg.c:333: 			rgp->varno = i;
reg.c:345: 			rgp->cost = change;
reg.c:364: 		bit = blsh(rgp->varno);
reg.c:365: 		vreg = paint2(rgp->enter, rgp->varno);
reg.c:368: 			if(rgp->regno >= NREG)
reg.c:370: 					rgp->enter->prog->lineno,
reg.c:371: 					rgp->cost,
reg.c:372: 					rgp->regno-NREG,
reg.c:376: 					rgp->enter->prog->lineno,
reg.c:377: 					rgp->cost,
reg.c:378: 					rgp->regno,
reg.c:381: 		if(rgp->regno != 0)
reg.c:382: 			paint3(rgp->enter, rgp->varno, vreg, rgp->regno);
reg.c:387: 	 * peep-hole on basic block
reg.c:404: 		for(; p != p1; p = p->link) {
reg.c:405: 			switch(p->as) {
reg.c:431: 		if(p->to.type == D_BRANCH)
reg.c:432: 			p->to.offset = r->s2->pc;
reg.c:441: 	for(p = firstr->prog; p != P; p = p->link){
reg.c:442: 		while(p->link && p->link->as == ANOP)
reg.c:443: 			p->link = p->link->link;
reg.c:493: 	p1->link = p->link;
reg.c:494: 	p->link = p1;
reg.c:495: 	p1->lineno = p->lineno;
reg.c:1052: 			addreg(&p->from, rn);
reg.c:1059: 			addreg(&p->to, rn);
sgen.c:9: 		p->to.type = D_REG;
sgen.c:10: 		p->to.reg = REGRET;
sgen.c:14: 		p->to.type = D_FREG;
sgen.c:15: 		p->to.reg = FREGRET;
swt.c:136: 			p->from.offset += nstring - NSNAME;
swt.c:137: 			p->reg = NSNAME;
swt.c:138: 			p->to.type = D_SCONST;
swt.c:139: 			memmove(p->to.sval, string, NSNAME);
swt.c:247: 		p->from.offset += o;
swt.c:248: 		p->reg = 4;
swt.c:253: 		p->from.offset += o + 4;
swt.c:254: 		p->reg = 4;
swt.c:258: 	p->from.offset += o;
swt.c:259: 	p->reg = w;
swt.c:260: 	if(p->to.type == D_OREG)
swt.c:261: 		p->to.type = D_CONST;
swt.c:274: 	bf[0] = p->as;
swt.c:275: 	bf[1] = p->reg;
swt.c:276: 	bf[2] = p->lineno;
swt.c:277: 	bf[3] = p->lineno>>8;
swt.c:278: 	bf[4] = p->lineno>>16;
swt.c:279: 	bf[5] = p->lineno>>24;
swt.c:280: 	bp = zaddr(bf+6, &p->from, sf);
swt.c:281: 	bp = zaddr(bp, &p->to, st);
swt.c:282: 	Bwrite(b, bf, bp-bf);
swt.c:294: 		for(p = firstp; p != P; p = p->link)
swt.c:295: 			if(p->as != ADATA && p->as != AGLOBL)
swt.c:297: 		for(p = firstp; p != P; p = p->link) {
swt.c:299: 			if(p->as != ADATA && p->as != AGLOBL)
swt.c:309: 	for(p = firstp; p != P; p = p->link) {
swt.c:312: 		s = p->from.sym;
swt.c:317: 			t = p->from.name;
swt.c:332: 		s = p->to.sym;
swt.c:337: 			t = p->to.name;
txt.c:123: 	p->as = AEND;
txt.c:133: 	p->lineno = nearln;
txt.c:140: 	lastp->link = p;
txt.c:435: 		p->reg = NREG;
txt.c:437: 		p->reg = a.reg;
txt.c:726: 				p->as = ATRUNCFW;
txt.c:736: 				p->as = ATRUNCFV;
txt.c:753: 				p->reg = FREGZERO;
txt.c:768: 				p->reg = FREGZERO;
txt.c:942: 	p->as = a;
txt.c:944: 		naddr(f, &p->from);
txt.c:946: 		naddr(t, &p->to);
txt.c:1112: 		naddr(f1, &p->from);
txt.c:1117: 		p->as = a;
txt.c:1121: 		p->as = AMOVW;
txt.c:1123: 			p->as = AMOVV;
txt.c:1127: 		p->from.type = a;
txt.c:1128: 		naddr(t, &p->to);
txt.c:1166: 			p->as = a;
txt.c:1167: 			naddr(f1, &p->from);
txt.c:1175: 			p->as = a;
txt.c:1209: 			naddr(f1, &p->from);
txt.c:1212: 			naddr(f2, &p->from);
txt.c:1215: 		naddr(&regnode, &p->to);
txt.c:1216: 		p->to.reg = tmpreg();
txt.c:1220: 		p->as = a;
txt.c:1225: 		naddr(&regnode, &p->from);
txt.c:1226: 		p->from.reg = tmpreg();
txt.c:1230: 		p->as = a;
txt.c:1238: 	p->as = a;
txt.c:1240: 		naddr(f1, &p->from);
txt.c:1243: 		p->reg = ta.reg;
txt.c:1245: 			p->reg = REGZERO;
txt.c:1248: 		naddr(t, &p->to);
txt.c:1288: 	p->as = a;
txt.c:1295: 	op->to.offset = pc;
txt.c:1296: 	op->to.type = D_BRANCH;
txt.c:1304: 	p->as = a;
txt.c:1305: 	p->from.type = D_OREG;
txt.c:1306: 	p->from.sym = s;
txt.c:1308: 		p->reg = (profileflg ? 0 : NOPROF);
txt.c:1309: 	p->from.name = D_EXTERN;
txt.c:1311: 		p->from.name = D_STATIC;
txt.c:1312: 	naddr(n, &p->to);