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

[Target] Only append default keys if target doesn't have any yet #12474

Merged
merged 5 commits into from
Aug 18, 2022
Merged

[Target] Only append default keys if target doesn't have any yet #12474

merged 5 commits into from
Aug 18, 2022

Conversation

kparzysz-quic
Copy link
Contributor

This allows target parsers to provide their own target keys. Without this change, the default keys would always be appended, which may or may not be desirable.

This allows target parsers to provide their own target keys. Without this
change, the default keys would always be appended, which may or may not
be desirable.
Copy link
Member

@Mousius Mousius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was 50/50 on whether to do this initially, I think as the parsers become smarter they can make a better default decision here - will leave for others to take a look but otherwise LGTM @kparzysz-quic

Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm good with this change

@kparzysz-quic kparzysz-quic merged commit 6def53a into apache:main Aug 18, 2022
@kparzysz-quic kparzysz-quic deleted the conditional-default-keys branch August 18, 2022 23:11
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…che#12474)

* [Target] Only append default keys if target doesn't have any yet

This allows target parsers to provide their own target keys. Without this
change, the default keys would always be appended, which may or may not
be desirable.

* Add "cpu" to ARM CPU keys

* Add "cpu" to the keys in the mprofile target parser

* Restore the mprofile cpptest, since the "cpu" key is back

* So the -device attribute is actually needed...
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.

3 participants