On 11/14/19 9:29 PM, Szabolcs Nagy wrote:
The builtin directive allows specifying the simd attribute for a builtin function. Similarly how the C language simd attribtue got extended to allow declaring a specific vector variant, update the fortran builtin directive too.
Sounds useful. For the Fortran side, I think it makes sense to wait until the C/C++ side has been solved. (See thread labelled "Extend the simd function attribute".)
However, I just noted:
+ if (gfc_match (" , ") == MATCH_YES) + if (gfc_match (" '%n'", &simdabi) != MATCH_YES)
This explicitly requires that the string is quoted using single quotes (') and not double quotes ("). I think that's acceptable for this special-purpose use, but, normally, Fortran permits both characters as string/character delimiter.
Cheers, Tobias