Return true if an operand may legally be replaced with a variable.
Declared in <llvm/Transforms/Utils/Local.h>
bool
canReplaceOperandWithVariable(
Instruction const* I,
unsigned int OpIdx);
Given an instruction, is it legal to set operand OpIdx to a non-constant value?
True if operand OpIdx may legally be replaced with a variable.
| Name | Description |
|---|---|
| I | Instruction whose operand is being considered. |
| OpIdx | Operand index that would receive a variable. |