Return true when P Inst is both associative and commutative. If P Invert is true, then the inverse of P Inst operation must be tested.

Synopsis

Declared in <llvm/CodeGen/TargetInstrInfo.h>

virtual
bool
isAssociativeAndCommutative(
    MachineInstr const& Inst,
    bool Invert = false) const;

Return Value

True when P Inst is both associative and commutative.

Parameters

Name

Description

Inst

Machine instruction being tested.

Invert

If true, test the inverse of the operation.

Created with MrDocs