irishrover wrote: Maybe it worth to merge the PR in the current state and then I'll add options support and other optimizations as separate commits not to overcomplicate this PR? https://github.com/llvm/llvm-project/pull/172170