[clang] Move int <-> float scalar conversion to a separate function

As prelude to this patch https://reviews.llvm.org/D99037, we want to
move the int-float conversion
into a separate function that can be reused by matrix cast

Differential Revision: https://reviews.llvm.org/D100051

GitOrigin-RevId: 7d8513b7f2e996fbbb35e0ffce4fe1d4f695928b
1 file changed