[AArch64] Auto-generate the "BUILTIN_" macros for aarch64-builtins.c

James Greenhalgh james.greenhalgh@arm.com
Thu Sep 18 09:53:00 GMT 2014


Hi,

A possible source of errors is in keeping the iterators.md file and the
iterator macros in aarch64-builtin.c synchronized.

Clearly this shouldn't be a problem given standard unix tools, it is just a
text processing job.

This patch adds geniterators.sh to the AArch64 backend which takes the
iterators.md file and generates aarch64-builtin-iterators.h, this replaces
the definitions from aarch64-builtins.c, which now just include this file.

Bootstrapped for aarch64-none-linux-gnueabi, and regression tested for
aarch64-none-elf with no issues.

OK?

Thanks,
James

---
gcc/

2014-09-18  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/aarch64-builtin-iterators.h: New.
	* config/aarch64/geniterators.sh: New.
	* config/aarch64/iterators.md (VDQF_DF): New.
	* config/aarch64/t-aarch64: Add dependencies on new build script.
	* config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch64-Auto-generate-the-BUILTIN_-macros-for-aarch6.patch
Type: text/x-patch
Size: 13779 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140918/b490aa1d/attachment.bin>


More information about the Gcc-patches mailing list