In working on how to augment llvm.memcpy and friends to distingish src from dst volatility I noticed the auto upgrade processing was somewhat duplicative. This commonizes the memcpy and memmove detection. In addition to being general goodness, this will make it easier to do the change I want to make.
This change itself is NFC
llvm::StringSwitch might be a touch nicer for this