Return true if I executes the same operation as this instruction.

Synopsis

Declared in <llvm/IR/Instruction.h>

bool
isSameOperationAs(
    Instruction const* I,
    unsigned int flags = 0) const;

Description

The opcodes, type, operand types and any other factors affecting the operation must be the same. This is similar to isIdenticalTo except the operands themselves don't have to be identical.

Return Value

True if the specified instruction is the same operation as this one.

Parameters

Name

Description

I

The instruction to compare against.

flags

Bitmask of OperationEquivalenceFlags to relax the check.

Created with MrDocs