[clang] [DirectX] Fix HLSL bitshifts to leverage the OpenCL pipeline for bitshifting Fixes #55106 In HLSL bit shifts are defined to shift by shift size % type size. This contains the following changes: HLSL codegen bit shifts will be emitted as x << (y & (sizeof(x) - 1) and bitshift masking leverages the OpenCL pipeline for this. Tests were also added to validate this behavior. (PR #81030)

Cooper Partin via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 09:08:29 PST 2024


https://github.com/coopp edited https://github.com/llvm/llvm-project/pull/81030


More information about the cfe-commits mailing list