[cfe-dev] Converting pointers to fat pointers

John McCall rjmccall at apple.com
Mon May 14 18:11:11 PDT 2012

On May 14, 2012, at 5:59 PM, Sai Charan wrote:
> I am looking at using LLVM/Clang to automatically convert pointer declarations to fat pointers & the corresponding dereferences to something appropriate. I am looking for guidance on doing this. Will an LLVM pass be better suited to this or would this be better handled using Clang. Any guidance on getting started would be helpful.

It would be best handled by modifying Clang, both in semantic analysis (to change the size of a pointer) and IR generation (to generate, propagate, and consume your fat pointer values).  I'm afraid that clang's IR generation widely assumes that pointers are represented as a single llvm::Value, though, and you might be in for a lot of work.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120514/d9a5c114/attachment.html>

More information about the cfe-dev mailing list