[llvm-commits] change objectsize signature

Nuno Lopes nunoplopes at sapo.pt
Mon May 7 17:24:40 PDT 2012


Hi,

Please find in attach a patch to change the objectsize intrinsic's signature.
My proposal is to add a third parameter to control whether objectsize  
is allowed to perform checks at run-time or not.
This parameter is an integer, and a higher value indicates that you're  
willing to accept a potentially higher run-time performance penalty,  
while 0 means no work at run-time (the current behavior).

The idea is to use this intrinsic, for example, for array bound checking.

Nothing is changed yet in objectsize: this patch only changes the  
signature of the intrinsic and implements an auto-upgrade.

Comments, ideas, etc..?

Thanks,
Nuno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-objectsize.diff
Type: text/x-patch
Size: 19131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120508/d4de36d4/attachment.bin>


More information about the llvm-commits mailing list