- Jul 10, 2023
-
-
Johannes Doerfert authored
AANoCapture is now the first non-boolean AA that is always queried via the new APIs and not created manually. We explicitly do not manifest nocapture for `null` and `undef` anymore.
-
Johannes Doerfert authored
-
Johannes Doerfert authored
As part of this we do not annotate literal `null` and `undef/poison` as `noalias` anymore. This was not really needed anyway.
-
Johannes Doerfert authored
AANonNull is now the first AA that is always queried via the new APIs and not created manually. Others will follow shortly to avoid trivial AAs whenever possible. This commit introduced some helper logic that will make it simpler to port the next one. It also untangles AADereferenceable and AANonNull such that the former does not keep a handle on the latter. Finally, we stop deducing `nonnull` for `undef`, which was incorrect.
-
Guillaume Chatelet authored
Follow up on https://reviews.llvm.org/D154770 Differential Revision: https://reviews.llvm.org/D154800
-
Florian Hahn authored
After D150027, all relevant recipes should model their IR flags directly. Instead of removing the flags after codegen as part of fixReductions, drop poison generating flags directly from the recipes. Depends on D150027. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D150028
-
Gedare Bloom authored
Generate a ..note:: directive when the \note is encountered in Format.h. Differential Revision: https://reviews.llvm.org/D154552
-
Christopher Di Bella authored
`SubprocessMemory.cpp` depends on `errno` and was likely getting it via a transitive include, but this prevents building with modules.
-
- Jul 09, 2023
-
-
eopXD authored
-
eopXD authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D154693
-
Simon Pilgrim authored
Handle (zero_extend (and (srl X, C1), C2)) patterns to allow foldMaskAndShiftToExtract to match h-register extractions from smaller types Ideally matchAddressRecursively needs to be able to recurse through ZEXT/SEXT nodes generally but for now we should just handle specific cases when they occur Addresses regressions in D146121
-
Simon Pilgrim authored
[X86] Add tests showing failure by matchAddressRecursively to peek through ZEXT nodes to match foldMaskAndShiftToExtract Test coverage for a similar regression in D146121
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D154758
-
Timm Bäder authored
And use it in Program as well, to make a similar decision.
-
Timm Bäder authored
Add a bunch of assertions to ensure we're doing the right thing. Also, rename movePointer to replacePointer, since the old name didn't make much sense.
-
Timm Bäder authored
This makes it easier to use asan to find memory problems. clear() will actually free the memory.
-
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
I removed the else here, but forgot to add a return before. Interestingly, none of the existing test cases triggered a problem. A future commit will add a test case.
-
Shao-Ce SUN authored
``` llvm-project/openmp/libomptarget/src/private.h:260:9: warning: 'DEBUG_PREFIX' macro redefined [-Wmacro-redefined] #define DEBUG_PREFIX GETNAME(TARGET_NAME) ^ llvm-project/openmp/libomptarget/include/ompt_device_callbacks.h:22:9: note: previous definition is here #define DEBUG_PREFIX "OMPT" ^ 1 warning generated. ``` ``` llvm-project/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp:458:14: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] return std::move(Err); ^ llvm-project/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp:458:14: note: remove std::move call here return std::move(Err); ^~~~~~~~~~ ~ llvm-project/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp:552:12: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] return std::move(Err); ^ llvm-project/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp:552:12: note: remove std::move call here return std::move(Err); ^~~~~~~~~~ ~ 2 warnings generated. ``` Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D154787 -
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
-
Elliot Goodrich authored
This reverts commit 4c0cfd87. There are still transitive includes missing inside lldb tools.
-
Elliot Goodrich authored
Move the implementation of the `toString` function from `llvm/Support/Error.h` to the source file, which allows us to move `#include "llvm/ADT/StringExtras.h"` to the source file as well. As `Error.h` is present in a large number of translation units this means we are unnecessarily bringing in the contents of `StringExtras.h` - itself a large file with lots of includes - and slowing down compilation. Also move the `#include "llvm/ADT/SmallVector.h"` directive to the source file as it's no longer needed, but this does not give as much of a benefit. This reduces the total number of preprocessing tokens across the LLVM source files in lib from (roughly) 1,920,413,050 to 1,903,629,230 - a reduction of ~0.87%. This should result in a small improvement in compilation time. Differential Revision: https://reviews.llvm.org/D154775
-
Elliot Goodrich authored
In preparation for removing the `#include "llvm/ADT/StringExtras.h"` from the header to source file of `llvm/Support/Error.h`, first add in all the missing includes that were previously included transitively through this header. This is fixing all files missed in b0abd489, 39d8e6e2, and a11efd49. Differential Revision: https://reviews.llvm.org/D154775
-
rikhuijzer authored
Fixes #62639. Differential Revision: https://reviews.llvm.org/D154769
-
David Green authored
This is a recommit of 67121d7b, enabling the CodeGenPrepare OptimizePhiTypes option that can help with the type of phi instructions into ISel.
-
Tomas Matheson authored
Revert "[TableGen] Use heap allocated arrays instead of vectors for TreePatternNode::Types and ResultPerm. NFC" While working on DAGISelMatcherEmitter I've hit several runtime errors caused by accessing TreePatternNode::Types out of bounds. These were difficult to debug because the switch from std::vector to unique_ptr removes bounds checking. I don't think the slight reduction in class size is worth the extra debugging and memory safety problems, so I suggest we revert this. This reverts commit d34125a1. Differential Revision: https://reviews.llvm.org/D154781
-
Tomas Matheson authored
Differential Revision: https://reviews.llvm.org/D154780
-
Tomas Matheson authored
Differential Revision: https://reviews.llvm.org/D154779
-
Guillaume Chatelet authored
There will be subsequent patches to move things around and make the file layout more principled. Differential Revision: https://reviews.llvm.org/D154770
-
Evan Wilde authored
Format.h uses std::optional but doesn't include the optional header resulting in a build failure due to a missing 'optional' type. Reviewed By: compnerd, mib Differential Revision: https://reviews.llvm.org/D154664
-
Jake Egan authored
When using the following constructors: ``` locale(const locale& other, const char* std_name, category cat); locale(const locale& other, const string& std_name, category cat); locale(const locale& other, const locale& one, category cats); ``` The new locale name is always "*". Locale names formed from parts of two named locales (that is, C++ locales having names) are supposed to have names in turn (see C++20 subclause 28.3.1.1 [locale.general] paragraph 8). This patch fixes the name construction for cases when either of locales are unnamed, when the category is locale::none, and when the two locale names are the same. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D119441
-
Fangrui Song authored
Commit 1283e986 added getInternalLinkageFor for ModuleInternalLinkage used by -fmodules-ts. Now that -fmodules-ts is removed, we can simplify the call sites to use LinkageInfo::internal().
-
Haojian Wu authored
-
Fangrui Song authored
-
Elliot Goodrich authored
This reverts commit 2e2743b6. More transitive includes of `llvm/ADT/StringExtras.h` need to be removed.
-
Elliot Goodrich authored
Move the implementation of the `toString` function from `llvm/Support/Error.h` to the source file, which allows us to move `#include "llvm/ADT/StringExtras.h"` to the source file as well. As `Error.h` is present in a large number of translation units this means we are unnecessarily bringing in the contents of `StringExtras.h` - itself a large file with lots of includes - and slowing down compilation. Also move the `#include "llvm/ADT/SmallVector.h"` directive to the source file as it's no longer needed, but this does not give as much of a benefit. This reduces the total number of preprocessing tokens across the LLVM source files in lib from (roughly) 1,920,413,050 to 1,903,629,230 - a reduction of ~0.87%. This should result in a small improvement in compilation time. Differential Revision: https://reviews.llvm.org/D154763
-
Elliot Goodrich authored
In preparation for removing the `#include "llvm/ADT/StringExtras.h"` from the header to source file of `llvm/Support/Error.h`, first add in all the missing includes that were previously included transitively through this header. This is fixing all files missed in b0abd489 and 39d8e6e2. Differential Revision: https://reviews.llvm.org/D154763
-