[LLVMdev] Metadata

Devang Patel devang.patel at gmail.com
Thu Feb 11 13:03:39 PST 2010


On Thu, Feb 11, 2010 at 8:50 PM, David Greene <dag at cray.com> wrote:

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

Try


%r8 = load <2 x double>* %r6, align 16, !nontemporal !1
!1 = metadata !{ i32 1, metadata !0, null, metadata !"foobar" }

-
Devang




More information about the llvm-dev mailing list