ΒΆllvm::Constant* getPredForICmpCode(
    unsigned int Code,
    bool Sign,
    llvm::Type* OpTy,
    CmpInst::Predicate& Pred)

Description

This is the complement of getICmpCode. It turns a predicate code into either a constant true or false or the predicate for a new ICmp. The sign is passed in to determine which kind of predicate to use in the new ICmp instruction. Non-NULL return value will be a true or false constant. NULL return means a new ICmp is needed. The predicate is output in Pred.

Declared at: llvm/include/llvm/Analysis/CmpInstAnalysis.h:54

Parameters

unsigned int Code
bool Sign
llvm::Type* OpTy
CmpInst::Predicate& Pred