to share it between the Instruction Selector and the Testgen both.
Originally part of the larger https://reviews.llvm.org/D43962 ([GlobalISel][utils] Adding the init version of Instruction Select Testgen) patch, extracted as to make it smaller and more targeted.
Partially reviewed by @dsanders within the patch mentioned.
Required by https://reviews.llvm.org/D43962