[Mlir-commits] [mlir] 2a3c07f - [MLIR][Math] Re-order conversions alphabetically (NFC)
lorenzo chelini
llvmlistbot at llvm.org
Thu Jun 9 00:12:21 PDT 2022
Author: lorenzo chelini
Date: 2022-06-09T09:12:13+02:00
New Revision: 2a3c07f89748121d21d5e59ec3e800a4413782b4
URL: https://github.com/llvm/llvm-project/commit/2a3c07f89748121d21d5e59ec3e800a4413782b4
DIFF: https://github.com/llvm/llvm-project/commit/2a3c07f89748121d21d5e59ec3e800a4413782b4.diff
LOG: [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
Added:
Modified:
mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp b/mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
index 510540d6aa05b..94f1f629a03bf 100644
--- a/mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
+++ b/mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
@@ -25,8 +25,8 @@ using CopySignOpLowering =
using CosOpLowering = VectorConvertToLLVMPattern<math::CosOp, LLVM::CosOp>;
using CtPopFOpLowering =
VectorConvertToLLVMPattern<math::CtPopOp, LLVM::CtPopOp>;
-using ExpOpLowering = VectorConvertToLLVMPattern<math::ExpOp, LLVM::ExpOp>;
using Exp2OpLowering = VectorConvertToLLVMPattern<math::Exp2Op, LLVM::Exp2Op>;
+using ExpOpLowering = VectorConvertToLLVMPattern<math::ExpOp, LLVM::ExpOp>;
using FloorOpLowering =
VectorConvertToLLVMPattern<math::FloorOp, LLVM::FFloorOp>;
using FmaOpLowering = VectorConvertToLLVMPattern<math::FmaOp, LLVM::FMAOp>;
@@ -35,10 +35,10 @@ using Log10OpLowering =
using Log2OpLowering = VectorConvertToLLVMPattern<math::Log2Op, LLVM::Log2Op>;
using LogOpLowering = VectorConvertToLLVMPattern<math::LogOp, LLVM::LogOp>;
using PowFOpLowering = VectorConvertToLLVMPattern<math::PowFOp, LLVM::PowOp>;
-using SinOpLowering = VectorConvertToLLVMPattern<math::SinOp, LLVM::SinOp>;
-using SqrtOpLowering = VectorConvertToLLVMPattern<math::SqrtOp, LLVM::SqrtOp>;
using RoundOpLowering =
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)`.
template <typename MathOp, typename LLVMOp>
@@ -275,9 +275,9 @@ void mlir::populateMathToLLVMConversionPatterns(LLVMTypeConverter &converter,
CountLeadingZerosOpLowering,
CountTrailingZerosOpLowering,
CtPopFOpLowering,
- ExpOpLowering,
Exp2OpLowering,
ExpM1OpLowering,
+ ExpOpLowering,
FloorOpLowering,
FmaOpLowering,
Log10OpLowering,
@@ -285,10 +285,10 @@ void mlir::populateMathToLLVMConversionPatterns(LLVMTypeConverter &converter,
Log2OpLowering,
LogOpLowering,
PowFOpLowering,
+ RoundOpLowering,
RsqrtOpLowering,
SinOpLowering,
- SqrtOpLowering,
- RoundOpLowering
+ SqrtOpLowering
>(converter);
// clang-format on
}
More information about the Mlir-commits
mailing list