1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2025-04-21 12:27:27 +03:00

b2/: simplified and corrected logic behind relop_redundant

We now generate the operator map algorithmically, which is a bit less
classy than solving the logical equations, but easier to get right.

Also renamed the somewhat vague "redundant" to "unreachable".
This commit is contained in:
Werner Almesberger
2012-06-01 10:17:19 -03:00
parent d29e8a7aea
commit 9cafe23fb8
6 changed files with 96 additions and 45 deletions

View File

@@ -79,11 +79,17 @@ y.tab.o: y.tab.c
$(CC) -c $(CFLAGS) $*.c -o $*.o
$(call MKDEP, $*)
relop.o: unreachable.inc
unreachable.inc: genredmap.pl
$(GEN) ./$< 0 >$@ || { rm -f $@; exit 1; }
-include $(OBJS:.o=.d)
clean:
rm -f $(OBJS) $(OBJS:.o=.d)
rm -f lex.yy.c y.tab.c y.tab.h y.output
rm -f redmap.inc
spotless: clean
rm -f boom