[PATCH] D112531: [RFC][DataLayout] Allow vector specifications by element size

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 1 01:46:56 PST 2021


nikic added a comment.
Herald added a subscriber: luke957.

Just to make sure that we don't end up with another incomplete solution: Are there any architectures where alignment could depend on both element size and total size? Are there any where it could depend on element type, i.e. where a vector of i32 and a vector of f32 may have different alignment?



================
Comment at: llvm/lib/IR/DataLayout.cpp:401
+                                             }),
+                             Alignments.end());
+          }
----------------
You can use erase_if to simplify this pattern.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112531/new/

https://reviews.llvm.org/D112531



More information about the llvm-commits mailing list