[all-commits] [llvm/llvm-project] 4b4ea6: [HLSL] Make casting functions constexpr (#108902)
Chris B via All-commits
all-commits at lists.llvm.org
Fri Sep 20 14:43:15 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4b4ea6d84bddb5e7b3f144d18630390755e8f7b6
https://github.com/llvm/llvm-project/commit/4b4ea6d84bddb5e7b3f144d18630390755e8f7b6
Author: Chris B <chris.bieneman at me.com>
Date: 2024-09-20 (Fri, 20 Sep 2024)
Changed paths:
M clang/lib/Headers/hlsl/hlsl_detail.h
M clang/lib/Headers/hlsl/hlsl_intrinsics.h
M clang/test/CodeGenHLSL/builtins/asuint.hlsl
A clang/test/SemaHLSL/BuiltIns/asfloat-constexpr.hlsl
A clang/test/SemaHLSL/BuiltIns/asuint-constexpr.hlsl
Log Message:
-----------
[HLSL] Make casting functions constexpr (#108902)
This marks the `bit_cast` helper as `constexpr` and allows the casts
implemented with it to also be `constexpr`. This is largely not a
functional change, but it enables using the casts in expressions that
need to be resolved at compile time as demonstrated with the static
asserts in the new tests.
---------
Co-authored-by: joaosaffran <126493771+joaosaffran at users.noreply.github.com>
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