Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::VPIRFlags Class Reference

Class to record and manage LLVM IR flags. More...

#include "Transforms/Vectorize/VPlan.h"

Inheritance diagram for llvm::VPIRFlags:
[legend]

Classes

struct  DisjointFlagsTy
struct  NonNegFlagsTy
struct  TruncFlagsTy
struct  WrapFlagsTy

Public Member Functions

 VPIRFlags ()
 VPIRFlags (Instruction &I)
 VPIRFlags (CmpInst::Predicate Pred)
 VPIRFlags (WrapFlagsTy WrapFlags)
 VPIRFlags (FastMathFlags FMFs)
 VPIRFlags (DisjointFlagsTy DisjointFlags)
 VPIRFlags (NonNegFlagsTy NonNegFlags)
 VPIRFlags (GEPNoWrapFlags GEPFlags)
void transferFlags (VPIRFlags &Other)
void intersectFlags (const VPIRFlags &Other)
 Only keep flags also present in Other.
void dropPoisonGeneratingFlags ()
 Drop all poison-generating flags.
void applyFlags (Instruction &I) const
 Apply the IR flags to I.
CmpInst::Predicate getPredicate () const
void setPredicate (CmpInst::Predicate Pred)
GEPNoWrapFlags getGEPNoWrapFlags () const
bool hasPredicate () const
 Returns true if the recipe has a comparison predicate.
bool hasFastMathFlags () const
 Returns true if the recipe has fast-math flags.
LLVM_ABI_FOR_TEST FastMathFlags getFastMathFlags () const
bool hasNonNegFlag () const
 Returns true if the recipe has non-negative flag.
bool isNonNeg () const
bool hasNoUnsignedWrap () const
bool hasNoSignedWrap () const
bool isDisjoint () const
bool flagsValidForOpcode (unsigned Opcode) const
 Returns true if the set flags are valid for Opcode.
void printFlags (raw_ostream &O) const

Detailed Description

Class to record and manage LLVM IR flags.

Definition at line 600 of file VPlan.h.

Constructor & Destructor Documentation

◆ VPIRFlags() [1/8]

◆ VPIRFlags() [2/8]

llvm::VPIRFlags::VPIRFlags ( Instruction & I)
inline

◆ VPIRFlags() [3/8]

llvm::VPIRFlags::VPIRFlags ( CmpInst::Predicate Pred)
inline

Definition at line 702 of file VPlan.h.

References CmpPredicate.

◆ VPIRFlags() [4/8]

llvm::VPIRFlags::VPIRFlags ( WrapFlagsTy WrapFlags)
inline

Definition at line 705 of file VPlan.h.

References WrapFlags.

◆ VPIRFlags() [5/8]

llvm::VPIRFlags::VPIRFlags ( FastMathFlags FMFs)
inline

Definition at line 708 of file VPlan.h.

References FMFs.

◆ VPIRFlags() [6/8]

llvm::VPIRFlags::VPIRFlags ( DisjointFlagsTy DisjointFlags)
inline

Definition at line 710 of file VPlan.h.

References DisjointFlags.

◆ VPIRFlags() [7/8]

llvm::VPIRFlags::VPIRFlags ( NonNegFlagsTy NonNegFlags)
inline

Definition at line 713 of file VPlan.h.

References NonNegFlags.

◆ VPIRFlags() [8/8]

llvm::VPIRFlags::VPIRFlags ( GEPNoWrapFlags GEPFlags)
inline

Definition at line 716 of file VPlan.h.

References GEPFlags.

Member Function Documentation

◆ applyFlags()

◆ dropPoisonGeneratingFlags()

void llvm::VPIRFlags::dropPoisonGeneratingFlags ( )
inline

Drop all poison-generating flags.

Definition at line 729 of file VPlan.h.

References DisjointFlags, ExactFlags, FMFs, GEPFlags, llvm::GEPNoWrapFlags::none(), NonNegFlags, TruncFlags, and WrapFlags.

