[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 1 23:36:15 PDT 2024


arsenm wrote:

> 1. Usually (or at least AFAIK) optimization passes won't consider datalayout automatically, 

The datalayout is a widely used global constant. There's no option of "not considering it"

>  Do you plan to go over LLVM passes adding this check?

There's nothing new to do here. This has always existed

> 2. Some existing and future extensions might allow extra bit widths for integers. 

This does not mean arbitrary integer bitwidths do not work. The n field is weird, it's more of an optimization hint.



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


More information about the cfe-commits mailing list