krytarowski added a comment. Please try to partition this into 200-300 line patches. This patch is 2271 lines long. Please try to remove all unrelated style changes. `GetTid()` fix for FreeBSD (and abandoning uptr concept) deserves a separate commit. https://reviews.llvm.org/D43909