[PATCH] D133737: [HLSL] [clang] Add vector version of abs for HLSL

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 16 07:04:47 PDT 2022


fhahn added a comment.

In D133737#3787066 <https://reviews.llvm.org/D133737#3787066>, @RKSimon wrote:

> The elementwise builtins should work for scalars as well (and IIRC we do test this as well).

Yep they should, it is specially specified here: https://clang.llvm.org/docs/LanguageExtensions.html#vector-builtins

> For scalar types, consider the operation applied to a vector with a single element.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133737



More information about the cfe-commits mailing list