Patchable Callsites

I was looking at this thread because I’m trying to do something similar:
http://lists.llvm.org/pipermail/llvm-dev/2015-July/088665.html

I’m to the point where I’d like to be able to do patchable callsites, and I understand it’s not implemented yet. If one wanted to implement this on their own, where would you start?