#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/Math/IR/Math.h"
#include "mlir/Dialect/Math/Transforms/Passes.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/ImplicitLocOpBuilder.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/Transforms/DialectConversion.h"
usingnamespacemlir;
static Value createFloatConst(Location loc, Type type, APFloat value,
OpBuilder &b) { … }
static Value createFloatConst(Location loc, Type type, double value,
OpBuilder &b) { … }
static Value createIntConst(Location loc, Type type, int64_t value,
OpBuilder &b) { … }
static Value createTruncatedFPValue(Value operand, ImplicitLocOpBuilder &b) { … }
static LogicalResult convertSinhOp(math::SinhOp op, PatternRewriter &rewriter) { … }
static LogicalResult convertCoshOp(math::CoshOp op, PatternRewriter &rewriter) { … }
static LogicalResult convertTanhOp(math::TanhOp op, PatternRewriter &rewriter) { … }
static LogicalResult convertTanOp(math::TanOp op, PatternRewriter &rewriter) { … }
static LogicalResult convertAsinhOp(math::AsinhOp op,
PatternRewriter &rewriter) { … }
static LogicalResult convertAcoshOp(math::AcoshOp op,
PatternRewriter &rewriter) { … }
static LogicalResult convertAtanhOp(math::AtanhOp op,
PatternRewriter &rewriter) { … }
static LogicalResult convertFmaFOp(math::FmaOp op, PatternRewriter &rewriter) { … }
static LogicalResult convertFloorOp(math::FloorOp op,
PatternRewriter &rewriter) { … }
static LogicalResult convertCeilOp(math::CeilOp op, PatternRewriter &rewriter) { … }
static LogicalResult convertFPowIOp(math::FPowIOp op,
PatternRewriter &rewriter) { … }
static LogicalResult convertPowfOp(math::PowFOp op, PatternRewriter &rewriter) { … }
static LogicalResult convertExp2fOp(math::Exp2Op op,
PatternRewriter &rewriter) { … }
static LogicalResult convertRoundOp(math::RoundOp op,
PatternRewriter &rewriter) { … }
static LogicalResult convertCtlzOp(math::CountLeadingZerosOp op,
PatternRewriter &rewriter) { … }
static LogicalResult convertRoundEvenOp(math::RoundEvenOp op,
PatternRewriter &rewriter) { … }
static LogicalResult convertRsqrtOp(math::RsqrtOp op,
PatternRewriter &rewriter) { … }
void mlir::populateExpandCtlzPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandSinhPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandCoshPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandTanPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandTanhPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandAsinhPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandAcoshPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandAtanhPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandFmaFPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandCeilFPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandExp2FPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandPowFPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandFPowIPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandRoundFPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandFloorFPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandRoundEvenPattern(RewritePatternSet &patterns) { … }
void mlir::populateExpandRsqrtPattern(RewritePatternSet &patterns) { … }