fjricci added a comment. If it's helpful for the purposes of design/review, I can also upload the 3 followup patches that actually use this functionality. I've been trying to avoid overwhelming with too many patches at once. https://reviews.llvm.org/D31474