[X86] Add getAVX512Node helper. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 13 Nov 2021 13:59:42 +0000 (13:59 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 13 Nov 2021 13:59:42 +0000 (13:59 +0000)
commita310cbae02248023b11eefc8d1663661ac1f7721
tree8256ce82a2f7cf33668bcc77ccd92d9913074bb1
parent8ed8d370880b5c4e7bbf52b50791710a9f4f834b
[X86] Add getAVX512Node helper. NFC.

For AVX512 targets without VLX, we have to widen 128/256-bit vectors to 512-bits to use some specific AVX512 instructions (or some other instructions with predicates etc.).

I've pulled out the widening code from LowerFunnelShift into the helper function, so we can convert some other widening patterns in the future.
llvm/lib/Target/X86/X86ISelLowering.cpp