[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-05 Thread James Wainwright via cfe-commits
jwnrt wrote: CC @benshi001 To be 100% honest I haven't tested this on AVR silicon yet. My motivation for the change is to allow for non-zero data address spaces in Rust which parses these LLVM address spaces, but would then use both 64-bit and 16-bit pointers for AVR. Apologies if this is bad

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-04 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-04 Thread Ben Shi via cfe-commits
benshi001 wrote: > CC @benshi001 > > To be 100% honest I haven't tested this on AVR silicon yet. My motivation for > the change is to allow for non-zero data address spaces in Rust which parses > these LLVM data format specs, but would then use both 64-bit and 16-bit > pointers for AVR. Apolo

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: James Wainwright (jwnrt) Changes AVR uses separate address spaces for data (0) and program (1) memory, however pointer layout is only defined for address space 0 in the data layout string. The `p[n]` directive defines pointer layouts wher

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: James Wainwright (jwnrt) Changes AVR uses separate address spaces for data (0) and program (1) memory, however pointer layout is only defined for address space 0 in the data layout string. The `p[n]` directive defines pointer la

[clang] [llvm] Define pointer layout for AVR program address space (PR #134254)

2025-04-03 Thread James Wainwright via cfe-commits
https://github.com/jwnrt created https://github.com/llvm/llvm-project/pull/134254 AVR uses separate address spaces for data (0) and program (1) memory, however pointer layout is only defined for address space 0 in the data layout string. The `p[n]` directive defines pointer layouts where `n` d