Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

crtrott (Christian Trott)
User

Projects

User does not belong to any projects.

User Details

User Since
Sep 23 2022, 1:47 PM (52 w, 5 d)

Recent Activity

Thu, Aug 31

crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Address more review comments: fix some assertions when extents are 0

Thu, Aug 31, 4:05 PM · Restricted Project, Restricted Project
crtrott added inline comments to D157171: [libc++] mdspan - implement layout_stride.
Thu, Aug 31, 4:04 PM · Restricted Project, Restricted Project

Aug 28 2023

crtrott added a comment to D158823: [libc++][hardening] Add back the safe mode..

I believe this 3-level thing is in general a good idea, and in principle the words "hardened < safe < debug" fell ok-ish to me in terms of expectations how much gets checked.
However, in light of a 3-level mode I may want to rethink for example the asserts in mdspan, and tailor better what is enabled in hardened, vs safe mode. I think the current choices were good in a binary world, in this more nuanced approach I am not sure.

Aug 28 2023, 9:50 AM · Restricted Project, Restricted Project

Aug 17 2023

crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Simply disable deduction guide warnings, adding them explicitly ended up either with unused template warning in files where they are not needed, or with a warning from GCC if one adds [[maybe_unused]], will try separately to make this warning go away.

Aug 17 2023, 10:40 AM · Restricted Project, Restricted Project
crtrott added inline comments to D157171: [libc++] mdspan - implement layout_stride.
Aug 17 2023, 9:52 AM · Restricted Project, Restricted Project
crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Add missing test on const mapping for required_span_size

Aug 17 2023, 9:06 AM · Restricted Project, Restricted Project
crtrott added inline comments to D157171: [libc++] mdspan - implement layout_stride.
Aug 17 2023, 8:59 AM · Restricted Project, Restricted Project
crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Fix more warning stuff

Aug 17 2023, 8:55 AM · Restricted Project, Restricted Project

Aug 16 2023

crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Fix a formatting thing in tests.

Aug 16 2023, 1:51 PM · Restricted Project, Restricted Project
crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Address review feedback, and implement missing ctors from layout_stride in layout_left/right

Aug 16 2023, 12:43 PM · Restricted Project, Restricted Project

Aug 9 2023

crtrott added a comment to D157171: [libc++] mdspan - implement layout_stride.

This passed testing except the expected AIX failure since the runners are down.

Aug 9 2023, 10:43 AM · Restricted Project, Restricted Project

Aug 8 2023

crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Fix older clang missing a typename in a test

Aug 8 2023, 1:44 PM · Restricted Project, Restricted Project
crtrott added a comment to D157332: [clang] Make init for empty no_unique_address fields a no-op write.

To answer my own question: I was able to reproduce the bug when compiling for NVIDIA GPUs, I was not able to reproduce it for AMD GPUs yet, and I didn't try for Intel GPUs.

Aug 8 2023, 11:42 AM · Restricted Project, Restricted Project
crtrott added a comment to D157332: [clang] Make init for empty no_unique_address fields a no-op write.

Question: does this bug potentially affect code generation for AMD/NVIDIA/Intel GPUs?

Aug 8 2023, 11:23 AM · Restricted Project, Restricted Project
crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Update mdspan std::module file

Aug 8 2023, 11:00 AM · Restricted Project, Restricted Project

Aug 6 2023

crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Fixup module map

Aug 6 2023, 9:46 PM · Restricted Project, Restricted Project
crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

More fixes for things not triggered in my various MacOS builds.

Aug 6 2023, 6:07 PM · Restricted Project, Restricted Project
crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Fix ADL use warning.

Aug 6 2023, 4:01 PM · Restricted Project, Restricted Project
crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

More formatting fixes in the tests.

Aug 6 2023, 1:55 PM · Restricted Project, Restricted Project
crtrott updated the diff for D157171: [libc++] mdspan - implement layout_stride.

Fix up comments for some formatting check.

Aug 6 2023, 10:46 AM · Restricted Project, Restricted Project

Aug 4 2023

crtrott requested review of D157171: [libc++] mdspan - implement layout_stride.
Aug 4 2023, 8:49 PM · Restricted Project, Restricted Project
crtrott committed rG0f4d7d81c9d0: [libc++][mdspan] Fix layout_left::stride(r) (authored by crtrott).
[libc++][mdspan] Fix layout_left::stride(r)
Aug 4 2023, 8:41 AM · Restricted Project, Restricted Project
crtrott closed D157065: [libc++] Fix std::layout_left::stride(r).
Aug 4 2023, 8:41 AM · Restricted Project, Restricted Project

Aug 3 2023

