Factor the stack alignment calculations out into a target independent pass.