Please explain clearly. What is your actual requirement and how you are generating the PWM signal?
For example in case of Voltage source inverters for 50 Hz frequency, the 180 degree phase shift in PWM is obtained by comparing the high frequency carrier with a reference signal having 50 Hz frequency where the half cycle means 0.01 sec is 180 degree. So for complementry pulses or 180 degree shifted pulses, you can use a simple pulse generator having desired time period and a reversal after 180 degree.
It is not easy to shift the phase of a triangular wave and maintain a fixed shift. Rather, generated two triangular waves with 180deg phase shift right at the beginning. A common method is to use a pulse train and separate every alternate pulses into two separate pulse trains of half the original frequency and 180deg phase shift between them. Then create the triangular waves from these pulse trains.