[PATCH] D88897: [AArch64] WIP for review D88742

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 02:04:57 PDT 2020


dmgreen added a comment.

Right. Because of Global ISel? I don't know that very well and if there's a similar place to do the same thing, converting an intrinsics to the kind of node that would be matched.

My hope was that we would be able to make something that I could later lift to being target-independent and share across AArch64 and MVE.

Replicating the patterns doesn't feel great though, and disabling the test feels a bit of a step backwards.  Perhaps make the pattern match either the node or the intrinsic:

  def AArch64uabd_n   : SDNode<"AArch64ISD::UABD", SDT_AArch64binvec>;
  def AArch64sabd_n   : SDNode<"AArch64ISD::SABD", SDT_AArch64binvec>;
  def AArch64uabd     : PatFrags<(ops node:$lhs, node:$rhs),
                                     [(AArch64uabd_n node:$lhs, node:$rhs),
                                      (int_aarch64_neon_uabd node:$lhs, node:$rhs)]>;
  def AArch64sabd     : PatFrags<(ops node:$lhs, node:$rhs),
                                     [(AArch64sabd_n node:$lhs, node:$rhs),
                                      (int_aarch64_neon_sabd node:$lhs, node:$rhs)]>;


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88897/new/

https://reviews.llvm.org/D88897



More information about the llvm-commits mailing list