[PATCH] D104410: GlobalISel/Utils: Add util function and matcher for constant splat

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 11:53:28 PDT 2021


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: foad, arsenm, aemerson, paquette.
Herald added subscribers: hiraditya, rovka.
Petar.Avramovic requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Add flexible function for constant splat matching. Able to recognize
constant splat that was padded with undefs. Add generic matcher for
splat constants (integer, floating point, allow undef or not) and
one specialized for floating point type.


https://reviews.llvm.org/D104410

Files:
  llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
  llvm/include/llvm/CodeGen/GlobalISel/Utils.h
  llvm/lib/CodeGen/GlobalISel/Utils.cpp
  llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104410.352503.patch
Type: text/x-patch
Size: 6669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210616/bb362148/attachment.bin>


More information about the llvm-commits mailing list