Unverified Commit aea7929b authored by Anton Rydahl's avatar Anton Rydahl Committed by GitHub
Browse files

[libc++] Unify __is_trivial_equality_predicate and __is_trivial_plus_operation...

[libc++] Unify __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (#68642)

When working on an OpenMP offloading backend for standard parallel
algorithms (https://github.com/llvm/llvm-project/pull/66968

) we noticed
the need of a generalization of `__is_trivial_plus_operation`. This patch
merges `__is_trivial_equality_predicate` and `__is_trivial_plus_operation`
into `__desugars_to`, and in the future we might extend the latter to support
other binary operations as well.

Co-authored-by: default avatarLouis Dionne <ldionne.2@gmail.com>
parent 07d799f0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment