From 45aa0a9eaf7119b219e190f5a0d09ddd8bc6c598 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 7 Jan 2021 18:55:06 +0100 Subject: Centralize instruction implementations --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3