Pass: Add CopyStateFrom/ShareStateWith and CopyConstantsFrom API