LLVM  14.0.0git
Classes | Namespaces | Macros | Functions | Variables
SCCPSolver.cpp File Reference
#include "llvm/Transforms/Utils/SCCPSolver.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Utils/Local.h"
#include <cassert>
#include <utility>
#include <vector>
Include dependency graph for SCCPSolver.cpp:

Go to the source code of this file.

Classes

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

Namespaces

 llvm
 This file implements support for optimizing divisions by a constant.
 

Macros

#define DEBUG_TYPE   "sccp"
 

Functions

static ValueLatticeElement::MergeOptions getMaxWidenStepsOpts ()
 Returns MergeOptions with MaxWidenSteps set to MaxNumRangeExtensions. More...
 
static ValueLatticeElement getValueFromMetadata (const Instruction *I)
 

Variables

static const unsigned MaxNumRangeExtensions = 10
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "sccp"

Definition at line 32 of file SCCPSolver.cpp.

Function Documentation

◆ getMaxWidenStepsOpts()

static ValueLatticeElement::MergeOptions getMaxWidenStepsOpts ( )
static

Returns MergeOptions with MaxWidenSteps set to MaxNumRangeExtensions.

Definition at line 39 of file SCCPSolver.cpp.

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

◆ getValueFromMetadata()

static ValueLatticeElement getValueFromMetadata ( const Instruction I)
static

Variable Documentation

◆ MaxNumRangeExtensions

const unsigned MaxNumRangeExtensions = 10
static

Definition at line 36 of file SCCPSolver.cpp.

Referenced by getMaxWidenStepsOpts().