Add infrastructure for Dense Math Facility builtins on rs6000
Initial infrastructure added for Dense Math builtins on Power architecture.
GCC’s rs6000 backend now has the foundational infrastructure to support Dense Math Facility (DMF) builtins. This includes extending the builtin generator with new stanzas, enable flags, base types, and attributes, paving the way for future DMF code generation.
In Details
This commit introduces the necessary infrastructure within gcc/config/rs6000 to enable support for Dense Math Facility (DMF) builtins. It enhances the builtin generator by adding a 'dm' stanza, an ENB_DM enable flag, DMR base types, and DMF-specific attributes. Target-specific enablement checks (TARGET_DMF) are also added, allowing the compiler to conditionally support these builtins for future Power ISA targets, often enabled via flags like -mdense-math.
- rs6000
- GCC's target identifier for IBM's PowerPC and Power ISA architectures, commonly used in servers and workstations.
- Dense Math Facility (DMF)
- A set of specialized instructions on some PowerPC processors designed to accelerate mathematical operations.
- Builtin
- Compiler-recognized functions that map directly to specific CPU instructions or hardware features, often providing performance benefits.
- Builtin generator
- A tool or script within the compiler's build system that automatically generates code for handling built-in functions based on configuration files.
- Power ISA
- The instruction set architecture for PowerPC and related processors developed by IBM and others.