[PATCH] D133668: [HLSL] Use _BitInt(16) for int16_t to avoid promote to int.
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 19 12:21:06 PDT 2022
aaron.ballman added reviewers: rjmccall, efriedma.
aaron.ballman added a comment.
Adding some codegen reviewers for awareness.
================
Comment at: clang/lib/Basic/Targets/DirectX.h:66
+ bool hasBitIntType() const override { return true; }
bool hasFeature(StringRef Feature) const override {
----------------
beanz wrote:
> aaron.ballman wrote:
> > This change requires more testing/thought, IMO -- do you support 128-bit operations? When we bump that limit to be arbitrarily high, should DX have the arbitrary limits or do you need to enforce something lower? Have you considered how you want to pack these into structures or other data layout considerations?
> Yea, we definitely need to set the max width to 64 for DirectX.
Nothing seems to have handled this comment yet. Be sure to add a Sema test for that as well.
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