[PATCH] D138496: [OMPIRBuilder] Add OpenMPDefaultSimdAlignment field to TargetMachine class

Dominik Adamski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 09:09:05 PST 2022


domada added a comment.

I think we cannot not rely on DataLayout to find the maximal SIMD alignment.

Developer can specify that given functions are targeted to different subtargets (source: https://clang.llvm.org/docs/AttributeReference.html#target ). That's why information about target subtype is stored in function attribute not in the data layout string which is common for the whole Module.


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

https://reviews.llvm.org/D138496



More information about the llvm-commits mailing list