[MLIR]Add support for Arith MAX & MIN operations
authorMats Petersson <mats.petersson@arm.com>
Thu, 4 Aug 2022 19:11:32 +0000 (20:11 +0100)
committerMats Petersson <mats.petersson@arm.com>
Wed, 17 Aug 2022 16:00:53 +0000 (17:00 +0100)
commit1e12793491ecd4abec7c0533f52a3ff1c2e11dc4
tree128eefb22b8caf1272518522bf75f63c7fffc46e
parentda6ff3aecb73b2883b6a0b6f71b9e5c87e23b1a6
[MLIR]Add support for Arith MAX & MIN operations

There are some of this supported in various places, but the
basic conversion of single operations to LLVM was not supported.

Adding this to allow Flang to use these.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D131912
mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp
mlir/test/Conversion/ArithmeticToLLVM/arith-to-llvm.mlir