OffloadArch was a flat enum that hand-duplicated every AMDGPU and NVPTX target, plus a few edge cases. This was yet another place that needed updating every time a new target is added, which should now be avoided. Replace with a tagged union-like scheme. Co-authored-by: Claude (Claude-Opus-4.8) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| aarch64.c | ||
| amdgcn.c | ||
| arm.c | ||
| avr.c | ||
| bpf.c | ||
| hexagon.c | ||
| lanai.c | ||
| mips.c | ||
| nvptx.c | ||
| powerpc.c | ||
| r600.c | ||
| riscv.c | ||
| sparc.c | ||
| systemz.c | ||
| wasm.c | ||
| x86.c | ||