From 2a3c07f89748121d21d5e59ec3e800a4413782b4 Mon Sep 17 00:00:00 2001 From: lorenzo chelini Date: Thu, 9 Jun 2022 09:05:44 +0200 Subject: [PATCH] [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 --- mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp b/mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp index 510540d6aa05..94f1f629a03b 100644 --- a/mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp +++ b/mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp @@ -25,8 +25,8 @@ using CopySignOpLowering = using CosOpLowering = VectorConvertToLLVMPattern; using CtPopFOpLowering = VectorConvertToLLVMPattern; -using ExpOpLowering = VectorConvertToLLVMPattern; using Exp2OpLowering = VectorConvertToLLVMPattern; +using ExpOpLowering = VectorConvertToLLVMPattern; using FloorOpLowering = VectorConvertToLLVMPattern; using FmaOpLowering = VectorConvertToLLVMPattern; @@ -35,10 +35,10 @@ using Log10OpLowering = using Log2OpLowering = VectorConvertToLLVMPattern; using LogOpLowering = VectorConvertToLLVMPattern; using PowFOpLowering = VectorConvertToLLVMPattern; -using SinOpLowering = VectorConvertToLLVMPattern; -using SqrtOpLowering = VectorConvertToLLVMPattern; using RoundOpLowering = VectorConvertToLLVMPattern; +using SinOpLowering = VectorConvertToLLVMPattern; +using SqrtOpLowering = VectorConvertToLLVMPattern; // A `CtLz/CtTz(a)` is converted into `CtLz/CtTz(a, false)`. template @@ -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 }