The original post used Apple and Google as examples. I'm not aware of any scenario in which those companies move U.S. revenues offshore to shield them from taxes. If I'm not mistaken, Tim Cook is on record that Apple only shields foreign-earned income from the IRS.