[patch] Clarify and verify what llvm.used is

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Apr 16 16:18:54 PDT 2013


When reviewing my previous patch to GlobalOpt Duncan raised some
questions about the semantics of llvm.used. We should probably clarify
the documentation and have the verifier check it before anything else.

The attached patch makes it explicit that aliases can be put in
llvm.used and changes the verifier to check llvm.used only has
functions, variables and aliases.

Duncan, are you OK with this definition? Is the patch OK?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 5583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130416/e71fc8dc/attachment.obj>


More information about the cfe-commits mailing list