[all-commits] [llvm/llvm-project] 8709bc: clang: Add __builtin_elementwise_fma

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Feb 24 17:55:26 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8709bcacfb3a06847b47bb6b47e8556db43f3a43
      https://github.com/llvm/llvm-project/commit/8709bcacfb3a06847b47bb6b47e8556db43f3a43
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/include/clang/Basic/Builtins.def
    M clang/include/clang/Sema/Sema.h
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/builtins-elementwise-math.c
    M clang/test/Sema/builtins-elementwise-math.c

  Log Message:
  -----------
  clang: Add  __builtin_elementwise_fma

I didn't understand why the other builtins have promotion logic,
or how it would apply for a ternary operation. Implicit conversions
are evil to begin with,  and even more so when the purpose is to get
an exact IR intrinsic. This checks all the arguments have the same type.




More information about the All-commits mailing list