[cfe-dev] [PATCH] Round 3: add unconditional support for block signatures

Blaine Garst blaine at apple.com
Mon Feb 22 17:30:59 PST 2010


Thanks to Fariborz suggestion that I write a unit test I discovered that clang was not emitting the type signature information for global blocks.

While there I renamed his "types" field internally to "signature" to reflect its more natural name which I will be using in the runtime.

More significantly, I realized that we can recover the unused-by-the-runtime (1<<29) bit now that unconditionally mark (1<<30).  This will enable the compiler to (re)use that bit sometime in the future.

Test "blocksignature.c" attached.



Blaine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100222/4bd74cad/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-4.patch
Type: application/octet-stream
Size: 11424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100222/4bd74cad/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100222/4bd74cad/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocksignature.c
Type: application/octet-stream
Size: 2615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100222/4bd74cad/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100222/4bd74cad/attachment-0002.html>


More information about the cfe-dev mailing list