[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

Jonas Paulsson via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 11:58:45 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);
----------------
JonPsson1 wrote:

So far I have a few points as "todo" for vector support:
  - add a VR16 reg class
  - use VLE/VSTE for reload/spill
  - Use generated vector constants.
 It wouldn't be too hard to add this, but not sure if it's relevant given all the slow conversion function calls. On the other hand, even if it's super-slow, maybe a noticeable speedup might have some value..?

https://github.com/llvm/llvm-project/pull/109164


More information about the cfe-commits mailing list