[mlir][math][NFC] Migrate math dialect to the new fold API
authorMarkus Böck <markus.boeck02@gmail.com>
Tue, 10 Jan 2023 18:52:56 +0000 (19:52 +0100)
committerMarkus Böck <markus.boeck02@gmail.com>
Wed, 11 Jan 2023 17:11:46 +0000 (18:11 +0100)
commit6c30503ef8b41625cdf705fbea5eb0dacdc2c0ae
treed4815bb22618a746cc1cd9728bf091f4634dffc3
parentd5ac28efffa77191a65cacc25a39edfdef2ecc1a
[mlir][math][NFC] Migrate math dialect to the new fold API

See https://discourse.llvm.org/t/psa-new-improved-fold-method-signature-has-landed-please-update-your-downstream-projects/67618 for context

Similar to the patch for the arith dialect, the math dialects fold implementations make heavy use of generic fold functions, hence the change being comparatively mechanical and mostly changing the function signature.

Differential Revision: https://reviews.llvm.org/D141500
mlir/include/mlir/Dialect/Math/IR/MathBase.td
mlir/lib/Dialect/Math/IR/MathOps.cpp