summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2023-03-22 11:43:42 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2023-03-22 11:43:46 +0100
commit5fee3da6ac3b4995f0d9a6cef3a5e916208cca59 (patch)
tree84befbce5a3a2422792aa32db54e474f9e724aae
parenteb9fcece9e622712a60ad306ae83f4ac4a2a3571 (diff)
downloadroux-5fee3da6ac3b4995f0d9a6cef3a5e916208cca59.tar.gz
rename blknew() to newblk()
This is consistent with newtmp()
and newcon().
-rw-r--r--all.h2
-rw-r--r--amd64/sysv.c2
-rw-r--r--arm64/abi.c2
-rw-r--r--cfg.c4
-rw-r--r--parse.c2
-rw-r--r--rega.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/all.h b/all.h
index 39fda2a..e71547b 100644
--- 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
index 48ac0a5..5b559c1 100644
--- 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
index 9a29e3f..65b4bab 100644
--- 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
index d12f6c8..406c307 100644
--- 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
index aed9427..649451f 100644
--- 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
index 7af7fae..8e601c9 100644
--- 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;