[PATCH] D140088: Add LLVM type support for fp8

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 11:05:55 PST 2022


arsenm added inline comments.


================
Comment at: llvm/lib/IR/Type.cpp:214-223
   if (getTypeID() == HalfTyID) return 11;
+  if (getTypeID() == F8E4M3TyID)
+    return 3;
+  if (getTypeID() == F8E5M2TyID)
+    return 2;
   if (getTypeID() == BFloatTyID) return 8;
   if (getTypeID() == FloatTyID) return 24;
----------------
This whole function should probably convert to a switch


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140088/new/

https://reviews.llvm.org/D140088



More information about the llvm-commits mailing list