It's a third conditional; it refers to a hypothetical action that did not ocurr.
"If you had invited me I would have come". It means that if I had got an invitation I would have come, but I didn't come because I didn't receive an invitation. Maybe if I had received a formal invitation a letter,...