[all-commits] [llvm/llvm-project] b70d32: [HLSL][clang] Add elementwise builtin for atan2 (p...

Tex Riddell via All-commits all-commits at lists.llvm.org
Tue Oct 1 14:42:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b70d32789c9463d49b46b4e57c44607d1c956e4c
      https://github.com/llvm/llvm-project/commit/b70d32789c9463d49b46b4e57c44607d1c956e4c
  Author: Tex Riddell <texr at microsoft.com>
  Date:   2024-10-01 (Tue, 01 Oct 2024)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Builtins.td
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaHLSL.cpp
    M clang/test/CodeGen/builtins-elementwise-math.c
    M clang/test/CodeGen/strictfp-elementwise-bulitins.cpp
    A clang/test/CodeGenHLSL/builtins/atan2.hlsl
    M clang/test/Sema/aarch64-sve-vector-trig-ops.c
    M clang/test/Sema/builtins-elementwise-math.c
    M clang/test/Sema/riscv-rvv-vector-trig-ops.c
    M clang/test/SemaCXX/builtins-elementwise-math.cpp
    R clang/test/SemaHLSL/BuiltIns/fmod-errors.hlsl
    M clang/test/SemaHLSL/BuiltIns/half-float-only-errors.hlsl
    A clang/test/SemaHLSL/BuiltIns/half-float-only-errors2.hlsl
    R clang/test/SemaHLSL/BuiltIns/pow-errors.hlsl

  Log Message:
  -----------
  [HLSL][clang] Add elementwise builtin for atan2 (p3) (#110187)

This change is part of this proposal:
https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294

- Add HLSL frontend for atan2
- Add clang Builtin, map to new llvm.atan2
- SemaChecking restrict to floating point and 2 args
- SemaHLSL restrict to float or half.
- Add to clang ReleaseNotes.rst and LanguageExtensions.rst
- Add half-float-only-errors2.hlsl for 2 arg intrinsics, and update half-float-only-errors.hlsl with scalar case for consistency
- Remove fmod-errors.hlsl and pow-errors.hlsl now covered in half-float-only-errors2.hlsl

Part 3 for Implement the atan2 HLSL Function #70096.



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