commit 5fee3da6ac3b4995f0d9a6cef3a5e916208cca59
parent eb9fcece9e622712a60ad306ae83f4ac4a2a3571
Author: Quentin Carbonneaux <quentin@c9x.me>
Date: Wed, 22 Mar 2023 11:43:42 +0100
rename blknew() to newblk()
This is consistent with newtmp()
and newcon().
Diffstat:
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/all.h b/all.h
@@ -511,7 +511,7 @@ void err(char *, ...) __attribute__((noreturn));
void elimsb(Fn *);
/* cfg.c */
-Blk *blknew(void);
+Blk *newblk(void);
void edgedel(Blk *, Blk **);
void fillpreds(Fn *);
void fillrpo(Fn *);
diff --git a/amd64/sysv.c b/amd64/sysv.c
@@ -507,7 +507,7 @@ split(Fn *fn, Blk *b)
Blk *bn;
++fn->nblk;
- bn = blknew();
+ bn = newblk();
bn->nins = &insb[NIns] - curi;
idup(&bn->ins, curi, bn->nins);
curi = &insb[NIns];
diff --git a/arm64/abi.c b/arm64/abi.c
@@ -542,7 +542,7 @@ split(Fn *fn, Blk *b)
Blk *bn;
++fn->nblk;
- bn = blknew();
+ bn = newblk();
bn->nins = &insb[NIns] - curi;
idup(&bn->ins, curi, bn->nins);
curi = &insb[NIns];
diff --git a/cfg.c b/cfg.c
@@ -1,7 +1,7 @@
#include "all.h"
Blk *
-blknew()
+newblk()
{
static Blk z;
Blk *b;
@@ -299,7 +299,7 @@ simpljmp(Fn *fn)
Blk **uf; /* union-find */
Blk **p, *b, *ret;
- ret = blknew();
+ ret = newblk();
ret->id = fn->nblk++;
ret->jmp.type = Jret0;
uf = emalloc(fn->nblk * sizeof uf[0]);
diff --git a/parse.c b/parse.c
@@ -555,7 +555,7 @@ findblk(char *name)
for (b=blkh[h]; b; b=b->dlink)
if (strcmp(b->name, name) == 0)
return b;
- b = blknew();
+ b = newblk();
b->id = nblk++;
strcpy(b->name, name);
b->dlink = blkh[h];
diff --git a/rega.c b/rega.c
@@ -665,7 +665,7 @@ rega(Fn *fn)
pmgen();
if (curi == &insb[NIns])
continue;
- b1 = blknew();
+ b1 = newblk();
b1->loop = (b->loop+s->loop) / 2;
b1->link = blist;
blist = b1;