LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::ValueLatticeElement::MergeOptions Struct Reference

Struct to control some aspects related to merging constant ranges. More...

#include "llvm/Analysis/ValueLattice.h"

Public Member Functions

 MergeOptions ()
 
 MergeOptions (bool MayIncludeUndef, bool CheckWiden, unsigned MaxWidenSteps=1)
 
MergeOptionssetMayIncludeUndef (bool V=true)
 
MergeOptionssetCheckWiden (bool V=true)
 
MergeOptionssetMaxWidenSteps (unsigned Steps=1)
 

Public Attributes

bool MayIncludeUndef
 The merge value may include undef.
 
bool CheckWiden
 Handle repeatedly extending a range by going to overdefined after a number of steps.
 
unsigned MaxWidenSteps
 The number of allowed widening steps (including setting the range initially).
 

Detailed Description

Struct to control some aspects related to merging constant ranges.

Definition at line 111 of file ValueLattice.h.

Constructor & Destructor Documentation

◆ MergeOptions() [1/2]

llvm::ValueLatticeElement::MergeOptions::MergeOptions ( )
inline

Definition at line 123 of file ValueLattice.h.

◆ MergeOptions() [2/2]

llvm::ValueLatticeElement::MergeOptions::MergeOptions ( bool  MayIncludeUndef,
bool  CheckWiden,
unsigned  MaxWidenSteps = 1 
)
inline

Definition at line 125 of file ValueLattice.h.

Member Function Documentation

◆ setCheckWiden()

MergeOptions & llvm::ValueLatticeElement::MergeOptions::setCheckWiden ( bool  V = true)
inline

Definition at line 135 of file ValueLattice.h.

References CheckWiden.

◆ setMaxWidenSteps()

MergeOptions & llvm::ValueLatticeElement::MergeOptions::setMaxWidenSteps ( unsigned  Steps = 1)
inline

Definition at line 140 of file ValueLattice.h.

References CheckWiden, and MaxWidenSteps.

Referenced by getMaxWidenStepsOpts().

◆ setMayIncludeUndef()

MergeOptions & llvm::ValueLatticeElement::MergeOptions::setMayIncludeUndef ( bool  V = true)
inline

Definition at line 130 of file ValueLattice.h.

References MayIncludeUndef.

Member Data Documentation

◆ CheckWiden

bool llvm::ValueLatticeElement::MergeOptions::CheckWiden

Handle repeatedly extending a range by going to overdefined after a number of steps.

Definition at line 117 of file ValueLattice.h.

Referenced by setCheckWiden(), and setMaxWidenSteps().

◆ MaxWidenSteps

unsigned llvm::ValueLatticeElement::MergeOptions::MaxWidenSteps

The number of allowed widening steps (including setting the range initially).

Definition at line 121 of file ValueLattice.h.

Referenced by setMaxWidenSteps().

◆ MayIncludeUndef

bool llvm::ValueLatticeElement::MergeOptions::MayIncludeUndef

The merge value may include undef.

Definition at line 113 of file ValueLattice.h.

Referenced by setMayIncludeUndef().


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