[FPEnv] Remove unnecessary rounding mode argument for constrained intrinsics
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 17 Dec 2019 20:08:18 +0000 (21:08 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 17 Dec 2019 20:10:36 +0000 (21:10 +0100)
commit1e89188d3537d419f6bdc3276ab8848adf6752f5
treebdb76e40cdf9b2a2177d29da743265f8ccc45929
parentb6e7084e25ad0592b8e29ceea6462952e2ad79b9
[FPEnv] Remove unnecessary rounding mode argument for constrained intrinsics

The following intrinsics currently carry a rounding mode metadata argument:

    llvm.experimental.constrained.minnum
    llvm.experimental.constrained.maxnum
    llvm.experimental.constrained.ceil
    llvm.experimental.constrained.floor
    llvm.experimental.constrained.round
    llvm.experimental.constrained.trunc

This is not useful since the semantics of those intrinsics do not in any way
depend on the rounding mode. In similar cases, other constrained intrinsics
do not have the rounding mode argument. Remove it here as well.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D71218
18 files changed:
clang/test/CodeGen/constrained-math-builtins.c
llvm/docs/LangRef.rst
llvm/include/llvm/IR/ConstrainedOps.def
llvm/include/llvm/IR/IRBuilder.h
llvm/include/llvm/IR/Intrinsics.td
llvm/test/CodeGen/ARM/fp-intrinsics.ll
llvm/test/CodeGen/PowerPC/ppcf128-constrained-fp-intrinsics.ll
llvm/test/CodeGen/PowerPC/vector-constrained-fp-intrinsics.ll
llvm/test/CodeGen/SystemZ/fp-strict-round-01.ll
llvm/test/CodeGen/SystemZ/fp-strict-round-02.ll
llvm/test/CodeGen/SystemZ/fp-strict-round-03.ll
llvm/test/CodeGen/SystemZ/vec-strict-max-01.ll
llvm/test/CodeGen/SystemZ/vec-strict-min-01.ll
llvm/test/CodeGen/SystemZ/vec-strict-round-01.ll
llvm/test/CodeGen/SystemZ/vec-strict-round-02.ll
llvm/test/CodeGen/SystemZ/vector-constrained-fp-intrinsics.ll
llvm/test/CodeGen/X86/fp128-libcalls-strict.ll
llvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll