[all-commits] [llvm/llvm-project] 26eb70: Add builtin_elementwise_log

Joshua Batista via All-commits all-commits at lists.llvm.org
Thu Feb 2 11:37:00 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26eb70820fb860ccf97c57ee26502ff621cf4ed2
      https://github.com/llvm/llvm-project/commit/26eb70820fb860ccf97c57ee26502ff621cf4ed2
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  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-log-ops.c
    M clang/test/Sema/builtins-elementwise-math.c
    A clang/test/Sema/riscv-sve-vector-log-ops.c
    M clang/test/SemaCXX/builtins-elementwise-math.cpp

  Log Message:
  -----------
  Add builtin_elementwise_log

Add codegen for llvm log elementwise builtin
The log elementwise builtin is 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 builtin is restricted to floating point types only.

Reviewed By: beanz

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




More information about the All-commits mailing list