https://github.com/nikic approved this pull request. LGTM. I think that moving DataLayout computation to TargetParser is a big improvement, and am willing to take it even with some rough edges. https://github.com/llvm/llvm-project/pull/157612