Bigcheese added a comment. Is there a good reason the use cases you want this for can't be added to libSupport? I'm a bit worried about continuing to add platform specific code outside of libSupport. https://reviews.llvm.org/D48859