Skip to content

Detect Apple M4 and some related changes#58301

Merged
DilumAluthge merged 3 commits intomasterfrom
mh/apple_m4
Jun 5, 2025
Merged

Detect Apple M4 and some related changes#58301
DilumAluthge merged 3 commits intomasterfrom
mh/apple_m4

Conversation

@fingolfin
Copy link
Copy Markdown
Member

The A15 was detected as M2; added codenames for easier future updates.

Sources:

Missing:

  • the M4 Pro and Max are missing (because they are missing from Apple's cpuid.h)

Resolves #58278

The A15 was detected as M2; added codenames for easier future updates
@fingolfin fingolfin added the backport 1.12 Change should be backported to release-1.12 label May 2, 2025
@KristofferC KristofferC mentioned this pull request May 5, 2025
53 tasks
fingolfin and others added 2 commits May 6, 2025 02:15
Co-authored-by: Christian Guinard <28689358+christiangnrd@users.noreply.github.com>
@fingolfin
Copy link
Copy Markdown
Member Author

Updated with the suggestions, thanks

@fingolfin
Copy link
Copy Markdown
Member Author

@gbaraldi thoughts?

@KristofferC KristofferC mentioned this pull request May 9, 2025
58 tasks
@gbaraldi
Copy link
Copy Markdown
Member

gbaraldi commented Jun 4, 2025

LGTM

@topolarity topolarity added the merge me PR is reviewed. Merge when all tests are passing label Jun 4, 2025
@DilumAluthge DilumAluthge merged commit 7cb88d6 into master Jun 5, 2025
8 checks passed
@DilumAluthge DilumAluthge deleted the mh/apple_m4 branch June 5, 2025 03:55
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Jun 5, 2025
KristofferC pushed a commit that referenced this pull request Jun 6, 2025
The A15 was detected as M2; added codenames for easier future updates.

Sources:
- https://asahilinux.org/docs/hw/soc/soc-codenames/#socs
-
https://github.com/apple-oss-distributions/xnu/blob/main/osfmk/arm/cpuid.h
-
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AArch64/AArch64Processors.td#L428

Missing:
- the M4 Pro and Max are missing (because they are missing from Apple's
`cpuid.h`)

Resolves #58278

---------

Co-authored-by: Christian Guinard <28689358+christiangnrd@users.noreply.github.com>
(cherry picked from commit 7cb88d6)
@KristofferC KristofferC mentioned this pull request Jun 6, 2025
60 tasks
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Jul 9, 2025
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.

Sys.CPU_NAME is "apple-m1" on Apple M4

7 participants