[LLVMdev] Proposal: extended MDString syntax

Bob Wilson bob.wilson at apple.com
Wed Jun 26 16:35:40 PDT 2013


On Jun 26, 2013, at 4:30 PM, Eric Christopher <echristo at gmail.com> wrote:

>> 
>> 
>> I think that the two alternatives that are obvious are for the MF to contain
>> the IR, or for the IR to contain the MF.  Alternatively, they can live in
>> parallel and the MF may reference the IR.  I am not sure what is the right
>> approach here, but my gut feeling is that metadata is not necessarily the
>> right container for MF.
> 
> Off the cuff I'd think that IR containing MF seems most reasonable and
> the use of metadata to contain it seems to be good from two
> perspectives I think:
> 
> a) it already exists,
> b) oddly enough that we could get rid of the metadata and still have a
> valid module/compilation unit seems like it might be interestingly
> useful, but I'm not sure what uses there are off the top of my head.
> 
> That said, I really have no preference either way, just idle
> speculation. Probably similar to you since we've both not thought
> deeply upon it :)
> 
> The MDString stuff does seem like it might be useful in general if
> we'd like to have that though.

The basic yaml support already exists, too.  I just haven't committed the patches.

I'll try to sort out some of Bin's patches soon.  They might need some updating, since yamlio has evolved since he worked with it.



More information about the llvm-dev mailing list