Match an integer or vector with every element unsigned less than the
Threshold. For vectors, this includes constants with undefined elements.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM - not sure if it's worth generalizing or a TODO comment, but we could take a predicate as a parameter (rather than hard-coding 'ULT') and switch the APInt compare method based on that?
Comment Actions
Thank you for the review.
not sure if it's worth generalizing or a TODO comment, but we could take a predicate as a parameter (rather than hard-coding 'ULT') and switch the APInt compare method based on that?
Do yo propose passing ICmpInst::Predicate?
I did briefly think about it, and wasn't sure it's worth it *yet*.
Comment Actions
Yes, that's what I imagined. And yes, I have no idea if it's worth it, so a TODO comment or a mention in the commit message is enough for now.