[all-commits] [llvm/llvm-project] 99608f: [clang][HLSL] Add sign intrinsic part 4 (#108396)
Tim Gymnich via All-commits
all-commits at lists.llvm.org
Thu Oct 10 02:18:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 99608f114f36efe30572d2bbf281cae56df78a9a
https://github.com/llvm/llvm-project/commit/99608f114f36efe30572d2bbf281cae56df78a9a
Author: Tim Gymnich <tgymnich at icloud.com>
Date: 2024-10-10 (Thu, 10 Oct 2024)
Changed paths:
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/Headers/hlsl/hlsl_intrinsics.h
M clang/lib/Sema/SemaHLSL.cpp
M clang/test/CodeGenHLSL/builtins/sign.hlsl
Log Message:
-----------
[clang][HLSL] Add sign intrinsic part 4 (#108396)
- Add handling for unsigned integers to hlsl_elementwise_sign
- Use `select` instead of adding dx and spirv intrinsics for unsigned
integers as [discussed previously
](https://github.com/llvm/llvm-project/pull/101988#discussion_r1736779424)
fixes #70078
### Related PRs
- https://github.com/llvm/llvm-project/pull/101987
- https://github.com/llvm/llvm-project/pull/101988
- https://github.com/llvm/llvm-project/pull/101989
cc @farzonl @pow2clk @bob80905 @bogner @llvm-beanz
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