[all-commits] [llvm/llvm-project] 3a98e7: clang: Add elementwise pow builtin

Joshua Batista via All-commits all-commits at lists.llvm.org
Mon Jul 24 14:04:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a98e73169e1d8e4fbb739462eea62445db1a6c8
      https://github.com/llvm/llvm-project/commit/3a98e73169e1d8e4fbb739462eea62445db1a6c8
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2023-07-24 (Mon, 24 Jul 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
    M clang/test/CodeGen/strictfp-elementwise-bulitins.cpp
    A clang/test/Sema/aarch64-sve-vector-pow-ops.c
    M clang/test/Sema/builtins-elementwise-math.c
    A clang/test/Sema/riscv-sve-vector-pow-ops.c
    M clang/test/SemaCXX/builtins-elementwise-math.cpp

  Log Message:
  -----------
   clang: Add elementwise pow builtin

Add codegen for llvm pow elementwise builtin
The pow 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, or too many inputs.
The new builtin is restricted to floating point types only.

Reviewed By: arsenm

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




More information about the All-commits mailing list