Skip to content
Snippets Groups Projects
Commit 2eafc343 authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Switched to LLVM 3.4

parent 2a894918
No related branches found
No related tags found
No related merge requests found
......@@ -6,20 +6,20 @@ BFILES := $(patsubst %.b,%,$(wildcard *.b))
.PRECIOUS: $(addsuffix .ll,$(BFILES)) $(addsuffix -opt.ll,$(BFILES))
bf: bf.ml
ocamlopt -o $@ -g -I /usr/lib/ocaml/llvm-3.5 llvm.cmxa $<
ocamlopt -o $@ -g -I /usr/lib/ocaml/llvm-3.4 llvm.cmxa $<
rm -f $@.cmi $@.cmx $@.o
%: %.o
$(LD) -o $@ $< $(LDFLAGS)
%.o: %.ll
llc-3.5 -filetype obj -o $@ $<
llc -filetype obj -o $@ $<
%.ll: %.bc
llvm-dis-3.5 -o $@ $<
llvm-dis -o $@ $<
%-opt.ll: %.ll
opt-3.5 -O3 -S -o $@ $<
opt -O3 -S -o $@ $<
%.ll: %.b bf
./bf < $< > $@
......
#!/usr/bin/env bash
set -e
make -s bf
./bf | opt-3.5 -O3 -o prog.bc
./bf | opt -O3 -o prog.bc
make -s prog
./prog
rm -f prog{,.bc,.o}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment