Skip to content

Fix logic to detect cl::option equality. #65754

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

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

chsigg
Copy link
Contributor

@chsigg chsigg commented Sep 8, 2023

This is a new attempt of https://reviews.llvm.org/D159481, this time as GitHub PR.

GenericOptionValue::compare() should return true for a match.

  • OptionValueBase::compare() always returns false and shouldn't match anything.
  • OptionValueCopy::compare() returns false if not Valid which corresponds to no match.

Also adding some tests.

`GenericOptionValue::compare()` should return `true` for a match.
@chsigg chsigg requested a review from a team as a code owner September 8, 2023 13:19
@github-actions github-actions bot added mlir:core MLIR Core Infrastructure mlir labels Sep 8, 2023
@chsigg chsigg merged commit 710b5a1 into llvm:main Sep 10, 2023
ZijunZhaoCCK pushed a commit to ZijunZhaoCCK/llvm-project that referenced this pull request Sep 19, 2023
This is a new attempt of https://reviews.llvm.org/D159481, this time as
GitHub PR.

`GenericOptionValue::compare()` should return `true` for a match.

- `OptionValueBase::compare()` always returns `false` and shouldn't
match anything.
- `OptionValueCopy::compare()` returns `false` if not `Valid` which
corresponds to no match.

Also adding some tests.
@chsigg chsigg deleted the piper_export_cl_563409994 branch February 15, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:core MLIR Core Infrastructure mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants