MLIR 22.0.0git
IntRangeOptimizations.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::arith
namespace  mlir::dataflow

Macros

#define GEN_PASS_DEF_ARITHINTRANGEOPTS
#define GEN_PASS_DEF_ARITHINTRANGENARROWING

Functions

static std::optional< APInt > getMaybeConstantValue (DataFlowSolver &solver, Value value)
static void copyIntegerRange (DataFlowSolver &solver, Value oldVal, Value newVal)
LogicalResult mlir::dataflow::maybeReplaceWithConstant (DataFlowSolver &solver, RewriterBase &rewriter, Value value)
 Patterned after SCCP.

Macro Definition Documentation

◆ GEN_PASS_DEF_ARITHINTRANGENARROWING

#define GEN_PASS_DEF_ARITHINTRANGENARROWING

Definition at line 31 of file IntRangeOptimizations.cpp.

◆ GEN_PASS_DEF_ARITHINTRANGEOPTS

#define GEN_PASS_DEF_ARITHINTRANGEOPTS

Definition at line 28 of file IntRangeOptimizations.cpp.

Function Documentation

◆ copyIntegerRange()

◆ getMaybeConstantValue()

std::optional< APInt > getMaybeConstantValue ( DataFlowSolver & solver,
Value value )
static