[all-commits] [llvm/llvm-project] 4c8205: Add codegen for llvm exp/exp2 elementwise builtins

Joshua Batista via All-commits all-commits at lists.llvm.org
Thu Mar 9 12:15:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c82050c56926d840e4ccf253ad10e6ae3ee6cc7
      https://github.com/llvm/llvm-project/commit/4c82050c56926d840e4ccf253ad10e6ae3ee6cc7
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2023-03-09 (Thu, 09 Mar 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-exp-ops.c
    M clang/test/Sema/builtins-elementwise-math.c
    A clang/test/Sema/riscv-sve-vector-exp-ops.c
    M clang/test/SemaCXX/builtins-elementwise-math.cpp

  Log Message:
  -----------
  Add codegen for llvm exp/exp2 elementwise builtins

Add codegen for llvm exp/exp2 elementwise builtin
The exp/exp2 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: fhahn

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




More information about the All-commits mailing list