aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2024-03-04 00:01:50 -0500
committerShilei Tian <i@tianshilei.me>2024-03-04 01:08:49 -0500
commit8300f30a9234ee46b2b941e8b07cb7d104c846cb (patch)
treef2ed4712af630066e000da62fd970e6855bc3790 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent2c5d01c2cfa80fd734b94833bdf7b5b3f6f2ebb0 (diff)
downloadllvm-8300f30a9234ee46b2b941e8b07cb7d104c846cb.zip
llvm-8300f30a9234ee46b2b941e8b07cb7d104c846cb.tar.gz
llvm-8300f30a9234ee46b2b941e8b07cb7d104c846cb.tar.bz2
[SelectionDAG] Add `STRICT_BF16_TO_FP` and `STRICT_FP_TO_BF16` (#80056)
This patch adds the support for `STRICT_BF16_TO_FP` and `STRICT_FP_TO_BF16`.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 646c0c3..a2aeb66 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -307,6 +307,9 @@ RTLIB::Libcall RTLIB::getFPEXT(EVT OpVT, EVT RetVT) {
} else if (OpVT == MVT::f80) {
if (RetVT == MVT::f128)
return FPEXT_F80_F128;
+ } else if (OpVT == MVT::bf16) {
+ if (RetVT == MVT::f32)
+ return FPEXT_BF16_F32;
}
return UNKNOWN_LIBCALL;