This revision caches the target machine's instruction namespace in CodeGenTarget. The namespace is requested multiple times by backends and involves a linear scan of the vector of records inheriting from Instruction.
I've separated this revision from https://reviews.llvm.org/D92674 and will remove it from that revision.
The = StringRef() is redundant here and should be omitted.