[LLVMdev] Metadata

Chris Lattner clattner at apple.com
Thu Feb 11 16:40:09 PST 2010


On Feb 11, 2010, at 2:54 PM, David Greene wrote:

> 
> Is that basically right?  So I would have to do this:
> 
> 	%r8 = load <2 x double>* %r6, align 16, !nontemporal !0
> [...]
> !0 = metadata !{ i32 1 }

Yes.

> I would really rather not have to specify the entirely redundant !0.  Just the 
> fact that the instruction has metadata with index/name "nontemporal" should
> be enough.

Why?  These are uniqued anyway, it won't matter for performance and "!nontermporal !0" is not substantially worse than "!nontermporal".  I'd rather keep the metadata model simple than optimize it for nullary metadata.

-Chris





More information about the llvm-dev mailing list