Antimetabole
In rhetoric, antimetabole ( AN-ti-mə-TAB-ə-lee) is the repetition of words in successive clauses, but in transposed order; for example, "I know what I like, and I like what I know". It is related to, and sometimes considered a special case of, chiasmus.