Return true if this instruction comes before Other in the same block.

Synopsis

Declared in <llvm/IR/Instruction.h>

bool
comesBefore(Instruction const* Other) const;

Description

Other must be in the same basic block as this instruction. In the worst case, this takes linear time in the number of instructions in the block. The results are cached, so in common cases when the block remains unmodified, it takes constant time.

Return Value

True if this instruction comes before Other.

Parameters

Name

Description

Other

The instruction to compare against in the same block.

Created with MrDocs