[LLVMdev] Metadata

David Greene dag at cray.com
Mon Jan 4 15:14:27 PST 2010


Is there some documentation about metadata and how to use it somewhere?
The doxygen-generated stuff obviously doesn't specify things like how
to create custom metadata kinds and all that jazz.

As a few of us discussed at the latest dev meeting, I'd like to use
custom metadata to annotate load/store instructions with "nontemporal"
semantics to allow generation of instructions like MOVNT on x86-based
targets.  Losing the "nontemporal" annotation won't affect correctness
so it seems a prime candidate for metadata.

One question: should "nontemporal" be "native" metadata or "external?"

                         -Dave



More information about the llvm-dev mailing list