Return true if the instruction may have side effects.

Synopsis

Declared in <llvm/IR/Instruction.h>

bool
mayHaveSideEffects() const;

Description

Side effects are: * Writing to memory. * Unwinding. * Not returning (e.g. an infinite loop).

Note that this does not consider malloc and alloca to have side effects because the newly allocated memory is completely invisible to instructions which don't use the returned value. For cases where this matters, isSafeToSpeculativelyExecute may be more appropriate.

Return Value

True if this instruction may have side effects.

Created with MrDocs