1 RISCV_BUILTINS_H = $(srcdir)/config/riscv/riscv-vector-builtins.h \
2 $(srcdir)/config/riscv/riscv-vector-builtins.def \
3 $(srcdir)/config/riscv/riscv-vector-builtins-functions.def \
4 $(srcdir)/config/riscv/thead-vector-builtins-functions.def \
5 $(srcdir)/config/riscv/sifive-vector-builtins-functions.def \
6 riscv-vector-type-indexer.gen.def
8 riscv-builtins.o: $(srcdir)/config/riscv/riscv-builtins.cc $(CONFIG_H) \
9 $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) $(RECOG_H) langhooks.h \
10 $(DIAGNOSTIC_CORE_H) $(OPTABS_H) $(RISCV_BUILTINS_H) \
11 $(srcdir)/config/riscv/riscv-ftypes.def \
12 $(srcdir)/config/riscv/riscv-vector-builtins-types.def \
13 $(srcdir)/config/riscv/sifive-vector-builtins-functions.def \
14 $(srcdir)/config/riscv/riscv-modes.def \
15 $(srcdir)/config/riscv/riscv-cmo.def \
16 $(srcdir)/config/riscv/riscv-scalar-crypto.def
17 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
18 $(srcdir)/config/riscv/riscv-builtins.cc
20 riscv-vector-builtins.o: $(srcdir)/config/riscv/riscv-vector-builtins.cc \
21 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(TM_P_H) \
22 memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) $(DIAGNOSTIC_H) $(EXPR_H) \
23 $(FUNCTION_H) fold-const.h gimplify.h explow.h stor-layout.h $(REGS_H) \
24 alias.h langhooks.h attribs.h stringpool.h emit-rtl.h basic-block.h \
25 gimple.h gimple-iterator.h \
26 $(srcdir)/config/riscv/riscv-vector-builtins-shapes.h \
27 $(srcdir)/config/riscv/riscv-vector-builtins-bases.h \
28 $(srcdir)/config/riscv/sifive-vector-builtins-bases.h \
29 $(srcdir)/config/riscv/riscv-vector-builtins-types.def \
30 $(srcdir)/config/riscv/sifive-vector-builtins-functions.def \
32 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
33 $(srcdir)/config/riscv/riscv-vector-builtins.cc
35 riscv-vector-builtins-shapes.o: \
36 $(srcdir)/config/riscv/riscv-vector-builtins-shapes.cc \
37 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
38 $(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) \
39 $(srcdir)/config/riscv/riscv-vector-builtins-shapes.h \
40 $(srcdir)/config/riscv/riscv-vector-builtins-bases.h \
41 $(srcdir)/config/riscv/sifive-vector-builtins-bases.h \
43 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
44 $(srcdir)/config/riscv/riscv-vector-builtins-shapes.cc
46 riscv-vector-builtins-bases.o: \
47 $(srcdir)/config/riscv/riscv-vector-builtins-bases.cc \
48 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
49 $(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \
50 $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \
51 gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \
52 rtx-vector-builder.h \
53 $(srcdir)/config/riscv/riscv-vector-builtins-shapes.h \
54 $(srcdir)/config/riscv/riscv-vector-builtins-bases.h \
56 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
57 $(srcdir)/config/riscv/riscv-vector-builtins-bases.cc
59 sifive-vector-builtins-bases.o: \
60 $(srcdir)/config/riscv/sifive-vector-builtins-bases.cc \
61 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
62 $(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \
63 $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \
64 gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \
65 rtx-vector-builder.h \
66 $(srcdir)/config/riscv/riscv-vector-builtins-shapes.h \
67 $(srcdir)/config/riscv/sifive-vector-builtins-bases.h \
69 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
70 $(srcdir)/config/riscv/sifive-vector-builtins-bases.cc
72 riscv-sr.o: $(srcdir)/config/riscv/riscv-sr.cc $(CONFIG_H) \
74 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
75 $(srcdir)/config/riscv/riscv-sr.cc
77 riscv-c.o: $(srcdir)/config/riscv/riscv-c.cc $(CONFIG_H) $(SYSTEM_H) \
78 coretypes.h $(TM_H) $(TREE_H) output.h $(C_COMMON_H) $(TARGET_H)
79 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
80 $(srcdir)/config/riscv/riscv-c.cc
82 riscv-vsetvl.o: $(srcdir)/config/riscv/riscv-vsetvl.cc \
83 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(REGS_H) \
84 $(TARGET_H) tree-pass.h df.h rtl-ssa.h cfgcleanup.h insn-config.h \
85 insn-attr.h insn-opinit.h tm-constrs.h cfgrtl.h cfganal.h lcm.h \
86 predict.h profile-count.h cfgloop.h \
87 $(srcdir)/config/riscv/riscv-vsetvl.def
88 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
89 $(srcdir)/config/riscv/riscv-vsetvl.cc
91 riscv-vector-costs.o: $(srcdir)/config/riscv/riscv-vector-costs.cc \
92 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TARGET_H) $(FUNCTION_H) \
93 $(TREE_H) basic-block.h $(RTL_H) gimple.h targhooks.h cfgloop.h \
94 fold-const.h $(TM_P_H) tree-vectorizer.h gimple-iterator.h bitmap.h \
95 ssa.h backend.h tree-data-ref.h tree-ssa-loop-niter.h \
96 $(srcdir)/config/riscv/riscv-vector-costs.h
97 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
98 $(srcdir)/config/riscv/riscv-vector-costs.cc
100 riscv-avlprop.o: $(srcdir)/config/riscv/riscv-avlprop.cc \
101 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(REGS_H) \
102 $(TARGET_H) tree-pass.h df.h rtl-ssa.h cfgcleanup.h insn-attr.h \
103 tm-constrs.h insn-opinit.h
104 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
105 $(srcdir)/config/riscv/riscv-avlprop.cc
107 riscv-d.o: $(srcdir)/config/riscv/riscv-d.cc \
108 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
112 riscv-shorten-memrefs.o: $(srcdir)/config/riscv/riscv-shorten-memrefs.cc \
113 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TARGET_H)
117 riscv-selftests.o: $(srcdir)/config/riscv/riscv-selftests.cc \
118 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) output.h \
119 $(C_COMMON_H) $(TARGET_H) $(OPTABS_H) $(EXPR_H) $(INSN_ATTR_H) $(EMIT_RTL_H)
123 riscv-string.o: $(srcdir)/config/riscv/riscv-string.cc \
124 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) backend.h $(RTL_H) \
125 memmodel.h $(EMIT_RTL_H) poly-int.h output.h
129 riscv-v.o: $(srcdir)/config/riscv/riscv-v.cc \
130 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
131 $(TM_P_H) $(TARGET_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \
132 $(EXPR_H) $(INSN_ATTR_H) explow.h $(EMIT_RTL_H) tree-vector-builder.h \
137 riscv-target-attr.o: $(srcdir)/config/riscv/riscv-target-attr.cc $(CONFIG_H) \
138 $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(DIAGNOSTIC_CORE_H)
139 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
140 $(srcdir)/config/riscv/riscv-target-attr.cc
142 thead.o: $(srcdir)/config/riscv/thead.cc \
143 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) backend.h $(RTL_H) \
144 memmodel.h $(EMIT_RTL_H) poly-int.h output.h
148 riscv-zicfilp.o: $(srcdir)/config/riscv/riscv-zicfilp.cc \
149 $(CONFIG_H) $(SYSTEM_H) $(TM_H) $(REGS_H) insn-config.h $(RTL_BASE_H) \
150 dominance.h cfg.h cfganal.h $(BASIC_BLOCK_H) $(INSN_ATTR_H) $(RECOG_H) \
151 output.h hash-map.h $(DF_H) $(OBSTACK_H) $(TARGET_H) $(RTL_H) \
152 $(CONTEXT_H) $(TREE_PASS_H) regrename.h \
153 $(srcdir)/config/riscv/riscv-protos.h
154 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
155 $(srcdir)/config/riscv/riscv-zicfilp.cc
157 PASSES_EXTRA += $(srcdir)/config/riscv/riscv-passes.def
159 $(common_out_file): $(srcdir)/config/riscv/riscv-cores.def \
160 $(srcdir)/config/riscv/riscv-protos.h \
161 $(srcdir)/config/riscv/riscv-subset.h
163 build/genrvv-type-indexer.o: $(srcdir)/config/riscv/genrvv-type-indexer.cc $(BCONFIG_H) $(SYSTEM_H) \
164 $(CORETYPES_H) $(GTM_H) errors.h $(GENSUPPORT_H)
166 build/genrvv-type-indexer$(build_exeext): build/genrvv-type-indexer.o
167 +$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ \
168 $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS)
170 $(srcdir)/config/riscv/riscv-vector-builtins.def: riscv-vector-type-indexer.gen.def
171 $(srcdir)/config/riscv/riscv-vector-builtins.h: $(srcdir)/config/riscv/riscv-vector-builtins.def
172 $(srcdir)/config/riscv/sifive-vector-builtins-functions.def: riscv-vector-type-indexer.gen.def
173 $(srcdir)/config/riscv/riscv-vector-builtins.h: $(srcdir)/config/riscv/sifive-vector-builtins-functions.def
175 riscv-vector-type-indexer.gen.def: s-riscv-vector-type-indexer.gen.defs ; @true
177 s-riscv-vector-type-indexer.gen.defs: build/genrvv-type-indexer$(build_exeext)
178 $(RUN_GEN) build/genrvv-type-indexer$(build_exeext) tmp-riscv-vector-type-indexer.gen.def
179 $(SHELL) $(srcdir)/../move-if-change tmp-riscv-vector-type-indexer.gen.def riscv-vector-type-indexer.gen.def
180 $(STAMP) s-riscv-vector-type-indexer.gen.defs
182 genprog+=rvv-type-indexer