[llvm] [arm64] Add tan intrinsic lowering (PR #94545)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 09:34:17 PDT 2024
================
@@ -1171,13 +1172,15 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
if (Subtarget->isNeonAvailable()) {
// FIXME: v1f64 shouldn't be legal if we can avoid it, because it leads to
// silliness like this:
+ // clang-format off
for (auto Op :
{ISD::SELECT, ISD::SELECT_CC,
ISD::BR_CC, ISD::FADD, ISD::FSUB,
ISD::FMUL, ISD::FDIV, ISD::FMA,
ISD::FNEG, ISD::FABS, ISD::FCEIL,
ISD::FSQRT, ISD::FFLOOR, ISD::FNEARBYINT,
- ISD::FSIN, ISD::FCOS, ISD::FPOW,
+ ISD::FSIN, ISD::FCOS, ISD::FTAN,
+ ISD::FPOW,
----------------
davemgreen wrote:
I think I would rejig them again later if needed. It's a shame clang-format does such an ugly job with it. It's nice to leave it clean in the meantime though.
https://github.com/llvm/llvm-project/pull/94545
More information about the llvm-commits
mailing list