Method MatchBranch
MatchBranch(Instruction, ILLabel)
Matches a branch instruction.
public static bool MatchBranch(this Instruction instr, ILLabel value)
Parameters
instrInstruction- The instruction to try to match.
valueILLabel- The operand value required for the instruction to match.
Returns
Remarks
This will match an instruction whose opcode is Br, Brfalse, Brtrue, Beq, Bge, Bgt, Ble, Blt, Bne_Un, Bge_Un, Bgt_Un, Ble_Un or Blt_Un.
MatchBranch(Instruction, Instruction)
Matches a branch instruction.
public static bool MatchBranch(this Instruction instr, Instruction value)
Parameters
instrInstruction- The instruction to try to match.
valueInstruction- The operand value required for the instruction to match.
Returns
Remarks
This will match an instruction whose opcode is Br, Brfalse, Brtrue, Beq, Bge, Bgt, Ble, Blt, Bne_Un, Bge_Un, Bgt_Un, Ble_Un or Blt_Un.
MatchBranch(Instruction, out ILLabel)
Matches a branch instruction.
public static bool MatchBranch(this Instruction instr, out ILLabel value)
Parameters
instrInstruction- The instruction to try to match.
valueILLabel- The operand value of the instruction.