[all-commits] [llvm/llvm-project] a5d14f: Add builtin_elementwise_sin and builtin_elementwis...

Joshua Batista via All-commits all-commits at lists.llvm.org
Thu Nov 10 23:31:31 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5d14f757bb1afa47925d7d77bea6bf73bbe0434
      https://github.com/llvm/llvm-project/commit/a5d14f757bb1afa47925d7d77bea6bf73bbe0434
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Builtins.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/builtins-elementwise-math.c
    A clang/test/Sema/aarch64-sve-vector-trig-ops.c
    M clang/test/Sema/builtins-elementwise-math.c
    A clang/test/Sema/riscv-sve-vector-trig-ops.c
    M clang/test/SemaCXX/builtins-elementwise-math.cpp

  Log Message:
  -----------
  Add builtin_elementwise_sin and builtin_elementwise_cos

Add codegen for llvm cos and sin elementwise builtins
The sin and cos elementwise builtins are necessary for HLSL codegen.
Tests were added to make sure that the expected errors are encountered
when these functions are given inputs of incompatible types.
The new builtins are restricted to floating point types only.

Reviewed By: craig.topper, fhahn

Differential Revision: https://reviews.llvm.org/D135011




More information about the All-commits mailing list