[PATCH] D88649: [SVE][CodeGen] Add new EVT/MVT getFixedSizeInBits() functions
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 05:09:49 PDT 2020
david-arm created this revision.
david-arm added reviewers: sdesmalen, paulwalker-arm, efriedma, kmclaughlin.
Herald added subscribers: llvm-commits, psnobl, hiraditya, tschuett.
Herald added a project: LLVM.
david-arm requested review of this revision.
When we know that a particular type is always going to be fixed
width we have so far been writing code like this:
getSizeInBits().getFixedSize()
Since we are doing this in quite a few places now it seems to make
sense to add a new helper function that allows us to replace
these calls with a single getFixedSizeInBits() call.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D88649
Files:
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
llvm/include/llvm/CodeGen/ValueTypes.h
llvm/include/llvm/Support/MachineValueType.h
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
llvm/unittests/CodeGen/ScalableVectorMVTsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88649.295533.patch
Type: text/x-patch
Size: 7451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201001/9dc7ed44/attachment-0001.bin>
More information about the llvm-commits
mailing list