[flang-commits] [flang] [flang][hlfir] Add hlfir.maxval intrinsic (PR #65705)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Fri Sep 8 03:11:07 PDT 2023
================
@@ -404,6 +404,32 @@ def hlfir_CountOp : hlfir_Op<"count", [AttrSizedOperandSegments, DeclareOpInterf
let hasVerifier = 1;
}
+def hlfir_MaxvalOp : hlfir_Op<"maxval", [AttrSizedOperandSegments,
+ DeclareOpInterfaceMethods<ArithFastMathInterface>]> {
----------------
tblah wrote:
Please could you add memory effects like I did in https://reviews.llvm.org/D158662. This is new since the previous intrinsics were added.
You will need to `DeclareOpInterfaceMethods<MemoryEffectsOpInterface>`, add an implementation of `MaxValOp::getEffects` which calls `getIntrinsicEffects` and add a test to `memory-effects.fir`
https://github.com/llvm/llvm-project/pull/65705
More information about the flang-commits
mailing list