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

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 7 00:16:35 PDT 2024


================
@@ -784,6 +791,20 @@ bool SystemZTargetLowering::useSoftFloat() const {
   return Subtarget.hasSoftFloat();
 }
 
+MVT SystemZTargetLowering::getRegisterTypeForCallingConv(
+      LLVMContext &Context, CallingConv::ID CC,
+      EVT VT) const {
+  // 128-bit single-element vector types are passed like other vectors,
+  // not like their element type.
+  if (VT.isVector() && VT.getSizeInBits() == 128 &&
+      VT.getVectorNumElements() == 1)
+    return MVT::v16i8;
----------------
arsenm wrote:

Seems unrelated? 

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


More information about the cfe-commits mailing list