[ISD::IndexType] Helper functions for common queries.
authorPaul Walker <paul.walker@arm.com>
Tue, 5 Apr 2022 16:48:22 +0000 (17:48 +0100)
committerPaul Walker <paul.walker@arm.com>
Sat, 7 May 2022 10:23:42 +0000 (11:23 +0100)
commit702c4ade225be58118d34760d9f67e02a826e426
treed0f4745953a69c72fcd952d18764f292da39cfa0
parent1c5e85b3da649c89db87abecc53b42f6eaa574c2
[ISD::IndexType] Helper functions for common queries.

Add helper functions to query the signed and scaled properties
of ISD::IndexType along with functions to change them.

Remove setIndexType from MaskedGatherSDNode because it only has
one usage and typically should only be changed alongside its
index operand.

Minimise the direct use of the enum values to lay the groundwork
for more refactoring.

Differential Revision: https://reviews.llvm.org/D123347
llvm/include/llvm/CodeGen/ISDOpcodes.h
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp