Mirror symmetry in generalized Calabi–Yau compactifications