aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCamil Staps2021-01-07 18:55:06 +0100
committerCamil Staps2021-01-07 18:55:17 +0100
commit45aa0a9eaf7119b219e190f5a0d09ddd8bc6c598 (patch)
treed83300bda7e9cbc6df5a358dabac9d45a76072bd /Makefile
parentInitial commit: fib (eqI_b and ltI version); nfib (diff)
Centralize instruction implementations
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index fee742d..a37ac26 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ OPTLL:=$(addsuffix .opt.ll,$(BIN))
OBJ:=$(addsuffix .o,$(BIN))
ASM:=$(addsuffix .s,$(BIN))
BC:=$(addsuffix .bc,$(BIN))
+DEPS:=rts.ll
all: $(BIN)
@@ -18,11 +19,8 @@ $(ASM): %.s: %.bc
$(BC): %.bc: %.opt.ll
llvm-as-11 $^ -o $@
-$(OPTLL): %.opt.ll: %.ll
- opt-11 -S -always-inline $^ -o $@
- opt-11 -S -instcombine $@ -o $@
- opt-11 -S -O3 $@ -o $@
- opt-11 -S -O3 $@ -o $@
+$(OPTLL): %.opt.ll: $(DEPS) %.ll
+ cat $^ | opt-11 -S -O3 -o $@
clean:
$(RM) $(BIN) $(OBJ) $(ASM) $(BC)