[llvm] [CodeGen] Get stack alignment from TargetFrameLowering (PR #105477)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 03:05:18 PDT 2024


s-barannikov wrote:

> Also, this is another point where the DataLayout acts like it's this point of backend configuration when it's not really, so then we grew this other side mechanism. It would be better if backends actually respected everything in the DL string.

For that matter DataLayout is too limited to represent all the nuances of a backend.
I had an idea that we introduce a thin class that encapsulates all the necessary information about a backend that is necessary for the frontend / middle end to function, and link it in even if the target is disabled in LLVM_ENABLE_TARGETS. A directory with obscure name TargetParser is the place where I would put it.
But this is a huge amount of work so I didn't even bother failing an RFC for this.


https://github.com/llvm/llvm-project/pull/105477


More information about the llvm-commits mailing list