]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Move ENTRY_VHSDF to aarch64-simd-pragma-builtins.def
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 31 Oct 2024 19:52:06 +0000 (19:52 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 31 Oct 2024 19:52:06 +0000 (19:52 +0000)
commite1b17a0cfd3dfb80303d466cc28684e74db6634a
treed4229bea201af47770132db0439314e4149d4f71
parent94b9ffbdd9a3a2d3c71afb67e0fd6b7ce1d51391
aarch64: Move ENTRY_VHSDF to aarch64-simd-pragma-builtins.def

It's more convenient for later patches if we only define ENTRY_VHSDF
once, in the .def file.  Then the only macro that needs to be defined
before including the file is ENTRY itself.

The patch also moves the architecture requirements out of the
individual ENTRY invocations into a block-level definition of
REQUIRED_EXTENSIONS.  This reduces cut-&-paste a little and makes
things more consistent with aarch64-sve-builtins*.def.

gcc/
* config/aarch64/aarch64-builtins.cc (ENTRY): Remove the features
argument and get the features from REQUIRED_EXTENSIONS instead.
(ENTRY_VHSDF): Move definition to...
* config/aarch64/aarch64-simd-pragma-builtins.def: ...here.
Move the architecture requirements to REQUIRED_EXTENSIONS.
gcc/config/aarch64/aarch64-builtins.cc
gcc/config/aarch64/aarch64-simd-pragma-builtins.def