LLVM  12.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"

Collaboration diagram for llvm::ValueLatticeElement::MergeOptions:
Collaboration graph
[legend]

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. More...
 
bool CheckWiden
 Handle repeatedly extending a range by going to overdefined after a number of steps. More...
 
unsigned MaxWidenSteps
 The number of allowed widening steps (including setting the range initially). More...
 

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.

◆ MergeOptions() [2/2]

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

Definition at line 123 of file ValueLattice.h.

Member Function Documentation

◆ setCheckWiden()

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

Definition at line 133 of file ValueLattice.h.

References CheckWiden.

◆ setMaxWidenSteps()

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

Definition at line 138 of file ValueLattice.h.

References CheckWiden, and MaxWidenSteps.

Referenced by getMaxWidenStepsOpts().

◆ setMayIncludeUndef()

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

Definition at line 128 of file ValueLattice.h.

References MayIncludeUndef.

Referenced by llvm::ValueLatticeElement::markConstant().

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 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 setMaxWidenSteps().

◆ MayIncludeUndef

bool llvm::ValueLatticeElement::MergeOptions::MayIncludeUndef

The merge value may include undef.

Definition at line 111 of file ValueLattice.h.

Referenced by setMayIncludeUndef().


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