OSDN Git Service

GlobalISel: Work on improving stock set of legality predicates
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 23 May 2020 22:28:12 +0000 (18:28 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 29 May 2020 00:28:24 +0000 (20:28 -0400)
commite13c84c3be589c80edd2391664e136f54f0e3345
treea2c60dd343176d7d7ba9c3432b1ecd3424e44a6b
parent8c050070fb96b4e6b8608a120d102bac0c8ada1c
GlobalISel: Work on improving stock set of legality predicates

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.
llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp