[clang] Move int <-> float scalar conversion to a separate function
authorSaurabh Jha <saurabh.jhaa@gmail.com>
Wed, 7 Apr 2021 19:09:50 +0000 (12:09 -0700)
committerErich Keane <erich.keane@intel.com>
Wed, 7 Apr 2021 19:34:16 +0000 (12:34 -0700)
commit7d8513b7f2e996fbbb35e0ffce4fe1d4f695928b
treeecbef41d7c3a18db133777042feea9441a3e1abf
parent39ee9fd8c1c2424f76260f62ac223e3aa1760612
[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
clang/lib/CodeGen/CGExprScalar.cpp