Hi all,
@DharuniRAcharya has been working on a PR to document the IIT info table which encodes intrinsic signatures better as an aid to help implement additional intrinsic related enhancements. As I was going through it and looking into the code to understand the current implementation, I realized that some of the code here can be simplified significantly, which will help any future changes in this area. As a result, I have created a different form of the documentation and listed some of the simplifications that can be added here. Please take a look at:
Notes about LLVM intrinsics type signature encoding
[Note, this document is WIP and not complete].
I wanted feedback from folks (@nikic, @arsenm, @Durga and others familiar with this area) to see if these simplifications make sense and whether we can go ahead and implement them. In addition, I am hoping that the document above (once updated with the simplified implementation details and other missing pieces on the decoding and use of the IIT table on LLVM side) can also be committed into LLVM repo (and kept up to date as changes are made in this area).
Thanks,
Rahul