[llvm] [NVPTX] Add support for f16 fabs (PR #116107)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 14:49:20 PST 2024
================
@@ -864,10 +864,15 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
AddPromotedToType(Op, MVT::bf16, MVT::f32);
}
for (const auto &Op : {ISD::FABS}) {
- setOperationAction(Op, MVT::f16, Promote);
setOperationAction(Op, MVT::f32, Legal);
setOperationAction(Op, MVT::f64, Legal);
----------------
Artem-B wrote:
Yes. sm_20 is the oldest supported variant. We should officially deprecate it and start removing support for it, as NVIDIA dropped support for it in 2018 (https://nvidia.custhelp.com/app/answers/detail/a_id/4654).
https://github.com/llvm/llvm-project/pull/116107
More information about the llvm-commits
mailing list