-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Proposal: std.Target
: Add more architecture tags.
#20835
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -979,26 +979,38 @@ pub const Cpu = struct { | |
}; | ||
|
||
pub const Arch = enum { | ||
alpha, | ||
arm, | ||
armeb, | ||
aarch64, | ||
aarch64_be, | ||
aarch64_32, | ||
arc, | ||
arc64, | ||
avr, | ||
bpfel, | ||
bpfeb, | ||
csky, | ||
dxil, | ||
hexagon, | ||
hppa, | ||
hppa64, | ||
kvx, | ||
loongarch32, | ||
loongarch64, | ||
m68k, | ||
microblaze, | ||
microblazeel | ||
microblaze64, | ||
microblaze64el, | ||
mips, | ||
mipsel, | ||
mips64, | ||
mips64el, | ||
moxie, | ||
moxieel, | ||
msp430, | ||
or1k, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OpenRISC does specify a 64-bit architecture, but no core designs exist for that yet, and no software supports it. In practice, OpenRISC is basically considered a 32-bit architecture, so not adding a 64-bit variant here yet. |
||
powerpc, | ||
powerpcle, | ||
powerpc64, | ||
|
@@ -1010,12 +1022,15 @@ pub const Cpu = struct { | |
sparc64, | ||
sparcel, | ||
s390x, | ||
sh, | ||
sheb, | ||
thumb, | ||
thumbeb, | ||
x86, | ||
x86_64, | ||
xcore, | ||
xtensa, | ||
xtensaeb, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Xtensa supports both little and big endian. QEMU supports both, as does GCC. |
||
nvptx, | ||
nvptx64, | ||
spir, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alpha technically allows big endian implementations. To my knowledge, no such implementation has ever existed, and no software that supports Alpha supports it in a big endian configuration. So no
alphaeb
here.