[PATCH] D133668: [HLSL] Use _BitInt(16) for int16_t to avoid promote to int.
Chris Bieneman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 11 12:19:22 PDT 2022
beanz added a comment.
HLSL deviates from C here. HLSL doesn't actually have `short` (although I'm actually not sure we should disable it in Clang). We do have `int16_t`, but we don't promote `int16_t` to `int`. We discussed changing codegen to disable promotion for HLSL, but it seemed more straightforward to me to just define `int16_t` as `_BitInt(16)`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133668/new/
https://reviews.llvm.org/D133668
More information about the cfe-commits
mailing list