LLVM 22.0.0git
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 109 of file ValueLattice.h.

Constructor & Destructor Documentation

◆ MergeOptions() [1/2]

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

Definition at line 121 of file ValueLattice.h.

References MergeOptions().

Referenced by MergeOptions(), setCheckWiden(), setMaxWidenSteps(), and setMayIncludeUndef().

◆ MergeOptions() [2/2]

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

Definition at line 123 of file ValueLattice.h.

References CheckWiden, MaxWidenSteps, and MayIncludeUndef.

Member Function Documentation

◆ setCheckWiden()

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

Definition at line 133 of file ValueLattice.h.

References CheckWiden, and MergeOptions().

◆ setMaxWidenSteps()

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

Definition at line 138 of file ValueLattice.h.

References CheckWiden, MaxWidenSteps, and MergeOptions().

Referenced by getMaxWidenStepsOpts().

◆ setMayIncludeUndef()

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

Definition at line 128 of file ValueLattice.h.

References MayIncludeUndef, and MergeOptions().

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 115 of file ValueLattice.h.

Referenced by MergeOptions(), setCheckWiden(), and setMaxWidenSteps().

◆ MaxWidenSteps

unsigned llvm::ValueLatticeElement::MergeOptions::MaxWidenSteps

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

Definition at line 119 of file ValueLattice.h.

Referenced by MergeOptions(), and setMaxWidenSteps().

◆ MayIncludeUndef

bool llvm::ValueLatticeElement::MergeOptions::MayIncludeUndef

The merge value may include undef.

Definition at line 111 of file ValueLattice.h.

Referenced by MergeOptions(), and setMayIncludeUndef().


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