crtrott requested review of D157065: [libc++] Fix std::layout_left::stride(r).
Aug 3 2023, 8:40 PM · Restricted Project, Restricted Project

Jul 25 2023

crtrott added a comment to D156242: [libc++] Removes a broken test..

The mdspan thing that breaks clang-tidy is now fixed,

Jul 25 2023, 11:50 AM · Restricted Project, Restricted Project
crtrott closed D156181: [libc++] Categorize mdspan assertions, and move assertions tests.

This landed in https://github.com/llvm/llvm-project/commit/488c3db245ce0fe3b70357d6798ee91c5baa82a2, but was missing in D in the revision URL.

Jul 25 2023, 11:45 AM · Restricted Project, Restricted Project
crtrott committed rG488c3db245ce: [libc++][mdspan] Fix uglification, categorize asserts and move tests (authored by crtrott).
[libc++][mdspan] Fix uglification, categorize asserts and move tests
Jul 25 2023, 11:40 AM · Restricted Project, Restricted Project
crtrott added a comment to D156181: [libc++] Categorize mdspan assertions, and move assertions tests.

Will ignore the CI failure of the "Module build with local submodule visibility": known common issue with the module cache producing over 1000 errors in the mold of:

bk;t=1690294997920/home/libcxx-builder/.buildkite-agent/builds/google-libcxx-builder-49573bbe06a2-1/llvm-project/libcxx-ci/build/generic-modules-lsv/include/c++/v1/__concepts/regular.h:13:2: fatal error: module file '/home/libcxx-builder/.cache/clang/ModuleCache/1BZ5PZK31RHUI/std_private_concepts_semiregular-1920JD1R2UQK3.pcm' is out of date and needs to be rebuilt
Jul 25 2023, 11:29 AM · Restricted Project, Restricted Project
crtrott updated the diff for D156181: [libc++] Categorize mdspan assertions, and move assertions tests.
Jul 25 2023, 5:41 AM · Restricted Project, Restricted Project
crtrott committed rGfc4876578131: [libc++][mdspan] Implement std::mdspan class (authored by crtrott).
[libc++][mdspan] Implement std::mdspan class
Jul 25 2023, 5:16 AM · Restricted Project, Restricted Project

Jul 24 2023

