nir/opcodes: Add a helper function to generate the comparison binops