[PATCH] D123347: [ISD::IndexType] Helper functions for common queries.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 17:28:05 PDT 2022


paulwalker-arm created this revision.
Herald added subscribers: ecnelises, arphaman, hiraditya.
Herald added a project: All.
paulwalker-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.

Depends On D123326 <https://reviews.llvm.org/D123326>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123347

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123347.421369.patch
Type: text/x-patch
Size: 9893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220408/5e1dead4/attachment.bin>


More information about the llvm-commits mailing list