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
committerGitHub <noreply@github.com>2024-03-04 00:01:50 -0500
commitb0c158bd947c360a4652eb0de3a4794f46deb88b (patch)
tree2aee9436907f2381a7d0f775fd7233b659c2ee25 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parentccc48d45b832def14c8bc1849cf64c805892368d (diff)
downloadllvm-b0c158bd947c360a4652eb0de3a4794f46deb88b.zip
llvm-b0c158bd947c360a4652eb0de3a4794f46deb88b.tar.gz
llvm-b0c158bd947c360a4652eb0de3a4794f46deb88b.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;