[IR][Patternmatch] Add m_SpecificInt_ULT() predicate
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Jun 2019 11:51:37 +0000 (11:51 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Jun 2019 11:51:37 +0000 (11:51 +0000)
commitfe107fcde4d29a5d76ccbe9141a2fc8b5dd990f3
tree7cf53e07a7d9507a811ca4148ebf526eb0546d45
parent9e9eb62f9fd75706377ac6cf3abffad1328d0d4f
[IR][Patternmatch] Add m_SpecificInt_ULT() predicate

Summary:
Match an integer or vector with every element unsigned less than the
Threshold. For vectors, this includes constants with undefined elements.

FIXME: is it worth generalizing this to simply take ICmpInst::Predicate?

Reviewers: craig.topper, spatel, nikic

Reviewed By: spatel

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63811

llvm-svn: 364711
llvm/include/llvm/IR/PatternMatch.h
llvm/unittests/IR/PatternMatch.cpp