[LLVMdev] Support for per-loop pragma
Duncan Sands
baldrick at free.fr
Wed Jun 2 00:10:19 PDT 2010
Hi Junjie,
> In this way, the pragma handling is quite general (for example, it can
> be used to support frequency hint for a branch, etc).
> And it should be easy for any frontend to generate.
since metadata can be attached to instructions, couldn't you just attach
some metadata containing frequency information directly to the branch
instruction?
Ciao,
Duncan.
More information about the llvm-dev
mailing list