LLVM 22.0.0git
SCCPSolver.cpp File Reference

Go to the source code of this file.

Classes

class  llvm::SCCPInstVisitor
 Helper class for SCCPSolver. More...

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Macros

#define DEBUG_TYPE   "sccp"

Functions

static ValueLatticeElement::MergeOptions getMaxWidenStepsOpts ()
 Returns MergeOptions with MaxWidenSteps set to MaxNumRangeExtensions.
static ConstantRange llvm::getRange (Value *Op, SCCPSolver &Solver, const SmallPtrSetImpl< Value * > &InsertedValues)
 Helper for getting ranges from Solver.
static bool llvm::refineInstruction (SCCPSolver &Solver, const SmallPtrSetImpl< Value * > &InsertedValues, Instruction &Inst)
 Try to use Inst's value range from Solver to infer the NUW flag.
static bool llvm::replaceSignedInst (SCCPSolver &Solver, SmallPtrSetImpl< Value * > &InsertedValues, Instruction &Inst)
 Try to replace signed instructions with their unsigned equivalent.
static Valuellvm::simplifyInstruction (SCCPSolver &Solver, SmallPtrSetImpl< Value * > &InsertedValues, Instruction &Inst)
 Try to use Inst's value range from Solver to simplify it.
static void llvm::inferAttribute (Function *F, unsigned AttrIndex, const ValueLatticeElement &Val)
static ValueLatticeElement getValueFromMetadata (const Instruction *I)

Variables

static const unsigned MaxNumRangeExtensions = 10

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "sccp"

Definition at line 38 of file SCCPSolver.cpp.

Function Documentation

◆ getMaxWidenStepsOpts()

ValueLatticeElement::MergeOptions getMaxWidenStepsOpts ( )
static

Returns MergeOptions with MaxWidenSteps set to MaxNumRangeExtensions.

Definition at line 45 of file SCCPSolver.cpp.

References MaxNumRangeExtensions, and llvm::ValueLatticeElement::MergeOptions::setMaxWidenSteps().

◆ getValueFromMetadata()

Variable Documentation

◆ MaxNumRangeExtensions

const unsigned MaxNumRangeExtensions = 10
static

Definition at line 42 of file SCCPSolver.cpp.

Referenced by getMaxWidenStepsOpts().