[PATCH] D80566: GlobalISel: Work on improving stock set of legality predicates

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 08:39:01 PDT 2020


arsenm created this revision.
arsenm added reviewers: aemerson, aditya_nandakumar, paquette, dsanders, gargaroff.
Herald added subscribers: kerbowa, hiraditya, tpr, rovka, nhaehnle, wdng, jvesely.
Herald added a project: LLVM.

I get confused by a lot of the predicate names here, since I would
assume they apply to vectors as well. Rename to reflect they only
apply to scalars.

      

Also add a few predicates AMDGPU uses that should be generally useful.
Also add any() to complement all. I've wanted to use this a few times
but then worked around it not being there.


https://reviews.llvm.org/D80566

Files:
  llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
  llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
  llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80566.266227.patch
Type: text/x-patch
Size: 7943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200526/b9761244/attachment.bin>


More information about the llvm-commits mailing list