[PATCH] D95676: [VPlan][NFC] Introduce constructors for VPIteration

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 05:24:40 PST 2021


david-arm created this revision.
david-arm added reviewers: sdesmalen, fhahn, kmclaughlin.
Herald added subscribers: tschuett, psnobl, rogfer01, bollu, hiraditya.
david-arm requested review of this revision.
Herald added subscribers: llvm-commits, vkmr.
Herald added a project: LLVM.

This patch adds constructors to VPIteration as a cleaner way of
initialising the struct and replaces existing constructions of
the form:

  {Part, Lane}

with

  VPIteration(Part, Lane)

I have also added a default constructor, which is used by VPlan.cpp
when deciding whether to replicate a block or not.

This refactoring will be required in a later patch that adds more
members and functions to VPIteration.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95676

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/lib/Transforms/Vectorize/VPlan.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95676.320114.patch
Type: text/x-patch
Size: 9129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210129/bb9ac40e/attachment.bin>


More information about the llvm-commits mailing list