A plant (or the diploid phase in its life cycle) which produces spores by meiosis in order to produce gametophytes.