LLVM 23.0.0git
llvm::VPCanonicalIVInfo Class Reference

Track information about the canonical IV and header mask of a loop region. More...

#include "Transforms/Vectorize/VPlan.h"

Public Member Functions

 VPCanonicalIVInfo (Type *Ty, DebugLoc DL, VPRegionBlock *Region)
VPRegionValuegetRegionValue ()
const VPRegionValuegetRegionValue () const
VPRegionValuegetHeaderMask () const
VPRegionValuecreateHeaderMask ()
 Create the header mask for the region and return it.
bool hasNUW () const
void clearNUW ()

Detailed Description

Track information about the canonical IV and header mask of a loop region.

TODO: Have it also track the canonical IV increment, subject of NUW flag.

Definition at line 4539 of file VPlan.h.

Constructor & Destructor Documentation

◆ VPCanonicalIVInfo()

llvm::VPCanonicalIVInfo::VPCanonicalIVInfo ( Type * Ty,
DebugLoc DL,
VPRegionBlock * Region )
inline

Definition at line 4551 of file VPlan.h.

References DL.

Member Function Documentation

◆ clearNUW()

void llvm::VPCanonicalIVInfo::clearNUW ( )
inline

Definition at line 4571 of file VPlan.h.

◆ createHeaderMask()

VPRegionValue * llvm::VPCanonicalIVInfo::createHeaderMask ( )
inline

Create the header mask for the region and return it.

Must only be called when no header mask exists yet.

Definition at line 4561 of file VPlan.h.

References assert(), llvm::Type::getInt1Ty(), and llvm::DebugLoc::getUnknown().

◆ getHeaderMask()

VPRegionValue * llvm::VPCanonicalIVInfo::getHeaderMask ( ) const
inline

Definition at line 4557 of file VPlan.h.

◆ getRegionValue() [1/2]

VPRegionValue * llvm::VPCanonicalIVInfo::getRegionValue ( )
inline

Definition at line 4554 of file VPlan.h.

◆ getRegionValue() [2/2]

const VPRegionValue * llvm::VPCanonicalIVInfo::getRegionValue ( ) const
inline

Definition at line 4555 of file VPlan.h.

◆ hasNUW()

bool llvm::VPCanonicalIVInfo::hasNUW ( ) const
inline

Definition at line 4569 of file VPlan.h.


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