forked from OSchip/llvm-project
[MLIR][Math] Re-order conversions alphabetically (NFC)
Minor follow-up after: D127286 (https://reviews.llvm.org/D127286/new/) Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D127382
This commit is contained in:
parent
7e17e15c9f
commit
2a3c07f897
|
@ -25,8 +25,8 @@ using CopySignOpLowering =
|
||||||
using CosOpLowering = VectorConvertToLLVMPattern<math::CosOp, LLVM::CosOp>;
|
using CosOpLowering = VectorConvertToLLVMPattern<math::CosOp, LLVM::CosOp>;
|
||||||
using CtPopFOpLowering =
|
using CtPopFOpLowering =
|
||||||
VectorConvertToLLVMPattern<math::CtPopOp, LLVM::CtPopOp>;
|
VectorConvertToLLVMPattern<math::CtPopOp, LLVM::CtPopOp>;
|
||||||
using ExpOpLowering = VectorConvertToLLVMPattern<math::ExpOp, LLVM::ExpOp>;
|
|
||||||
using Exp2OpLowering = VectorConvertToLLVMPattern<math::Exp2Op, LLVM::Exp2Op>;
|
using Exp2OpLowering = VectorConvertToLLVMPattern<math::Exp2Op, LLVM::Exp2Op>;
|
||||||
|
using ExpOpLowering = VectorConvertToLLVMPattern<math::ExpOp, LLVM::ExpOp>;
|
||||||
using FloorOpLowering =
|
using FloorOpLowering =
|
||||||
VectorConvertToLLVMPattern<math::FloorOp, LLVM::FFloorOp>;
|
VectorConvertToLLVMPattern<math::FloorOp, LLVM::FFloorOp>;
|
||||||
using FmaOpLowering = VectorConvertToLLVMPattern<math::FmaOp, LLVM::FMAOp>;
|
using FmaOpLowering = VectorConvertToLLVMPattern<math::FmaOp, LLVM::FMAOp>;
|
||||||
|
@ -35,10 +35,10 @@ using Log10OpLowering =
|
||||||
using Log2OpLowering = VectorConvertToLLVMPattern<math::Log2Op, LLVM::Log2Op>;
|
using Log2OpLowering = VectorConvertToLLVMPattern<math::Log2Op, LLVM::Log2Op>;
|
||||||
using LogOpLowering = VectorConvertToLLVMPattern<math::LogOp, LLVM::LogOp>;
|
using LogOpLowering = VectorConvertToLLVMPattern<math::LogOp, LLVM::LogOp>;
|
||||||
using PowFOpLowering = VectorConvertToLLVMPattern<math::PowFOp, LLVM::PowOp>;
|
using PowFOpLowering = VectorConvertToLLVMPattern<math::PowFOp, LLVM::PowOp>;
|
||||||
using SinOpLowering = VectorConvertToLLVMPattern<math::SinOp, LLVM::SinOp>;
|
|
||||||
using SqrtOpLowering = VectorConvertToLLVMPattern<math::SqrtOp, LLVM::SqrtOp>;
|
|
||||||
using RoundOpLowering =
|
using RoundOpLowering =
|
||||||
VectorConvertToLLVMPattern<math::RoundOp, LLVM::RoundOp>;
|
VectorConvertToLLVMPattern<math::RoundOp, LLVM::RoundOp>;
|
||||||
|
using SinOpLowering = VectorConvertToLLVMPattern<math::SinOp, LLVM::SinOp>;
|
||||||
|
using SqrtOpLowering = VectorConvertToLLVMPattern<math::SqrtOp, LLVM::SqrtOp>;
|
||||||
|
|
||||||
// A `CtLz/CtTz(a)` is converted into `CtLz/CtTz(a, false)`.
|
// A `CtLz/CtTz(a)` is converted into `CtLz/CtTz(a, false)`.
|
||||||
template <typename MathOp, typename LLVMOp>
|
template <typename MathOp, typename LLVMOp>
|
||||||
|
@ -275,9 +275,9 @@ void mlir::populateMathToLLVMConversionPatterns(LLVMTypeConverter &converter,
|
||||||
CountLeadingZerosOpLowering,
|
CountLeadingZerosOpLowering,
|
||||||
CountTrailingZerosOpLowering,
|
CountTrailingZerosOpLowering,
|
||||||
CtPopFOpLowering,
|
CtPopFOpLowering,
|
||||||
ExpOpLowering,
|
|
||||||
Exp2OpLowering,
|
Exp2OpLowering,
|
||||||
ExpM1OpLowering,
|
ExpM1OpLowering,
|
||||||
|
ExpOpLowering,
|
||||||
FloorOpLowering,
|
FloorOpLowering,
|
||||||
FmaOpLowering,
|
FmaOpLowering,
|
||||||
Log10OpLowering,
|
Log10OpLowering,
|
||||||
|
@ -285,10 +285,10 @@ void mlir::populateMathToLLVMConversionPatterns(LLVMTypeConverter &converter,
|
||||||
Log2OpLowering,
|
Log2OpLowering,
|
||||||
LogOpLowering,
|
LogOpLowering,
|
||||||
PowFOpLowering,
|
PowFOpLowering,
|
||||||
|
RoundOpLowering,
|
||||||
RsqrtOpLowering,
|
RsqrtOpLowering,
|
||||||
SinOpLowering,
|
SinOpLowering,
|
||||||
SqrtOpLowering,
|
SqrtOpLowering
|
||||||
RoundOpLowering
|
|
||||||
>(converter);
|
>(converter);
|
||||||
// clang-format on
|
// clang-format on
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue