diff options
author | Camil Staps | 2021-01-07 18:55:06 +0100 |
---|---|---|
committer | Camil Staps | 2021-01-07 18:55:17 +0100 |
commit | 45aa0a9eaf7119b219e190f5a0d09ddd8bc6c598 (patch) | |
tree | d83300bda7e9cbc6df5a358dabac9d45a76072bd /Makefile | |
parent | Initial commit: fib (eqI_b and ltI version); nfib (diff) |
Centralize instruction implementations
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) |