[IR] CmpInst: add isEquality(Pred)
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 6 Nov 2020 07:36:30 +0000 (10:36 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 6 Nov 2020 08:31:09 +0000 (11:31 +0300)
commitc7c702a272f6b1a3578460eefc07e1282b43cf13
treecb5e261110ae8fc48effcedba1b3c490f58d7f2c
parenta5ae3edaa380702eb2be225721533c1aab2f4d3e
[IR] CmpInst: add isEquality(Pred)

Currently there is only a member version of isEquality(),
which requires an actual [IF]CmpInst to be avaliable,
which isn't always possible, and is inconsistent with
the general pattern here.

I wanted to use it in a new patch, but it wasn't there..
llvm/include/llvm/IR/InstrTypes.h
llvm/lib/IR/Instructions.cpp