mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
df6573f9e8
llvm-svn: 407
43 lines
915 B
Makefile
43 lines
915 B
Makefile
LLVM := /home/vadve/vadve/Research/DynOpt/LLVM/llvm
|
|
LLC := $(LLVM)/tools/llc/llc
|
|
AS := $(LLVM)/tools/as/as
|
|
LLCOPTS := -dsched t
|
|
|
|
TESTS := $(wildcard *.ll)
|
|
|
|
LLCTESTS := $(shell /bin/ls *.ll | grep -v testmemory | grep -v testswitch | grep -v sumarray)
|
|
|
|
|
|
test all : testasmdis testopt testcodegen
|
|
@echo "All tests successfully completed!"
|
|
|
|
testasmdis : $(TESTS:%.ll=%.ll.asmdis)
|
|
@echo "All assembler/disassembler test succeeded!"
|
|
|
|
testopt : $(TESTS:%.ll=%.ll.opt)
|
|
|
|
testselect : $(LLCTESTS:%.ll=%.mc)
|
|
|
|
testsched : $(LLCTESTS:%.ll=%.mc)
|
|
|
|
testcodegen : $(LLCTESTS:%.ll=%.mc)
|
|
|
|
clean :
|
|
rm -f *.[123] *.bc *.mc core
|
|
|
|
%.asmdis: %
|
|
@echo "Running assembler/disassembler test on $<"
|
|
@./TestAsmDisasm.sh $<
|
|
|
|
%.opt: %
|
|
@echo "Running optimizier test on $<"
|
|
@./TestOptimizer.sh $<
|
|
|
|
%.bc: %.ll $(AS)
|
|
rm -f $@
|
|
$(AS) $<
|
|
|
|
%.mc: %.bc $(LLC)
|
|
@echo "Generating machine instructions for $<"
|
|
$(LLC) $(LLCOPTS) $< > $@
|