diff options
author | Shilei Tian <i@tianshilei.me> | 2024-03-04 00:01:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 00:01:50 -0500 |
commit | b0c158bd947c360a4652eb0de3a4794f46deb88b (patch) | |
tree | 2aee9436907f2381a7d0f775fd7233b659c2ee25 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | ccc48d45b832def14c8bc1849cf64c805892368d (diff) | |
download | llvm-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.cpp | 3 |
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; |