Tcc100 wrote: @weliveindetail I changed the registry as you suggested. Since it is now completely separate from the TargetMachine class, I moved it into its own file. https://github.com/llvm/llvm-project/pull/139059