diff options
author | jeanPerier <jperier@nvidia.com> | 2025-05-20 10:45:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-20 10:45:29 +0200 |
commit | 80816e792382da286b29f937938ab54ae159f482 (patch) | |
tree | 53f405ef638b704fe72a3b16e89d9e23f9f0deea /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 034eaeddc30cbaf273744580f15325514d5fb928 (diff) | |
download | llvm-80816e792382da286b29f937938ab54ae159f482.zip llvm-80816e792382da286b29f937938ab54ae159f482.tar.gz llvm-80816e792382da286b29f937938ab54ae159f482.tar.bz2 |
[mlir][LLVM] handle ArrayAttr for constant array of structs (#139724)
While LLVM IR dialect has a way to represent arbitrary LLVM constant
array of structs via an insert chain, it is in practice very expensive
for the compilation time as soon as the array is bigger than a couple
hundred elements. This is because generating and later folding such
insert chain is really not cheap.
This patch allows representing array of struct constants via ArrayAttr in
the LLVM dialect.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions