[PATCH] D145270: Add codegen for llvm exp/exp2 elementwise builtins

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 8 09:00:53 PST 2023


fhahn added inline comments.


================
Comment at: clang/docs/LanguageExtensions.rst:643
+ T __builtin_elementwise_exp(T x)            returns the base-e exponential, or e^x, of the specified value   floating point types
+ T __builtin_elementwise_exp2(T x)           returns the base-2 exponential, or 2^x, of the specified value   floating point types
  T __builtin_elementwise_roundeven(T x)      round x to the nearest integer value in floating point format,   floating point types
----------------
the wording using `or` seems a bit confusing as it might be interpreted as either-or (but I am not a native speaker). It might be slightly better to perhaps just drop the `or`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145270/new/

https://reviews.llvm.org/D145270



More information about the cfe-commits mailing list