#include "llvm/Analysis/CmpInstAnalysis.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/PatternMatch.h"
usingnamespacellvm;
unsigned llvm::getICmpCode(CmpInst::Predicate Pred) { … }
Constant *llvm::getPredForICmpCode(unsigned Code, bool Sign, Type *OpTy,
CmpInst::Predicate &Pred) { … }
bool llvm::predicatesFoldable(ICmpInst::Predicate P1, ICmpInst::Predicate P2) { … }
Constant *llvm::getPredForFCmpCode(unsigned Code, Type *OpTy,
CmpInst::Predicate &Pred) { … }
std::optional<DecomposedBitTest>
llvm::decomposeBitTestICmp(Value *LHS, Value *RHS, CmpInst::Predicate Pred,
bool LookThruTrunc) { … }