split irg and irp resources, add IRP_RESOURCE_TYPE_LINK