Return the predicate that results from swapping operands.

Synopsis

Declared in <llvm/IR/InstrTypes.h>

static
Predicate
getSwappedPredicate(Predicate pred);

Description

For example, EQ‐>EQ, SLE‐>SGE, ULT‐>UGT, OEQ‐>OEQ, ULE‐>UGE, OLT‐>OGT, etc.

Return Value

The predicate that would produce the same result if the two operands were exchanged.

Parameters

Name

Description

pred

The predicate to transform.

Created with MrDocs