This is an archive of the discontinued LLVM Phabricator instance.

Detect apple M2 processor targets
Needs ReviewPublic

Authored by orf on Aug 25 2023, 5:54 AM.

Details

Reviewers
t.p.northover
Summary

Currently on MacOS getHostCPUName only detects M1 processors and not M2 processors. The M2 CPU family is the following:

❯ sysctl hw.cpufamily
hw.cpufamily: -634136515

Diff Detail

Unit TestsFailed

Event Timeline

orf created this revision.Aug 25 2023, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 5:54 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
orf requested review of this revision.Aug 25 2023, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 5:54 AM

I added @t.p.northover as a reviewer because of the changes he made here https://reviews.llvm.org/D134351. I've got no idea who else I should add, so apologies if this is the wrong person!