You, as an Irish citizen, need a Spanish visa because Ireland and Spain are members of the European Union, but Ireland is not part of the Schengen area. If you intend to stay in Spain for no more than 90 days (three months) within 180 days, then you do not need either visa or registration.