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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to