MLIR 22.0.0git
IntRangeOptimizations.cpp File Reference

Go to the source code of this file.

Classes

class  mlir::arith::impl::ArithIntRangeOptsBase< DerivedT >
class  mlir::arith::impl::ArithIntRangeNarrowingBase< DerivedT >

Namespaces

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

Macros

#define GEN_PASS_DEF_ARITHINTRANGEOPTS
#define GEN_PASS_DEF_ARITHINTRANGENARROWING

Functions

std::unique_ptr<::mlir::Passmlir::arith::impl::createArithIntRangeOpts ()
std::unique_ptr<::mlir::Passmlir::arith::createArithIntRangeOpts ()
std::unique_ptr<::mlir::Passmlir::arith::impl::createArithIntRangeNarrowing ()
std::unique_ptr<::mlir::Passmlir::arith::impl::createArithIntRangeNarrowing (ArithIntRangeNarrowingOptions options)
std::unique_ptr<::mlir::Passmlir::arith::createArithIntRangeNarrowing ()
std::unique_ptr<::mlir::Passmlir::arith::createArithIntRangeNarrowing (ArithIntRangeNarrowingOptions options)
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