| 1 |
# Machine description for AArch64 architecture. |
| 2 |
# Copyright (C) 2009-2025 Free Software Foundation, Inc. |
| 3 |
# Contributed by ARM Ltd. |
| 4 |
# |
| 5 |
# This file is part of GCC. |
| 6 |
# |
| 7 |
# GCC is free software; you can redistribute it and/or modify it |
| 8 |
# under the terms of the GNU General Public License as published by |
| 9 |
# the Free Software Foundation; either version 3, or (at your option) |
| 10 |
# any later version. |
| 11 |
# |
| 12 |
# GCC is distributed in the hope that it will be useful, but |
| 13 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
# General Public License for more details. |
| 16 |
# |
| 17 |
# You should have received a copy of the GNU General Public License |
| 18 |
# along with GCC; see the file COPYING3. If not see |
| 19 |
# <http://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
TM_H += $(srcdir)/config/aarch64/aarch64-fusion-pairs.def \ |
| 22 |
$(srcdir)/config/aarch64/aarch64-tuning-flags.def \ |
| 23 |
$(srcdir)/config/aarch64/aarch64-option-extensions.def \ |
| 24 |
$(srcdir)/config/aarch64/aarch64-cores.def \ |
| 25 |
$(srcdir)/config/aarch64/aarch64-isa-modes.def \ |
| 26 |
$(srcdir)/config/aarch64/aarch64-arches.def |
| 27 |
OPTIONS_H_EXTRA += $(srcdir)/config/aarch64/aarch64-cores.def \ |
| 28 |
$(srcdir)/config/aarch64/aarch64-arches.def |
| 29 |
|
| 30 |
$(srcdir)/config/aarch64/aarch64-tune.md: s-aarch64-tune-md; @true |
| 31 |
s-aarch64-tune-md: $(srcdir)/config/aarch64/gentune.sh \ |
| 32 |
$(srcdir)/config/aarch64/aarch64-cores.def |
| 33 |
$(SHELL) $(srcdir)/config/aarch64/gentune.sh \ |
| 34 |
$(srcdir)/config/aarch64/aarch64-cores.def > \ |
| 35 |
tmp-aarch64-tune.md |
| 36 |
ifneq ($(strip $(ENABLE_MAINTAINER_RULES)),) |
| 37 |
$(SHELL) $(srcdir)/../move-if-change tmp-aarch64-tune.md \ |
| 38 |
$(srcdir)/config/aarch64/aarch64-tune.md |
| 39 |
else |
| 40 |
@if ! cmp -s tmp-aarch64-tune.md \ |
| 41 |
$(srcdir)/config/aarch64/aarch64-tune.md; then \ |
| 42 |
echo "aarch64-tune.md has changed; either"; \ |
| 43 |
echo "configure with --enable-maintainer-mode"; \ |
| 44 |
echo "or copy tmp-aarch64-tune.md to $(srcdir)/config/aarch64/aarch64-tune.md"; \ |
| 45 |
exit 1; \ |
| 46 |
fi |
| 47 |
endif |
| 48 |
$(STAMP) s-aarch64-tune-md |
| 49 |
|
| 50 |
s-mddeps: s-aarch64-tune-md |
| 51 |
|
| 52 |
aarch64-builtins.o: $(srcdir)/config/aarch64/aarch64-builtins.cc $(CONFIG_H) \ |
| 53 |
$(SYSTEM_H) coretypes.h $(TM_H) $(REGS_H) \ |
| 54 |
$(RTL_H) $(TREE_H) expr.h $(TM_P_H) $(RECOG_H) langhooks.h \ |
| 55 |
$(DIAGNOSTIC_CORE_H) $(OPTABS_H) \ |
| 56 |
$(srcdir)/config/aarch64/aarch64-simd-builtins.def \ |
| 57 |
$(srcdir)/config/aarch64/aarch64-simd-builtin-types.def \ |
| 58 |
$(srcdir)/config/aarch64/aarch64-simd-pragma-builtins.def \ |
| 59 |
aarch64-builtin-iterators.h |
| 60 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 61 |
$(srcdir)/config/aarch64/aarch64-builtins.cc |
| 62 |
|
| 63 |
aarch64-sve-builtins.o: $(srcdir)/config/aarch64/aarch64-sve-builtins.cc \ |
| 64 |
$(srcdir)/config/aarch64/aarch64-sve-builtins.def \ |
| 65 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-base.def \ |
| 66 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sve2.def \ |
| 67 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sme.def \ |
| 68 |
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \ |
| 69 |
$(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) $(DIAGNOSTIC_H) \ |
| 70 |
$(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \ |
| 71 |
gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \ |
| 72 |
stor-layout.h alias.h gimple-fold.h langhooks.h \ |
| 73 |
stringpool.h \ |
| 74 |
$(srcdir)/config/aarch64/aarch64-sve-builtins.h \ |
| 75 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-shapes.h \ |
| 76 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-base.h \ |
| 77 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sve2.h \ |
| 78 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sme.h |
| 79 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 80 |
$(srcdir)/config/aarch64/aarch64-sve-builtins.cc |
| 81 |
|
| 82 |
aarch64-sve-builtins-shapes.o: \ |
| 83 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-shapes.cc \ |
| 84 |
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \ |
| 85 |
$(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) \ |
| 86 |
$(srcdir)/config/aarch64/aarch64-sve-builtins.h \ |
| 87 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-shapes.h |
| 88 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 89 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-shapes.cc |
| 90 |
|
| 91 |
aarch64-sve-builtins-base.o: \ |
| 92 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-base.cc \ |
| 93 |
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \ |
| 94 |
$(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \ |
| 95 |
$(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \ |
| 96 |
gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \ |
| 97 |
rtx-vector-builder.h vec-perm-indices.h \ |
| 98 |
$(srcdir)/config/aarch64/aarch64-sve-builtins.h \ |
| 99 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-shapes.h \ |
| 100 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-base.h \ |
| 101 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-functions.h |
| 102 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 103 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-base.cc |
| 104 |
|
| 105 |
aarch64-sve-builtins-sve2.o: \ |
| 106 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sve2.cc \ |
| 107 |
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \ |
| 108 |
$(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \ |
| 109 |
$(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \ |
| 110 |
gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \ |
| 111 |
rtx-vector-builder.h vec-perm-indices.h \ |
| 112 |
$(srcdir)/config/aarch64/aarch64-sve-builtins.h \ |
| 113 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-shapes.h \ |
| 114 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sve2.h \ |
| 115 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-functions.h |
| 116 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 117 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sve2.cc |
| 118 |
|
| 119 |
aarch64-sve-builtins-sme.o: \ |
| 120 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sme.cc \ |
| 121 |
$(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \ |
| 122 |
$(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \ |
| 123 |
$(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \ |
| 124 |
gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) \ |
| 125 |
$(srcdir)/config/aarch64/aarch64-sve-builtins.h \ |
| 126 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-shapes.h \ |
| 127 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sme.h \ |
| 128 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-functions.h |
| 129 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 130 |
$(srcdir)/config/aarch64/aarch64-sve-builtins-sme.cc |
| 131 |
|
| 132 |
aarch64-builtin-iterators.h: $(srcdir)/config/aarch64/geniterators.sh \ |
| 133 |
$(srcdir)/config/aarch64/iterators.md |
| 134 |
$(SHELL) $(srcdir)/config/aarch64/geniterators.sh \ |
| 135 |
$(srcdir)/config/aarch64/iterators.md > \ |
| 136 |
aarch64-builtin-iterators.h |
| 137 |
|
| 138 |
aarch-common.o: $(srcdir)/config/arm/aarch-common.cc $(CONFIG_H) $(SYSTEM_H) \ |
| 139 |
coretypes.h $(TM_H) $(TM_P_H) $(RTL_H) $(TREE_H) output.h $(C_COMMON_H) |
| 140 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 141 |
$(srcdir)/config/arm/aarch-common.cc |
| 142 |
|
| 143 |
aarch64-c.o: $(srcdir)/config/aarch64/aarch64-c.cc $(CONFIG_H) $(SYSTEM_H) \ |
| 144 |
coretypes.h $(TM_H) $(TREE_H) output.h $(C_COMMON_H) $(TARGET_H) |
| 145 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 146 |
$(srcdir)/config/aarch64/aarch64-c.cc |
| 147 |
|
| 148 |
aarch64-d.o: $(srcdir)/config/aarch64/aarch64-d.cc |
| 149 |
$(COMPILE) $< |
| 150 |
$(POSTCOMPILE) |
| 151 |
|
| 152 |
PASSES_EXTRA += $(srcdir)/config/aarch64/aarch64-passes.def |
| 153 |
|
| 154 |
cortex-a57-fma-steering.o: $(srcdir)/config/aarch64/cortex-a57-fma-steering.cc \ |
| 155 |
$(CONFIG_H) $(SYSTEM_H) $(TM_H) $(REGS_H) insn-config.h $(RTL_BASE_H) \ |
| 156 |
dominance.h cfg.h cfganal.h $(BASIC_BLOCK_H) $(INSN_ATTR_H) $(RECOG_H) \ |
| 157 |
output.h hash-map.h $(DF_H) $(OBSTACK_H) $(TARGET_H) $(RTL_H) \ |
| 158 |
$(CONTEXT_H) $(TREE_PASS_H) regrename.h \ |
| 159 |
$(srcdir)/config/aarch64/aarch64-protos.h |
| 160 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 161 |
$(srcdir)/config/aarch64/cortex-a57-fma-steering.cc |
| 162 |
|
| 163 |
aarch64-speculation.o: $(srcdir)/config/aarch64/aarch64-speculation.cc \ |
| 164 |
$(CONFIG_H) \ |
| 165 |
$(SYSTEM_H) \ |
| 166 |
$(TM_H) \ |
| 167 |
$(TARGET_H) \ |
| 168 |
$(RTL_BASE_H) \ |
| 169 |
$(TREE_PASS_H) |
| 170 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_SPPFLAGS) $(INCLUDES) \ |
| 171 |
$(srcdir)/config/aarch64/aarch64-speculation.cc |
| 172 |
|
| 173 |
aarch-bti-insert.o: $(srcdir)/config/arm/aarch-bti-insert.cc \ |
| 174 |
$(CONFIG_H) $(SYSTEM_H) $(TM_H) $(REGS_H) insn-config.h $(RTL_BASE_H) \ |
| 175 |
dominance.h cfg.h cfganal.h $(BASIC_BLOCK_H) $(INSN_ATTR_H) $(RECOG_H) \ |
| 176 |
output.h hash-map.h $(DF_H) $(OBSTACK_H) $(TARGET_H) $(RTL_H) \ |
| 177 |
$(CONTEXT_H) $(TREE_PASS_H) regrename.h \ |
| 178 |
$(srcdir)/config/aarch64/aarch64-protos.h |
| 179 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 180 |
$(srcdir)/config/arm/aarch-bti-insert.cc |
| 181 |
|
| 182 |
aarch64-cc-fusion.o: $(srcdir)/config/aarch64/aarch64-cc-fusion.cc \ |
| 183 |
$(CONFIG_H) $(SYSTEM_H) $(CORETYPES_H) $(BACKEND_H) $(RTL_H) $(DF_H) \ |
| 184 |
$(RTL_SSA_H) tree-pass.h |
| 185 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 186 |
$(srcdir)/config/aarch64/aarch64-cc-fusion.cc |
| 187 |
|
| 188 |
aarch64-early-ra.o: $(srcdir)/config/aarch64/aarch64-early-ra.cc \ |
| 189 |
$(CONFIG_H) $(SYSTEM_H) $(CORETYPES_H) $(BACKEND_H) $(RTL_H) $(DF_H) \ |
| 190 |
$(RTL_SSA_H) tree-pass.h |
| 191 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 192 |
$(srcdir)/config/aarch64/aarch64-early-ra.cc |
| 193 |
|
| 194 |
aarch64-ldp-fusion.o: $(srcdir)/config/aarch64/aarch64-ldp-fusion.cc \ |
| 195 |
$(CONFIG_H) $(SYSTEM_H) $(CORETYPES_H) $(BACKEND_H) $(RTL_H) \ |
| 196 |
tree-pass.h pair-fusion.h |
| 197 |
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ |
| 198 |
$(srcdir)/config/aarch64/aarch64-ldp-fusion.cc |
| 199 |
|
| 200 |
comma=, |
| 201 |
MULTILIB_OPTIONS = $(subst $(comma),/, $(patsubst %, mabi=%, $(subst $(comma),$(comma)mabi=,$(TM_MULTILIB_CONFIG)))) |
| 202 |
MULTILIB_DIRNAMES = $(subst $(comma), ,$(TM_MULTILIB_CONFIG)) |
| 203 |
|
| 204 |
insn-conditions.md: s-check-sve-md |
| 205 |
s-check-sve-md: $(srcdir)/config/aarch64/check-sve-md.awk \ |
| 206 |
$(srcdir)/config/aarch64/aarch64-sve.md \ |
| 207 |
$(srcdir)/config/aarch64/aarch64-sve2.md \ |
| 208 |
$(srcdir)/config/aarch64/aarch64-sme.md |
| 209 |
$(AWK) -f $(srcdir)/config/aarch64/check-sve-md.awk \ |
| 210 |
$(srcdir)/config/aarch64/aarch64-sve.md |
| 211 |
$(AWK) -f $(srcdir)/config/aarch64/check-sve-md.awk \ |
| 212 |
$(srcdir)/config/aarch64/aarch64-sve2.md |
| 213 |
$(AWK) -f $(srcdir)/config/aarch64/check-sve-md.awk \ |
| 214 |
$(srcdir)/config/aarch64/aarch64-sme.md |
| 215 |
$(STAMP) s-check-sve-md |