[LLVMdev] [proposal] Extensible IR metadata

Nick Lewycky nicholas at mxc.ca
Fri Sep 11 19:17:44 PDT 2009


Dan Gohman wrote:
> On Sep 11, 2009, at 9:57 AM, Chris Lattner wrote:
> 
> 
>> Devang's work on debug info prompted this, thoughts welcome:
>> http://nondot.org/sabre/LLVMNotes/ExtensibleMetadata.txt
> 
> The document mentions "instructions" a lot. We'll want to be able to
> apply metadata to ConstantExprs as well at least, if not also Arguments
> (think noalias) and other stuff, so it seems best to just talk about
> "values" instead, and DenseMap<Value *, ...> instead of
> DenseMap<Instruction *, ...>.

I'm wondering that too. Can we replace LLVM function attributes with 
metadata? There's been some pushback to adding new function attributes 
in the past and it would be nice to be able to prototype new ones 
without having to change all of the vm core.

Nick



More information about the llvm-dev mailing list