- Jan 18, 2022
-
-
Carl Ritson authored
Switch wqm.ll to be autogenerated. Replace gfx6 and gfx8 targets with gfx9 (wave64) and gfx10 (wave32). Reviewed By: kmitropoulou Differential Revision: https://reviews.llvm.org/D117455
-
Mehdi Amini authored
In c8e047f5 the default for useDefault{Type/Attribute}PrinterParser was changed in ODS, restore the old value explicitly for the FirDialect.
-
jacquesguan authored
Add patterns for vector widening floating-point multiply Differential Revision: https://reviews.llvm.org/D117530
-
Mehdi Amini authored
Also make the ODS Operator class have const iterator, and use const references for existing API taking Operator by reference. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117516
-
Mehdi Amini authored
This saves some copies of non-trivial objects, flagged by Coverity. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117525
-
John Ericson authored
I am breaking apart D99484 so the cause of build failures is easier to understand. Differential Revision: https://reviews.llvm.org/D117417
-
Mehdi Amini authored
The majority of dialects reimplement the same boilerplate over and over, switching the default makes it for better discoverability and make it simpler to implement new dialects. Differential Revision: https://reviews.llvm.org/D117524
-
Lang Hames authored
This is a counterpart to Platform::setupJITDylib, and is called when JITDylib instances are removed (via ExecutionSession::removeJITDylib). Upcoming MachOPlatform patches will use this to clear per-JITDylib data when JITDylibs are removed.
-
Han-Kuan Chen authored
Currently, users expected VL is the last operand. However, since some intrinsics has tail policy in the last operand, this rule cannot be used anymore. Reviewed By: craig.topper, frasercrmck Differential Revision: https://reviews.llvm.org/D117452
-
Han-Kuan Chen authored
Current SplatOperand starts from 1 because operand 0 (or 1) is intrinsic id in SelectionDAG. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117453
-
jacquesguan authored
Add patterns for Vector Widening Floating-Point Add/Subtract Instructions Differential Revision: https://reviews.llvm.org/D117466
-
Alexander Shaposhnikov authored
-
Lang Hames authored
-
Shao-Ce SUN authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117448
-
Sanjay Patel authored
A possible codegen regression for PowerPC is noted in D117406 because we don't recognize a pattern that demands only 1 byte from a bswap. This fold has existed in IR since close to the beginning of LLVM: https://github.com/llvm/llvm-project/blame/main/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp#L794 ...so this patch copies that code as much as possible and adapts it for SDAG. The test for PowerPC that would change in D117406 is over-reduced with undefs, so I recreated it for AArch64 and x86 by passing in pointer args and renamed the values to make the logic clearer. Differential Revision: https://reviews.llvm.org/D117508
-
Mehdi Amini authored
These aren't small object, fix Coverity report.
-
Philip Reames authored
We can generalize the malloc-to-global transform for other allocation functions which are both a) removable, and b) have a known initialization value. One subtlety that I want to point out - mostly because I hadn't realized it was true until I took a closer look - is that the existing code doesn't prove that initialization/malloc happens only once. The initialization function can be called multiple times. This is correct without special handling for malloc as undef can map to any value previously written, but a non-undef initializing allocation it means we may end up memseting the new global repeatedly. In particular, this means it's not legal to fold the memset into the initializer of the global. Differential Revision: https://reviews.llvm.org/D117503
-
Philip Reames authored
-
Craig Topper authored
For fixed vectors, the undef will get expanded to an all zeros build_vector. We don't want that so suppress creating the insert_subvector. Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D117379
-
Craig Topper authored
We were considering this legal, but later the undef would become an all zeros vector. This would cause us to need to re-legalize the insert later into a vslideup with zero vector. This patch catches the case and directly legalizes it to a scalable insert. Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D117377
-
Joseph Huber authored
This patch adds the `cold` attribute to the keepAlive functions in the RTL. This dummy function exists to keep certain RTL calls alive without them being optimized out, but it is never called and can be declared cold. This also helps some erroneous remarks being given on this function because it has weak linkage and cannot be made internal. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D117513
-
Fangrui Song authored
-
Arthur O'Dwyer authored
This essentially reverts e02ed1c2 and puts in a new fix, which makes `path::iterator` a true C++20 `bidirectional_iterator`, but downgrades it to an `input_iterator` in C++17. Fixes #37852. Differential Revision: https://reviews.llvm.org/D116489
-
Arthur O'Dwyer authored
After 9fe67486, this test fails on MinGW for some reason. https://buildkite.com/llvm-project/libcxx-ci/builds/7922#9e267294-441d-4b79-8a19-30fdb5599c1f All it says in the build output is note: command had no output on stdout or stderr error: command failed with exit status: 4294967295
-
LLVM GN Syncbot authored
-
Michał Górny authored
Provide minimal register definition defaults for working with servers that implement neither target.xml nor qRegisterInfo packets. This is useful e.g. when interacting with FreeBSD's kernel minimal gdbserver that does not send target.xml but uses the same layout for its supported register subset as GDB. The prerequisite for this is the ability to determine the correct architecture, e.g. from the target executable. Differential Revision: https://reviews.llvm.org/D116896
-
Sean Fertile authored
FAST-ISEL should fall back to DAG-ISEL when a global variable has the toc-data attribute. A number of the checks were duplicated in the lit test becuase of 1) Slightly different output between -O0 and -O2 due to FAST-ISEL vs DAG-ISEL codegen. 2) In preperation of a peephole optimization that will run when optimizations are enabled. Differential Revision: https://reviews.llvm.org/D115373
-
Benjamin Kramer authored
Fixes a crash with debug malloc.
-
Sanjay Patel authored
-
Philip Reames authored
Caught by a couple of builders as an unused variable warning (e.g. https://lab.llvm.org/buildbot#builders/57/builds/13973).
-
Fabian Wolff authored
[clang-tidy] Fix false positives involving type aliases in `misc-unconventional-assign-operator` check clang-tidy currently reports false positives even for simple cases such as: ``` struct S { using X = S; X &operator=(const X&) { return *this; } }; ``` This is due to the fact that the `misc-unconventional-assign-operator` check fails to look at the //canonical// types. This patch fixes this behavior. Reviewed By: aaron.ballman, mizvekov Differential Revision: https://reviews.llvm.org/D114197 -
Nikolas Klauser authored
Install clang-tidy Reviewed By: ldionne, #libc Spies: sammccall, mgorny, libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D117268
-
John Ericson authored
I am breaking apart D99484 so the cause of build failures is easier to understand. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D117418
-
Fangrui Song authored
-
Fabian Wolff authored
Fixes [[ https://bugs.llvm.org/show_bug.cgi?id=48086 | PR#48086 ]]. The problem is that the current matcher uses `hasParent()` to detect friend declarations, but for a template friend declaration, the immediate parent of the `FunctionDecl` is a `FunctionTemplateDecl`, not the `FriendDecl`. Therefore, I have replaced the matcher with `hasAncestor()`. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D114299
-
Philip Reames authored
This reverts 3af8a11b because I'd used an upper bound where an lower bound was required. The included reduced test case demonstrates the issue.
-
Nicolas Vasilache authored
This reverts commit c8f57353. The integration tests are broken.
-
Nikolas Klauser authored
Introduce `__debug_db_insert_i()` Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D117410
-
Arthur O'Dwyer authored
Reviewed as part of D114920.
-
Arthur O'Dwyer authored
-