LLVM 22.0.0git
llvm::VFRange Struct Reference

A range of powers-of-2 vectorization factors with fixed start and adjustable end. More...

#include "Transforms/Vectorize/VPlanHelpers.h"

Classes

class  iterator
 Iterator to iterate over vectorization factors in a VFRange. More...

Public Member Functions

bool isEmpty () const
 VFRange (const ElementCount &Start, const ElementCount &End)
iterator begin ()
iterator end ()

Public Attributes

const ElementCount Start
ElementCount End

Detailed Description

A range of powers-of-2 vectorization factors with fixed start and adjustable end.

The range includes start and excludes end, e.g.,: [1, 16) = {1, 2, 4, 8}

Definition at line 71 of file VPlanHelpers.h.

Constructor & Destructor Documentation

◆ VFRange()

llvm::VFRange::VFRange ( const ElementCount & Start,
const ElementCount & End )
inline

Definition at line 82 of file VPlanHelpers.h.

References assert(), End, llvm::isPowerOf2_32(), and Start.

Member Function Documentation

◆ begin()

iterator llvm::VFRange::begin ( )
inline

Definition at line 111 of file VPlanHelpers.h.

References Start.

◆ end()

iterator llvm::VFRange::end ( )
inline

Definition at line 112 of file VPlanHelpers.h.

References assert(), End, and llvm::isPowerOf2_32().

◆ isEmpty()

bool llvm::VFRange::isEmpty ( ) const
inline

Definition at line 78 of file VPlanHelpers.h.

References End, and Start.

Member Data Documentation

◆ End

ElementCount llvm::VFRange::End

Definition at line 76 of file VPlanHelpers.h.

Referenced by llvm::LoopVectorizationPlanner::buildVPlans(), end(), isEmpty(), and VFRange().

◆ Start

const ElementCount llvm::VFRange::Start

Definition at line 73 of file VPlanHelpers.h.

Referenced by begin(), isEmpty(), and VFRange().


The documentation for this struct was generated from the following file: