Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.Target: Remove more dead architecture tags. #20708

Merged
merged 8 commits into from
Jul 22, 2024

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Jul 21, 2024

As discussed in #20402.

Also adds comments for the removed tags to make LLVM upgrades a bit smoother.

To reduce merge conflicts, I also snuck in a rename of lv2 to ps3; see the commit message. Hopefully this is ok.

@alexrp alexrp force-pushed the target-cleanup-2 branch from 081c6cf to 1748865 Compare July 21, 2024 13:03
alexrp added 8 commits July 21, 2024 22:38
These are quite old GPUs, and it is unlikely that Zig will ever be able to
target them.

See: https://en.wikipedia.org/wiki/Radeon_HD_2000_series
This is really obscure and no one is 100% sure what it is. It seems to be old
and unused. My suspicion is that it's just an old term for "AMDGPU" before it
was upstreamed to LLVM.

See: https://github.com/search?q=repo%3Allvm%2Fllvm-project+amdil&type=code
This was added as an architecture to LLVM's target triple parser and the Clang
driver in 2015. No backend ever materialized as far as I can see (same for GCC).
In 2016, other code referring to it started using "Myriad" instead. Ultimately,
all code related to it that isn't in the target triple parser was removed. It
seems to be a real product, just... literally no one seems to know anything
about the ISA. I figure after almost a decade with no public ISA documentation
to speak of, and no LLVM backend to reference, it's probably safe to assume that
we're not going to learn much about this ISA, making it useless for Zig.

See: llvm/llvm-project@1b5767f
See: llvm/llvm-project@84a7564
See: llvm/llvm-project@8cfe9d8
There is no obvious reason why this would be relevant for Zig to target. I
rather question the value of LLVM even having target triple code for this, too.

See: https://blog.llvm.org/2010/06/tce-project-co-design-of-application.html
See: https://github.com/cpc/llvmtce
It is very non-obvious that this is what lv2 refers to, and we already use ps4
and ps5 to refer to the later models, so let's just be consistent.
@alexrp alexrp force-pushed the target-cleanup-2 branch from 1748865 to be98413 Compare July 21, 2024 20:39
@andrewrk
Copy link
Member

Great thank you. ps3 rename is nice too 👍

@andrewrk andrewrk enabled auto-merge July 22, 2024 01:49
@andrewrk andrewrk merged commit 179a6e6 into ziglang:master Jul 22, 2024
10 checks passed
@alexrp alexrp deleted the target-cleanup-2 branch July 22, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants