[PATCH] D28694: Hexagon-specific loop idiom recognition

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 14:22:16 PST 2017


efriedma added a comment.

If we wanted to allow targets to add target-specific extensions, we could add a function to TargetMachine which takes a PassManagerBuilder, and make clang call it.  And it's easy enough to add extension points if we need them.

That said, I'm not sure that's really relevant for your particular use-case; the transformation presented here is basically target-independent.  The only issue is that there isn't a target-independent equivalent to `hexagon_M4_pmpyw` (but equivalent instructions do exist on many targets; x86 has `PCLMULQDQ`, ARM has `VMULL.P64`, etc.).


Repository:
  rL LLVM

https://reviews.llvm.org/D28694





More information about the llvm-commits mailing list