[LLVMdev] MDBuilder - helper for making metadata

Duncan Sands baldrick at free.fr
Sun Apr 15 11:12:25 CDT 2012


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.cs.uiuc.edu/pipermail/llvmdev/attachments/20120415/c05ea26a/attachment.bin 


More information about the LLVMdev mailing list