https://github.com/joker-eph approved this pull request. I'm not totally sure about the invariants we want around all this, but this would be a "low-level API / you must know what you're doing" kind of API. https://github.com/llvm/llvm-project/pull/142352