-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (29 loc) · 897 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
LLC=/g/g90/winter25/bgclang/stage1/bin/llc
TARGET=lib/libdslash_llvm.a
DSLASH_LIST = \
lib/func_dslash_____0.ll \
lib/func_gather_M_3_0.ll \
lib/func_gather_P_3_0.ll \
lib/func_gather_M_2_0.ll \
lib/func_gather_P_2_0.ll \
lib/func_gather_M_1_0.ll \
lib/func_gather_P_1_0.ll \
lib/func_gather_M_0_0.ll \
lib/func_gather_P_0_0.ll \
lib/func_dslash_____1.ll \
lib/func_gather_M_3_1.ll \
lib/func_gather_P_3_1.ll \
lib/func_gather_M_2_1.ll \
lib/func_gather_P_2_1.ll \
lib/func_gather_M_1_1.ll \
lib/func_gather_P_1_1.ll \
lib/func_gather_M_0_1.ll \
lib/func_gather_P_0_1.ll
DSLASH_OBJS = $(subst .ll,.o,$(DSLASH_LIST))
all: $(TARGET)
%.o: %.ll
$(LLC) -filetype=obj -march=ppc64 -mcpu=a2q -mattr=+qpx -fp-contract=fast $<
clean:
rm -rf $(TARGET) $(DSLASH_OBJS)
lib/libdslash_llvm.a: $(DSLASH_OBJS)
ar -rcs $@ $^