<div dir="ltr">Hi all,<br><br>I'd like to use LLVM to generate a total mapping from IR instructions to their lowered MIR counterpart(s), post all gMIR/legalization/ISel passes. However, I'm having trouble figuring out whether this is currently supported somewhere in the backend/has a known correct approach.<br><br>Does anybody know if this is something currently do-able within the backend? I've run into a bit of a dead end with IRTranslator. There's also a comment in LegalizerHelper.h that suggests the presence of configurable "RecordInsertInstruction" functions[1], but I can't find any other references to it. <br><br>Thanks!<br>William Woodruff<div><br>[1]: <a href="https://github.com/llvm/llvm-project/blob/a9af1dc34d33762751958a91aa8b82b856c2077a/llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h#L91">https://github.com/llvm/llvm-project/blob/a9af1dc34d33762751958a91aa8b82b856c2077a/llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h#L91</a><br><br></div></div>