Apply review comments of https://reviews.llvm.org/D54185 to other target as well, specifically:
- make anonymous namespaces as small as possible, avoid using static inside anonymous namespaces
 - Add missing header to some files
 - GetLoadImmediateOpcodem-> getLoadImmediateOpcode
 - Fix typo