[PATCH] D87889: [SVE] Make EVT::getScalarSizeInBits and others consistent with Type::getScalarSizeInBits

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 01:32:25 PDT 2020


david-arm created this revision.
david-arm added reviewers: sdesmalen, fpetrogalli, efriedma, ctetreau.
Herald added subscribers: llvm-commits, ecnelises, psnobl, hiraditya, tschuett.
Herald added a project: LLVM.
david-arm requested review of this revision.

An existing function Type::getScalarSizeInBits returns a uint64_t
instead of a TypeSize class because the caller is requesting a
scalar size, which cannot be scalable. This patch makes other
similar functions requesting a scalar size consistent with that,
thereby eliminating more than 1000 implicit TypeSize -> uint64_t
casts.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87889

Files:
  llvm/include/llvm/CodeGen/SelectionDAGNodes.h
  llvm/include/llvm/CodeGen/ValueTypes.h
  llvm/include/llvm/Support/MachineValueType.h
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/CodeGen/TargetLoweringBase.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/ARM/ARMISelLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87889.292720.patch
Type: text/x-patch
Size: 5818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200918/806780ac/attachment.bin>


More information about the llvm-commits mailing list