RiscV: Add ECF flags to builtins
Adds support for Extended Control Flow (ECF) flags to RiscV built-in functions, enabling new instructions.
This commit enhances the RiscV backend by adding support for Extended Control Flow (ECF) flags to its built-in functions. The riscv_builtin_description structure is updated to include ecf_flags, and related macros and initialization routines are adjusted. New test cases specifically for ECF built-ins are also introduced, allowing developers to leverage these new instructions.
In Details
This patch modifies the RiscV target-specific builtins handling in riscv-builtins.cc. It adds a new field for ECF flags to the builtin description structure and updates macro definitions and initialization logic. This enables the compiler to recognize and correctly map RiscV ECF instructions when used via builtins, requiring changes in both the compiler backend and testsuite.
- ECF flags
- Flags related to Extended Control Flow instructions in the RiscV architecture, which provide enhanced control flow capabilities.
- builtins
- Special functions recognized by the compiler that often map directly to specific machine instructions or provide low-level access to hardware features.
- RiscV
- An open-standard instruction set architecture based on RISC principles, known for its modularity and extensibility.