[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)
Ulrich Weigand via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 13:13:23 PST 2024
================
@@ -102,6 +102,7 @@ SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &TM,
addRegisterClass(MVT::i32, &SystemZ::GR32BitRegClass);
addRegisterClass(MVT::i64, &SystemZ::GR64BitRegClass);
if (!useSoftFloat()) {
+ addRegisterClass(MVT::f16, &SystemZ::FP16BitRegClass);
----------------
uweigand wrote:
If it's not too hard, I think it might be good. Not so much because of performance, but also because it makes the code look more similar to what we do for the other types.
https://github.com/llvm/llvm-project/pull/109164
More information about the cfe-commits
mailing list