This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Work on improving stock set of legality predicates
ClosedPublic

Authored by arsenm on May 26 2020, 8:24 AM.

Details

Summary

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.

Diff Detail

Event Timeline

arsenm created this revision.May 26 2020, 8:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2020, 8:24 AM
paquette added inline comments.May 26 2020, 4:21 PM
llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
280

largerThan to mirror smallerThan?

"greater" implies general ordering IMO

arsenm updated this revision to Diff 266531.May 27 2020, 7:12 AM

largerThan

arsenm marked an inline comment as done.May 27 2020, 7:13 AM
aemerson accepted this revision.May 28 2020, 4:08 PM

Seems reasonable.

This revision is now accepted and ready to land.May 28 2020, 4:08 PM