crtrott updated the diff for D156181: [libc++] Categorize mdspan assertions, and move assertions tests.
Jul 24 2023, 8:36 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Uploaded the wrong patch file last time around, where I guarded the wrong two tests on MinGW :-(

Jul 24 2023, 6:25 PM · Restricted Project, Restricted Project
crtrott updated the diff for D156181: [libc++] Categorize mdspan assertions, and move assertions tests.

Apply review comments: specifically don't check index bounds in layout_left/right since it's double checking when used in mdspan.

Jul 24 2023, 6:11 PM · Restricted Project, Restricted Project
crtrott added a comment to D156181: [libc++] Categorize mdspan assertions, and move assertions tests.

Sounds good!

Jul 24 2023, 5:59 PM · Restricted Project, Restricted Project
crtrott added inline comments to D156181: [libc++] Categorize mdspan assertions, and move assertions tests.
Jul 24 2023, 5:47 PM · Restricted Project, Restricted Project
crtrott requested review of D156181: [libc++] Categorize mdspan assertions, and move assertions tests.
Jul 24 2023, 3:56 PM · Restricted Project, Restricted Project
crtrott added a comment to D154367: [libc++] mdspan - implement mdspan class.

Filed issue here: https://github.com/llvm/llvm-project/issues/64077

Jul 24 2023, 8:45 AM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Work around MinGW issue by disabling test, not removing no-unique-address.

Jul 24 2023, 8:37 AM · Restricted Project, Restricted Project
crtrott added a comment to D154367: [libc++] mdspan - implement mdspan class.

I investigated the failure on MinGW and tracked it down to a reproducer on godbolt, which indicates this is a bug in the compiler when using --target=x86_64-w64-windows-gnu
https://godbolt.org/z/Y6Mb7sMMc

Jul 24 2023, 8:13 AM · Restricted Project, Restricted Project

Jul 23 2023

crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.
Jul 23 2023, 1:09 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Attempt to fix mingw failure.

Jul 23 2023, 10:44 AM · Restricted Project, Restricted Project

Jul 22 2023

crtrott added inline comments to D154367: [libc++] mdspan - implement mdspan class.
Jul 22 2023, 12:03 PM · Restricted Project, Restricted Project
crtrott added inline comments to D154367: [libc++] mdspan - implement mdspan class.
Jul 22 2023, 10:24 AM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Address last comments: make all assertions UNCATEGORIZED

Jul 22 2023, 10:21 AM · Restricted Project, Restricted Project
crtrott added inline comments to D154367: [libc++] mdspan - implement mdspan class.
Jul 22 2023, 10:21 AM · Restricted Project, Restricted Project

Jul 21 2023

crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Trigger all mdspan assertions in hardened mode: all of them are related in one form or another to bounds checking. Either directly, or in order to not screw up the bounds during construction/assignment/conversion etc. which would violate the invariants of mdspan, and thus could lead to bounds checks not triggering when they should.

Jul 21 2023, 10:49 AM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Fix 32bit builds and fix size assertion.

Jul 21 2023, 8:17 AM · Restricted Project, Restricted Project

Jul 20 2023

crtrott added inline comments to D154367: [libc++] mdspan - implement mdspan class.
Jul 20 2023, 8:32 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Fix apple clang build ... TEST_CLANG_VER is not defined on apple clang ...

Jul 20 2023, 8:31 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Fix warning on GCC

Jul 20 2023, 8:06 PM · Restricted Project, Restricted Project
crtrott added inline comments to D154367: [libc++] mdspan - implement mdspan class.
Jul 20 2023, 7:53 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Fix formatting, add more triviality testing

Jul 20 2023, 7:27 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Added release notes, rebased. Addressed Louis comments.

Jul 20 2023, 5:05 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Another CI fix and add missing static assert verification.

Jul 20 2023, 1:13 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Fix another warning from GCC

Jul 20 2023, 7:51 AM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Fix CI

Jul 20 2023, 7:04 AM · Restricted Project, Restricted Project

Jul 19 2023

crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

This addresses Louis review comments. Most notably fixing a lot of constraints regarding const& vs non-const arguments and adding testing for that.

Jul 19 2023, 7:39 PM · Restricted Project, Restricted Project
crtrott added a comment to D154367: [libc++] mdspan - implement mdspan class.

Addressed all the comments, uploading patch now.

Jul 19 2023, 7:37 PM · Restricted Project, Restricted Project

Jul 17 2023

crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Split too long static_assert test, added some more non-constructibility checks

Jul 17 2023, 10:53 AM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Fir formating.

Jul 17 2023, 7:47 AM · Restricted Project, Restricted Project

Jul 16 2023

crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Add a few more tests checking for explicitness of constructors, and size of mdspan.

Jul 16 2023, 11:20 AM · Restricted Project, Restricted Project

Jul 14 2023

crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Rebase on main, and adding swap test.

Jul 14 2023, 3:14 PM · Restricted Project, Restricted Project
crtrott committed rG20c6b9d451ca: [libc++][mdspan] Implement default_accessor (authored by crtrott).
[libc++][mdspan] Implement default_accessor
Jul 14 2023, 10:53 AM · Restricted Project, Restricted Project
crtrott closed D153935: [libc++] mdspan - implement default_accessor.
Jul 14 2023, 10:53 AM · Restricted Project, Restricted Project

Jul 13 2023

crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Address last of Louis' comments and rebase.

Jul 13 2023, 1:52 PM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Add assertion tests

Jul 13 2023, 9:26 AM · Restricted Project, Restricted Project

Jul 5 2023

crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Fix module file and GCC build.

Jul 5 2023, 9:04 AM · Restricted Project, Restricted Project

Jul 4 2023

crtrott added a comment to D154110: [libc++] Implement LWG3843 (std::expected<T,E>::value() & assumes E is copy constructible).

LGTM, but I haven't been here long enough to feel like I can accept this on behalf of libc++ team :-)

Jul 4 2023, 8:20 AM · Restricted Project, Restricted Project

Jul 3 2023

crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Address some review comments, add conversion test.

Jul 3 2023, 4:56 PM · Restricted Project, Restricted Project
crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Fix module map issue which crept in during rebase

Jul 3 2023, 1:16 PM · Restricted Project, Restricted Project
crtrott added a comment to D154367: [libc++] mdspan - implement mdspan class.

This implements about 80% of the necessary tests, but its already a lot of code so we can collect review feedback while we do the rest.

Jul 3 2023, 10:29 AM · Restricted Project, Restricted Project
crtrott updated the diff for D154367: [libc++] mdspan - implement mdspan class.

Rebase on top of main

Jul 3 2023, 10:28 AM · Restricted Project, Restricted Project
crtrott retitled D154367: [libc++] mdspan - implement mdspan class from mdspan: add mdspan class and tests to [libc++] mdspan - implement mdspan class.
Jul 3 2023, 10:27 AM · Restricted Project, Restricted Project
crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Rebase on top of main.

Jul 3 2023, 10:27 AM · Restricted Project, Restricted Project
crtrott added reviewers for D154367: [libc++] mdspan - implement mdspan class: ldionne, Restricted Project.
Jul 3 2023, 10:08 AM · Restricted Project, Restricted Project
crtrott requested review of D154367: [libc++] mdspan - implement mdspan class.
Jul 3 2023, 10:07 AM · Restricted Project, Restricted Project

Jun 29 2023

crtrott committed rGb4ff893877ff: [libc++][mdspan] Implement layout_left (authored by crtrott).
[libc++][mdspan] Implement layout_left
Jun 29 2023, 1:05 PM · Restricted Project, Restricted Project
crtrott closed D153783: [libc++] Adding mdspan layout_left.
Jun 29 2023, 1:04 PM · Restricted Project, Restricted Project
crtrott updated the diff for D153783: [libc++] Adding mdspan layout_left.

Apply post-review changes from layout_right to layout_left

Jun 29 2023, 10:49 AM · Restricted Project, Restricted Project
crtrott set the repository for D153935: [libc++] mdspan - implement default_accessor to rG LLVM Github Monorepo.
Jun 29 2023, 9:47 AM · Restricted Project, Restricted Project

Jun 28 2023

crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Address review comments

Jun 28 2023, 4:41 PM · Restricted Project, Restricted Project
crtrott added inline comments to D153783: [libc++] Adding mdspan layout_left.
Jun 28 2023, 3:03 PM · Restricted Project, Restricted Project
crtrott updated the diff for D153783: [libc++] Adding mdspan layout_left.

Remove unused include in test

Jun 28 2023, 3:02 PM · Restricted Project, Restricted Project
crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Missing include for modules build in test.

Jun 28 2023, 11:42 AM · Restricted Project, Restricted Project
crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Fix another missing include

Jun 28 2023, 11:11 AM · Restricted Project, Restricted Project
crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Fix module include complaint

Jun 28 2023, 10:39 AM · Restricted Project, Restricted Project
crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Fix more formatting stuff.

Jun 28 2023, 10:19 AM · Restricted Project, Restricted Project
crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Fix whitespace in comment in test

Jun 28 2023, 7:54 AM · Restricted Project, Restricted Project

Jun 27 2023

crtrott updated the diff for D153935: [libc++] mdspan - implement default_accessor.

Fix include order.

Jun 27 2023, 11:48 PM · Restricted Project, Restricted Project
crtrott requested review of D153935: [libc++] mdspan - implement default_accessor.
Jun 27 2023, 8:15 PM · Restricted Project, Restricted Project
crtrott updated the diff for D153783: [libc++] Adding mdspan layout_left.

Fix missing include for module build

Jun 27 2023, 8:04 PM · Restricted Project, Restricted Project
crtrott retitled D153783: [libc++] Adding mdspan layout_left from Adding mdspan layout_left to [libc++] Adding mdspan layout_left.
Jun 27 2023, 8:03 PM · Restricted Project, Restricted Project
crtrott updated the diff for D153783: [libc++] Adding mdspan layout_left.

Fix some copy paste name issues in required_span_size test
Fix whitespace in comments in tests

Jun 27 2023, 11:06 AM · Restricted Project, Restricted Project
crtrott updated the diff for D151267: [libc++] mdspan: implement layout_right.

Fix wrong comment and test name for required_span_size

Jun 27 2023, 10:55 AM · Restricted Project, Restricted Project
crtrott updated the diff for D153783: [libc++] Adding mdspan layout_left.

Fix test which exceeds default consteval step limit, and fix formatting of fwd file.

Jun 27 2023, 9:47 AM · Restricted Project, Restricted Project
crtrott updated the diff for D151267: [libc++] mdspan: implement layout_right.

With assertion enabled one of the tests we expanded in the last commit hit the default maximum step limit in consteval. I split the test now and run the large iteration case only in runtime mode, not in consteval.

Jun 27 2023, 7:50 AM · Restricted Project, Restricted Project

Jun 26 2023

crtrott updated the diff for D153783: [libc++] Adding mdspan layout_left.

Address review comments.

Jun 26 2023, 3:03 PM · Restricted Project, Restricted Project
crtrott updated the diff for D153783: [libc++] Adding mdspan layout_left.

Rebased on top of layout_right revision

Jun 26 2023, 2:54 PM · Restricted Project, Restricted Project
crtrott added inline comments to D151267: [libc++] mdspan: implement layout_right.
Jun 26 2023, 2:12 PM · Restricted Project, Restricted Project
crtrott updated the diff for D151267: [libc++] mdspan: implement layout_right.

Address last comments

Jun 26 2023, 2:09 PM · Restricted Project, Restricted Project