◆ flagsValidForOpcode()

◆ getFastMathFlags()

◆ getGEPNoWrapFlags()

◆ getPredicate()

CmpInst::Predicate llvm::VPIRFlags::getPredicate ( ) const
inline

◆ hasFastMathFlags()

bool llvm::VPIRFlags::hasFastMathFlags ( ) const
inline

Returns true if the recipe has fast-math flags.

Definition at line 819 of file VPlan.h.

Referenced by llvm::VPScalarIVStepsRecipe::clone(), llvm::VPInstruction::execute(), and llvm::VPScalarIVStepsRecipe::execute().

◆ hasNonNegFlag()

bool llvm::VPIRFlags::hasNonNegFlag ( ) const
inline

Returns true if the recipe has non-negative flag.

Definition at line 824 of file VPlan.h.

◆ hasNoSignedWrap()

bool llvm::VPIRFlags::hasNoSignedWrap ( ) const
inline

Definition at line 843 of file VPlan.h.

References llvm_unreachable, TruncFlags, and WrapFlags.

◆ hasNoUnsignedWrap()

bool llvm::VPIRFlags::hasNoUnsignedWrap ( ) const
inline

Definition at line 832 of file VPlan.h.

References llvm_unreachable, TruncFlags, and WrapFlags.

◆ hasPredicate()

bool llvm::VPIRFlags::hasPredicate ( ) const
inline

Returns true if the recipe has a comparison predicate.

Definition at line 816 of file VPlan.h.

Referenced by scalarizeInstruction().

◆ intersectFlags()

void VPIRFlags::intersectFlags ( const VPIRFlags & Other)

Only keep flags also present in Other.

Other must have the same OpType as the current object.

Definition at line 395 of file VPlanRecipes.cpp.

References AllFlags, assert(), CmpPredicate, DisjointFlags, ExactFlags, FMFs, GEPFlags, NonNegFlags, TruncFlags, VPIRFlags(), and WrapFlags.

◆ isDisjoint()

bool llvm::VPIRFlags::isDisjoint ( ) const
inline

Definition at line 854 of file VPlan.h.

References assert(), and DisjointFlags.

◆ isNonNeg()

bool llvm::VPIRFlags::isNonNeg ( ) const
inline

Definition at line 826 of file VPlan.h.

References assert(), and NonNegFlags.

◆ printFlags()

◆ setPredicate()

void llvm::VPIRFlags::setPredicate ( CmpInst::Predicate Pred)
inline

Definition at line 807 of file VPlan.h.

References assert(), and CmpPredicate.

◆ transferFlags()

void llvm::VPIRFlags::transferFlags ( VPIRFlags & Other)
inline

Definition at line 719 of file VPlan.h.

References AllFlags, and VPIRFlags().

Member Data Documentation

◆ AllFlags

unsigned llvm::VPIRFlags::AllFlags

Definition at line 665 of file VPlan.h.

Referenced by intersectFlags(), transferFlags(), VPIRFlags(), and VPIRFlags().

◆ CmpPredicate

CmpInst::Predicate llvm::VPIRFlags::CmpPredicate

Definition at line 657 of file VPlan.h.

Referenced by getPredicate(), intersectFlags(), setPredicate(), VPIRFlags(), and VPIRFlags().

◆ DisjointFlags

DisjointFlagsTy llvm::VPIRFlags::DisjointFlags

◆ ExactFlags

ExactFlagsTy llvm::VPIRFlags::ExactFlags

Definition at line 661 of file VPlan.h.

Referenced by applyFlags(), dropPoisonGeneratingFlags(), intersectFlags(), printFlags(), and VPIRFlags().

◆ FMFs

◆ GEPFlags

◆ NonNegFlags

NonNegFlagsTy llvm::VPIRFlags::NonNegFlags

◆ TruncFlags

TruncFlagsTy llvm::VPIRFlags::TruncFlags

◆ WrapFlags


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