[clang] [lld] [llvm] [mlir] [IR] Introduce `U<address space>` to `DataLayout` to represent undesirable address space if a target has it (PR #108786)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 20 15:19:05 PDT 2024
arsenm wrote:
> More specifically, how do you expect Clang to figure this out when e.g. compiling C++ for some AS rich target that decided to default to something odd
I do not expect clang to be using the datalayout to decide anything. That is not really the purpose of the datalayout. It does not provide semantic information to the frontend. The frontend needs to directly understand the source language semantics and the address spaces of the target.
https://github.com/llvm/llvm-project/pull/108786
More information about the cfe-commits
mailing list