The IRS in the align mode first defines the vertical using the accelerometers.  It then measure Earth rate with the laser gyros in order to define North and compute its latitude which it compares with the latitude entered by the pilot.