https://github.com/nikic approved this pull request. LGTM It looks like MachineMemOperand represents ranges as `const MDNode *`, so supporting range attributes for other getRangeMetadata() calls in this file may be tricky :( https://github.com/llvm/llvm-project/pull/95450