nir: constify instruction comparison functions