Here's a first attempt at a MDBuilder class that makes it easier to create metadata. It has utilities for creating range and tbaa metadata (which by a strange coincidence are the kinds used by dragonegg). Ciao, Duncan. -------------- next part -------------- A non-text attachment was scrubbed... Name: mdbuilder.diff Type: text/x-patch Size: 4150 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120415/436de52b/attachment.bin>
On Sun, Apr 15, 2012 at 3:35 PM, Duncan Sands <baldrick at free.fr> wrote:> Here's a first attempt at a MDBuilder class that makes it easier to create > metadata. It has utilities for creating range and tbaa metadata (which by > a strange coincidence are the kinds used by dragonegg). >This seems like a fine interface. I'd love it for folks more familiar w/ the particular metadata categories to chime in. One question, have you looked at the helper routines in Clang? Is there any of that logic that should be sunk into this? Would we be able to replace them with this, or would we just get another layer of indirection? -Chandler -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120415/de950154/attachment.html>
Hi Chandler, On 15/04/12 17:11, Chandler Carruth wrote:> On Sun, Apr 15, 2012 at 3:35 PM, Duncan Sands <baldrick at free.fr > <mailto:baldrick at free.fr>> wrote: > > Here's a first attempt at a MDBuilder class that makes it easier to create > metadata. It has utilities for creating range and tbaa metadata (which by > a strange coincidence are the kinds used by dragonegg). > > > This seems like a fine interface. I'd love it for folks more familiar w/ the > particular metadata categories to chime in. > > One question, have you looked at the helper routines in Clang? Is there any of > that logic that should be sunk into this? Would we be able to replace them with > this, or would we just get another layer of indirection?the clang logic maps perfectly onto MDBuilder, see attached patch. Ciao, Duncan. -------------- next part -------------- A non-text attachment was scrubbed... Name: mdbuilder-clang.diff Type: text/x-patch Size: 5449 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120415/c05ea26a/attachment.bin>