[TargetLowering] Add DemandedElts arg to ShrinkDemandedConstant
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 29 Jun 2020 10:24:26 +0000 (11:24 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 29 Jun 2020 10:46:58 +0000 (11:46 +0100)
commit973685fc784a937d39293be972e95c2c4ec4c97e
tree7140dd57867c07492852bc10764ca99a2fcfe3cd
parentd4230c67bf8a2b4f9c4d80898f54fd00db719ae9
[TargetLowering] Add DemandedElts arg to ShrinkDemandedConstant

Pre-commit for D82257, this adds a DemandedElts arg to ShrinkDemandedConstant/targetShrinkDemandedConstant which will allow future patches to (optionally) add vector support.
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.h
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.h