This is only for demonstrating my idea. I don't know the LLVM structures really well (yet), so my implementation is quite hackish (make SlotIndex::getIndex() public for example). So please tell me:
1, Whether my *idea* and my understanding of the problem are correct,
2, What should be the right way to implement the solution.
Thank you all for your help