This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add missing features for ivybridge, sandybridge and knl in X86TargetParser.def.
ClosedPublic

Authored by FreddyYe on Jun 30 2023, 5:59 AM.

Diff Detail

Event Timeline

FreddyYe created this revision.Jun 30 2023, 5:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 5:59 AM
FreddyYe requested review of this revision.Jun 30 2023, 5:59 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 30 2023, 5:59 AM
RKSimon added inline comments.Jun 30 2023, 6:09 AM
llvm/include/llvm/TargetParser/X86TargetParser.def
262

In X86.td westmere and silvermont also have FeaturePCLMUL

FreddyYe marked an inline comment as done.Jun 30 2023, 6:39 AM
FreddyYe added inline comments.
llvm/include/llvm/TargetParser/X86TargetParser.def
262

Yeah, that's what I wanted to mean. The miss for these two are also true, but no tests influenced yet.

craig.topper added inline comments.Jun 30 2023, 10:48 AM
llvm/include/llvm/TargetParser/X86TargetParser.def
275

double comma before +pclmul

FreddyYe updated this revision to Diff 536495.Jun 30 2023, 6:48 PM
FreddyYe marked 2 inline comments as done.

Address comment, thanks review!

RKSimon accepted this revision.Jul 1 2023, 7:26 AM

LGTM - but it would be good to fix silvermont / westmere cases as well with suitable test coverage

This revision is now accepted and ready to land.Jul 1 2023, 7:26 AM

LGTM - but it would be good to fix silvermont / westmere cases as well with suitable test coverage

Thanks review! After D151696 landed, they can be both fixed and there will be more tests cover such missing like clang/test/Preprocessor/predefined-arch-macros.c. And about cpu_specific test coverage, I'll consider a way to refine.

This revision was landed with ongoing or failed builds.Jul 2 2023, 5:13 PM
This revision was automatically updated to reflect the committed changes.