[LLVMdev] Metadata

Chris Lattner clattner at apple.com
Thu Feb 11 12:56:16 PST 2010


On Feb 11, 2010, at 12:50 PM, David Greene wrote:

> On Thursday 11 February 2010 14:05:21 David Greene wrote:
> 
>> Either ParseLoad and probably other instructions need to look for metadata
>> explicitly or ParseOptionalCommaAlign needs to know about general metadata.
>> 
>> My inkling is to fix ParseOptionalCommaAlign.  Sound reasonable?
> 
> Well, that's a rat's nest.  I backed up and thought maybe I have the metadata 
> syntax wrong.
> 
> So I tried a bunch of things:
> 
> %r8 = load <2 x double>* %r6, align 16, metadata !"nontemporal"
> %r8 = load <2 x double>* %r6, align 16, metadata !nontemporal
> %r8 = load <2 x double>* %r6, align 16, !{ metadata !"nontemporal" }
> %r8 = load <2 x double>* %r6, align 16, !{ metadata !nontemporal }
> %r8 = load <2 x double>* %r6, align 16, !{ !"nontemporal" }
> %r8 = load <2 x double>* %r6, align 16, !{ !nontemporal }
> 
> I give up!  What is the syntax for attaching metadata to instructions?  The
> documentation is very unclear.

Some examples are in llvm/test/Feature/md_on_instruction.ll

Or you could just compile a file with -g.

-Chris



More information about the llvm-dev mailing list