Return true if the instruction is associative.

Synopsis

Declared in <llvm/IR/Instruction.h>

bool
isAssociative() const;

Description

Associative operators satisfy: x op (y op z) === (x op y) op z

In LLVM, the Add, Mul, And, Or, and Xor operators are associative.

Return Value

True if this instruction is associative.

Created with MrDocs