Provide a getOpcode() method on CmpInst to ensure the opcode is returned