diff options
author | Farzon Lotfi <1802579+farzonl@users.noreply.github.com> | 2024-06-14 17:18:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 17:18:20 -0400 |
commit | 6355fb45a5433d90a3f1a342920ff56a7fee7e16 (patch) | |
tree | 6aea0825e101e9fb32bae33b43d21dd7dcc15cb8 /llvm/lib/CodeGen | |
parent | 40a72f8cc414726a8be234a260650fd62354da21 (diff) | |
download | llvm-6355fb45a5433d90a3f1a342920ff56a7fee7e16.zip llvm-6355fb45a5433d90a3f1a342920ff56a7fee7e16.tar.gz llvm-6355fb45a5433d90a3f1a342920ff56a7fee7e16.tar.bz2 |
[CodeGen] Support vectors across all backends (#95518)
Add a default f16 type promotion
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 8240a1f..de53499 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -961,7 +961,7 @@ void TargetLoweringBase::initActions() { setOperationAction( {ISD::FCOPYSIGN, ISD::SIGN_EXTEND_INREG, ISD::ANY_EXTEND_VECTOR_INREG, ISD::SIGN_EXTEND_VECTOR_INREG, ISD::ZERO_EXTEND_VECTOR_INREG, - ISD::SPLAT_VECTOR, ISD::LRINT, ISD::LLRINT}, + ISD::SPLAT_VECTOR, ISD::LRINT, ISD::LLRINT, ISD::FTAN}, VT, Expand); // Constrained floating-point operations default to expand. @@ -1020,6 +1020,7 @@ void TargetLoweringBase::initActions() { ISD::FTAN}, {MVT::f32, MVT::f64, MVT::f128}, Expand); + setOperationAction(ISD::FTAN, MVT::f16, Promote); // Default ISD::TRAP to expand (which turns it into abort). setOperationAction(ISD::TRAP, MVT::Other, Expand); |