[all-commits] [llvm/llvm-project] b15a0a: [clang] Add tanf16 builtin and support for tan con...

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Wed May 29 08:16:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b15a0a37404f36bcd9c7995de8cd16f9cb5ac8af
      https://github.com/llvm/llvm-project/commit/b15a0a37404f36bcd9c7995de8cd16f9cb5ac8af
  Author: Farzon Lotfi <1802579+farzonl at users.noreply.github.com>
  Date:   2024-05-29 (Wed, 29 May 2024)

  Changed paths:
    M clang/include/clang/Basic/Builtins.td
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/X86/math-builtins.c
    M clang/test/CodeGen/constrained-math-builtins.c
    M clang/test/CodeGen/math-libcalls.c
    M clang/test/CodeGenOpenCL/builtins-f16.cl
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/CodeGen/ISDOpcodes.h
    M llvm/include/llvm/IR/ConstrainedOps.def
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/test/Assembler/fp-intrinsics-attr.ll
    M llvm/test/Feature/fp-intrinsics.ll

  Log Message:
  -----------
  [clang] Add tanf16 builtin and support for tan constrained intrinsic (#93314)

In LLVM, the `llvm.experimental.constrained.cos` and
`llvm.experimental.constrained.sin` intrinsics are used for performing
cosine and sine calculations with additional constraints on
floating-point operations. This behavior is expected for all
floating-point math intrinsics. This change adds these constraints for
the `tan` intrinsic.

-  `Builtins.td` - replace TanF128 with F16F128MathTemplate
- `CGBuiltin.cpp` - map existing tan builtins to `tan` and
`constrained_tan` intrinsic
-   `ConstrainedOps.def` map tan and constrained_tan  to an ISDOpcode.
-  `ISDOpcodes.h` - define tan and strict tan  opcodes

resolves  #91421



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list