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

[compiler-rt][X86] Unify getAvailableFeatures #97872

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

boomanaiden154
Copy link
Contributor

This patch unifies the implementations of getAvailableFeatures between LLVM and compiler-rt.

This patch is intended to be a stepping stone towards a unified implementation of several functions for compiler-rt and LLVM, implemented in duplicated .inc files, with them being the same enforced through tests.

compiler-rt's ProcessorFeatures and the definitions in X86TargetParser
need to be kpet in sync to ensure correct functionality. Currently there
are quite a few differences between the two (not currently impacting
functionality). These have primarily stemmed from updates made on the
LLVM side that did not touch the compiler-rt side (like the removal of
the knights landing features). This patch attempts to rectify the
situation and better unify the structs.
This patch unifies the implementations of getAvailableFeatures between
LLVM and compiler-rt.

This patch is intended to be a stepping stone towards a unified
implementation of several functions for compiler-rt and LLVM,
implemented in duplicated .inc files, with them being the same enforced
through tests.
@boomanaiden154 boomanaiden154 changed the title Unify get available features [compiler-rt][X86] Unify getAvailableFeatures Jul 6, 2024
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.

1 participant