[PATCH] D158056: [clang] Implement constexpr operator[] for vectors

2023-08-16 Thread Joey Rabil via Phabricator via cfe-commits
DaPorkchop_ updated this revision to Diff 550731. DaPorkchop_ added a comment. Fixed test code for `CodeGenCXX/temporaries.cpp` Creating and extracting a reference to a temporary vector's element is now able to be evaluated at compile time, which made this test case fail (since it was looking for

[PATCH] D158056: [clang] Implement constexpr operator[] for vectors

2023-08-16 Thread Joey Rabil via Phabricator via cfe-commits
DaPorkchop_ created this revision. DaPorkchop_ added reviewers: erichkeane, rsmith, efriedma, void. Herald added a project: All. DaPorkchop_ requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This implements the array subscript operator for ve

[PATCH] D157825: [clang] Implement constexpr bit_cast for vectors

2023-08-13 Thread Joey Rabil via Phabricator via cfe-commits
DaPorkchop_ created this revision. DaPorkchop_ added a project: clang. Herald added a project: All. DaPorkchop_ requested review of this revision. Herald added a subscriber: cfe-commits. This makes __builtin_bit_cast support converting to and from vector types in a constexpr context. Without thi