[LLVMdev] Proposal: extended MDString syntax

Eric Christopher echristo at gmail.com
Wed Jun 26 16:30:41 PDT 2013


>
>
> 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.

-eric



More information about the llvm-dev mailing list