[PATCH] D96011: [NFC][Analysis] Change struct VecDesc to use ElementCount

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 03:19:03 PST 2021


david-arm created this revision.
david-arm added reviewers: sdesmalen, kmclaughlin, spatel, fpetrogalli.
Herald added a subscriber: hiraditya.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch changes the VecDesc struct to use ElementCount
instead of an unsigned VF value, in preparation for
future work that adds support for vectorized versions of
math functions using scalable vectors. Since all I'm doing
in this patch is switching the type I believe it's a
non-functional change. I changed getWidestVF to now return
both the widest fixed-width and scalable VF values, but
currently the widest scalable value will be zero.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96011

Files:
  llvm/include/llvm/Analysis/TargetLibraryInfo.h
  llvm/include/llvm/Analysis/VecFuncs.def
  llvm/include/llvm/Analysis/VectorUtils.h
  llvm/lib/Analysis/TargetLibraryInfo.cpp
  llvm/lib/Analysis/VectorUtils.cpp
  llvm/lib/Transforms/Utils/InjectTLIMappings.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  llvm/unittests/Analysis/VectorFunctionABITest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96011.321366.patch
Type: text/x-patch
Size: 43385 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/82d92aa4/attachment.bin>


More information about the llvm-commits mailing list