[llvm] [GlobalISel] Add boolean predicated legalization action methods. (PR #111287)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 11 01:53:57 PDT 2024
tschuett wrote:
Store common legality queries at the top of the file:
```
auto HasSVEAndTypes = [=](const LegalityQuery &Query) {
return HasSVE && typeSetIn(0, {nxv16s8, nxv8s16, nxv4s32, nxv2s64});
},
```
used them in `legalIf`
```
.legalIf(HasSVEAndType)
```
https://github.com/llvm/llvm-project/pull/111287
More information about the llvm-commits
mailing list