[llvm-branch-commits] [clang] [clang][DirectX] Specify element-aligned vectors in TargetInfo (PR #180620)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 19 01:05:43 PST 2026
nikic wrote:
I saw:
> We propose a specification to LLVM's DataLayout string to say that vectors are element-aligned by default, and a bit to Clang's TargetInfo to say that vectors are element-aligned for a target. These will need to be kept in sync for a given target, but this is already true for most of the values in Clang's TargetInfo.
You can add a consistency check for this in: https://github.com/llvm/llvm-project/blob/c83ebf19cf3e649ed4d2ccadddd8c7e447850363/clang/lib/CodeGen/CodeGenModule.cpp#L338
https://github.com/llvm/llvm-project/pull/180620
More information about the llvm-branch-commits
mailing list