RISC-V mangles ABI tag for standard calling convention variants
RISC-V ABI tag mangling now correctly appends variant-specific tags to function names.
RISC-V functions using standard calling convention variants will now correctly mangle their names with ABI tags as specified by the psABI. This change ensures that variants like the fixed-length vector calling convention append the appropriate tag, for example, appending ‘riscv_vls_cc_<ABI_VLEN>’ to the mangled name. This improves ABI compliance and mangling accuracy for RISC-V.
In Details
The Itanium C++ ABI's mangling rules have been extended for RISC-V to include ABI tags for calling convention variants. This commit implements the logic in riscv_get_vls_cc_attr and related functions to append these tags, such as riscv_vls_cc_128, to mangled names. This impacts ABI compliance for specific calling conventions on RISC-V.