[llvm-bugs] [Bug 25671] New: [Feature] Use compiler builtin to implement tuple_element
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Nov 29 15:11:12 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25671
Bug ID: 25671
Summary: [Feature] Use compiler builtin to implement
tuple_element
Product: libc++
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: ldionne.2 at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Classification: Unclassified
Created attachment 15364
--> https://llvm.org/bugs/attachment.cgi?id=15364&action=edit
Initial version of the proposed patch.
This patch uses the proposed compiler builtin `__nth_element` [1] to implement
`std::tuple_element` whenever possible. This results in interesting
compile-time speedups over the current implementation of `std::tuple_element`,
as explained in this blog post [2].
If there is interest for this patch both from Clang's side and libc++'s side, I
will update this patch after the review is done on Clang's side and merged into
Clang.
Louis
[1]: https://llvm.org/bugs/show_bug.cgi?id=25670
[2]: http://ldionne.com/2015/11/29/efficient-parameter-pack-indexing
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151129/91e8de96/attachment-0001.html>
More information about the llvm-bugs
mailing list