[clang] [Clang][CodeGen] Start migrating away from assuming the Default AS is 0 (PR #88182)

Alex Voicu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 13:35:43 PDT 2024


https://github.com/AlexVlx commented:

> > querying a modules global AS from the target, rather than from the data layout (some DL's are incomplete, e.g. SPIRV's)

That is a bug in those DataLayouts 

Do we spell out the requirement somewhere? I am only asking because, for example, [neither SPIR nor SPIRV have a complete DL string](https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/SPIR.h).

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


More information about the cfe-commits mailing list