MLIR 22.0.0git
Passes.h File Reference
#include "mlir/IR/PatternMatch.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Dialect/Math/Transforms/Passes.h.inc"

Go to the source code of this file.

Classes

struct  mlir::MathPolynomialApproximationOptions

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::math

Macros

#define GEN_PASS_DECL
#define GEN_PASS_REGISTRATION

Functions

void mlir::math::populateExpansionPatterns (RewritePatternSet &patterns, ArrayRef< StringRef > opMnemonics={})
 Adds patterns to expand math operations into other more fundamental operations.
void mlir::populateMathAlgebraicSimplificationPatterns (RewritePatternSet &patterns)
void mlir::populatePolynomialApproximateTanhPattern (RewritePatternSet &patterns)
void mlir::populatePolynomialApproximateErfPattern (RewritePatternSet &patterns)
void mlir::populatePolynomialApproximateErfcPattern (RewritePatternSet &patterns)
void mlir::populateMathF32ExpansionPatterns (RewritePatternSet &patterns, llvm::function_ref< bool(StringRef)> predicate, PatternBenefit=1)
void mlir::populateMathPolynomialApproximationPatterns (RewritePatternSet &patterns, llvm::function_ref< bool(StringRef)> predicate, PatternBenefit=1)
void mlir::populateMathPolynomialApproximationPatterns (RewritePatternSet &patterns, const MathPolynomialApproximationOptions &options={})
void mlir::populateUpliftToFMAPatterns (RewritePatternSet &patterns)
void mlir::math::populateExtendToSupportedTypesTypeConverter (TypeConverter &typeConverter, const SetVector< Type > &sourceTypes, Type targetType)
void mlir::math::populateExtendToSupportedTypesConversionTarget (ConversionTarget &target, TypeConverter &typeConverter)
void mlir::math::populateExtendToSupportedTypesPatterns (RewritePatternSet &patterns, const TypeConverter &typeConverter)

Macro Definition Documentation

◆ GEN_PASS_DECL

#define GEN_PASS_DECL

Definition at line 17 of file Passes.h.

◆ GEN_PASS_REGISTRATION

#define GEN_PASS_REGISTRATION

Definition at line 18 of file Passes.h.