[Clang][OpenMP] Convert `flatten` floating-point trip-count to integers  (#229458)

Fixes #225753

Solution: The compiler now turns that trip count into an integer before
it builds the flattened loop. The width follows the existing rule. If
the loop variable is an integer, the new count keeps that variable's
signedness, so a `long` loop with a `double` count stays signed.

If the conversion fails, `flatten` returns an error instead of aborting.

GitOrigin-RevId: 5db657b9d7afdf469398f562288aba6aa2fb68e4
1 file changed