[PATCH] Self-referencing metadata

Duncan Sands duncan.sands at gmail.com
Sun May 12 05:20:04 PDT 2013


Hi Joshua,

On 08/05/13 21:38, Joshua Klontz wrote:
> As an LLVM beginner it took me a long time to figure out the correct API calls
> to implement the self-referencing metadata required by llvm.loop. Perhaps this
> patch can save others in a similar situation some trouble in the future.
>
> This patch is also a sanity check of my own understanding. Therefore, if it is
> totally off-base then I apologize for the noise :)

this is basically identical to createAnonymousTBAARoot in MDBuilder.h, though a
little less efficient.  How about moving the createAnonymousTBAARoot code to
getSelfReferencing, fix up users, and remove createAnonymousTBAARoot.  Also, I
think the name getAnonymous would be better than getSelfReferencing.

Ciao, Duncan.



More information about the llvm-commits mailing list