@@ -29,7 +29,7 @@ fi
../minic/minic < $file > /tmp/minic.ssa &&
-../lisc/lisc < /tmp/minic.ssa > /tmp/minic.s &&
+../src/qbe < /tmp/minic.ssa > /tmp/minic.s &&
cc $flags /tmp/minic.s
if test $? -ne 0
@@ -1,4 +1,4 @@
-lisc
+qbe
doc
.comfile
*.o
-BIN = lisc
+BIN = qbe
OBJ = main.o util.o parse.o mem.o ssa.o copy.o live.o isel.o spill.o rega.o emit.o
CFLAGS = -Wall -Wextra -std=c99 -g -pedantic
@@ -6,7 +6,7 @@ CFLAGS = -Wall -Wextra -std=c99 -g -pedantic
$(BIN): $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) -o $@
-$(OBJ): lisc.h
+$(OBJ): all.h
.PHONY: clean check syndoc
clean:
-#include "lisc.h"
+#include "all.h"
typedef struct RList RList;
struct RList {
enum {
SLong = 0,
#include <limits.h>
/* For x86_64, do the following:
void
liveon(BSet *v, Blk *b, Blk *s)
#include <ctype.h>
#include <getopt.h>
/* Memory optimization:
*
#include <stdarg.h>
@@ -1,4 +1,5 @@
+
#ifdef TEST_PMOV
#undef assert
#define assert(x) assert_test(#x, x)
static void
loopmark(Blk *hd, Blk *b, Phi *p)
@@ -41,7 +41,7 @@ once() {
echo "$T... "
- if ! ./lisc $T -o $ASM
+ if ! ./qbe $T -o $ASM
then
echo "[qbe fail]"
return 1
@@ -1,7 +1,7 @@
#!/bin/sh
OCAMLC=/usr/bin/ocamlc
-QBE=`pwd`/lisc
+QBE=`pwd`/qbe
failure() {
echo "Failure at stage:" $1 >&2
@@ -4,8 +4,8 @@ for t in test/*
do
printf "Test $t ... "
- ./lisc $t >/tmp/out.0 2>&1
- ./lisc.1 $t >/tmp/out.1 2>&1
+ ./qbe $t >/tmp/out.0 2>&1
+ ./qbe.1 $t >/tmp/out.1 2>&1
if diff /tmp/out.0 /tmp/out.1 > /dev/null
typedef struct Bitset Bitset;
typedef struct Vec Vec;