The superconducting phases of UPt3 under uniaxial stress