[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 31 12:26:08 PST 2025


rnk wrote:

I assume it is safe for all device side compilations to ignore this attribute. Presumably device code uses fully general patterns to access global data that could live in any shared object. Most device ISAs are virtual anyway, it's not like they're going to use PC relative addressing to access this data, they'll have a full-width pointer somewhere / somehow. So, if there's an easy way to suppress the warning for device ISAs, that would be reasonable IMO.

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


More information about the cfe-commits mailing list