24void transform::ApplyF32ExpansionPatternsOp::populatePatterns(
29void transform::ApplyPolynomialApproximationPatternsOp::populatePatterns(
31 bool enableAvx2 = getEnableAvx2();
34 return enableAvx2 || name != math::RsqrtOp::getOperationName();
43class MathTransformDialectExtension
45 MathTransformDialectExtension> {
49 MathTransformDialectExtension() {
50 declareGeneratedDialect<arith::ArithDialect>();
51 declareGeneratedDialect<math::MathDialect>();
52 declareGeneratedDialect<vector::VectorDialect>();
53 declareGeneratedDialect<x86::X86Dialect>();
56#include "mlir/Dialect/Math/TransformOps/MathTransformOps.cpp.inc"
63#include "mlir/Dialect/Math/TransformOps/MathTransformOps.cpp.inc"
#define MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(CLASS_NAME)
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
void addExtensions()
Add the given extensions to the registry.
Base class for extensions of the Transform dialect that supports injecting operations into the Transf...
void registerTransformDialectExtension(DialectRegistry ®istry)
Include the generated interface declarations.
void populateMathF32ExpansionPatterns(RewritePatternSet &patterns, llvm::function_ref< bool(StringRef)> predicate, PatternBenefit=1)
void populateMathPolynomialApproximationPatterns(RewritePatternSet &patterns, llvm::function_ref< bool(StringRef)> predicate, PatternBenefit=1)