[llvm] [SelectionDAG] Add `STRICT_BF16_TO_FP` and `STRICT_FP_TO_BF16` (PR #80056)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 2 15:37:37 PST 2024


================
@@ -393,7 +393,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
   }
 
   for (auto Op : {ISD::FP16_TO_FP, ISD::STRICT_FP16_TO_FP, ISD::FP_TO_FP16,
-                  ISD::STRICT_FP_TO_FP16}) {
+                  ISD::STRICT_FP_TO_FP16, ISD::STRICT_FP_TO_BF16}) {
----------------
shiltian wrote:

I don't know how to implement the `Custom` path since I'm not familiar with what instructions need to be used. I leave a FIXME there.

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


More information about the llvm-commits mailing list