Meinersbur wrote: I would remove the changes to Clang and AtomicsExpandPass (in the first iteration). Those were for checking whether the API is sufficiently general. https://github.com/llvm/llvm-project/pull/114659