llvm::simplifySelectInst

Given operands for a SelectInst, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifySelectInst(
    Value* Cond,
    Value* TrueVal,
    Value* FalseVal,
    FastMathFlags FMF,
    SimplifyQuery const& Q);

Return Value

LLVM Value Representation

Parameters

NameDescription
CondLLVM Value Representation
TrueValLLVM Value Representation
FalseValLLVM Value Representation
FMFConvenience struct for specifying and reasoning about fast-math flags.