From: Tobias Gysi Date: Fri, 24 Feb 2023 14:47:23 +0000 (+0100) Subject: [mlir][llvm] Add FastmathFlagsInterface only once (NFC). X-Git-Tag: upstream/17.0.6~16555 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a52332df5d1f9de05d9cd5b4a02b0888e28aa5cf;p=platform%2Fupstream%2Fllvm.git [mlir][llvm] Add FastmathFlagsInterface only once (NFC). Previously, the FastmathFlagsInterface has been added twice to the LLVM::PowIOp. Once directly and once indirectly using the requiresFastmath flag. This revision only uses the flag and drops the redundant interface. Reviewed By: definelicht Differential Revision: https://reviews.llvm.org/D144702 --- diff --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td b/mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td index 08aca38..8ef2dc5 100644 --- a/mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td +++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td @@ -109,8 +109,7 @@ def LLVM_FTruncOp : LLVM_UnaryIntrOpF<"trunc">; def LLVM_SqrtOp : LLVM_UnaryIntrOpF<"sqrt">; def LLVM_PowOp : LLVM_BinarySameArgsIntrOpF<"pow">; def LLVM_PowIOp : LLVM_OneResultIntrOp<"powi", [], [0,1], - [DeclareOpInterfaceMethods, Pure], - /*requiresFastmath=*/1> { + [Pure], /*requiresFastmath=*/1> { let arguments = (ins LLVM_ScalarOrVectorOf:$val, AnySignlessInteger:$power,