- Apr 15, 2023
-
-
Joseph Huber authored
Summary: This patch adds `fetch_or`. It is mainly useful for querying and set a bit's status without using the more expensive `exchange` functions.
-
Carlos Galvez authored
Also fix ordering in Release Notes. Differential Revision: https://reviews.llvm.org/D148424
-
Mark de Wever authored
The class is never defined. This was discovered while validating modules in libc++. Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D148357
-
Mark de Wever authored
This reverts commit 92523a35. Reland to see whether CIs are updated.
-
Mark de Wever authored
Per our policy we only support the last two releases. Reviewed By: #libc, EricWF, philnik Differential Revision: https://reviews.llvm.org/D148359
-
Piotr Zegar authored
Using 'hasUnqualifiedDesugaredType' to skip all type aliases when checking for handle. Fixes #38779 Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D148418
-
LLVM GN Syncbot authored
-
Piotr Zegar authored
Added IgnoreTemplateInstantiations option to modernize-use-override check. Allows to ignore virtual function overrides that are part of template instantiations. This can be useful in cases where the use of the "override" keyword is not appropriate or causes issues with template specialization. Fixes #38276. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D147924
-
Vlad Serebrennikov authored
[[https://wg21.link/p1787 | P1787]]: CWG2331 is resolved by defining lookup from complete-class contexts and out-of-line member definitions. Wording: The declaration set is the result of a single search in the scope of C for N from immediately after the class-specifier of C if P is in a complete-class context of C or from P otherwise. ([class.member.lookup]/4) Reviewed By: #clang-language-wg, shafik Differential Revision: https://reviews.llvm.org/D148260
-
Carlos Galvez authored
[clang-tidy] Apply cppcoreguidelines-avoid-capture-default-when-capturin-this only to by-value capture default Since Cpp Core Guidelines have accepted the change in the rules: https://github.com/isocpp/CppCoreGuidelines/commit/3c90d590e138c3a1e4eb59234e410e00545326de Also rename the check accordingly. Differential Revision: https://reviews.llvm.org/D148340
-
Louis Dionne authored
Both had diverged in a few ways, so this brings them both back in sync. Differential Revision: https://reviews.llvm.org/D148351
-
Ben Shi authored
The optimization of (mul x, c) to (ADD (SLLI x, i0), (SLLI x, i1)) is only enabled for i32 multiplication on rv64, because of the regression in i64 multiplication on rv32. However we can change the condition to that the immediate 'c' should only be used once, then the above regression can also be avoided, and ohter chances of optimization can be enabled. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D147410
-
Piotr Zegar authored
Support all floating point representations for an 0.5 floating const. Added missing tests. Depend on D147906. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D147908
-
Piotr Zegar authored
Using APFloat to compare floating numbers instead of float/double. Fixes: #46424 Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D147906
-
Akshay Khadse authored
Reviewed By: LuoYuanke Differential Revision: https://reviews.llvm.org/D148312
-
chenglin.bi authored
-
Vitaly Buka authored
I am going to change return type of GetCurrentThreadId() in the next patch. Differential Revision: https://reviews.llvm.org/D148394
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Sergei Barannikov authored
`G_FNEG` used to be legalized to `G_FSUB -0, x` causing infinite loop. This is no longer the case after D84287. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D148187
-
Akshay Khadse authored
In `lib/CodeGen/PrologEpilogInserter.cpp` file, `RS` is assigned via `RS = TRI->requiresRegisterScavenging(MF) ? new RegScavenger() : nullptr;`. This means that `RS` can be `nullptr`. While executing the `TFI->processFunctionBeforeFrameFinalized(MF, RS);`, the `RS` can be dereferenced in the call `RS->enterBasicBlock(MBB);` in file `lib/Target/AMDGPU/SIFrameLowering.cpp` Reviewed By: skan, arsenm Differential Revision: https://reviews.llvm.org/D146791
-
Craig Topper authored
Now that we use IntrusiveRefCntPtr instead of std::shared_ptr we don't need to pass a TreePatternNodePtr to this method.
-
Craig Topper authored
-
Florian Mayer authored
-
Fangrui Song authored
This reverts commit 3e559509 and e0c4ffa7. This still breaks Windows builds. In addition, `#include <llvm/ADT/StringViewExtras.h>` in llvm/include/llvm/Demangle/ItaniumDemangle.h is a library layering violation (LLVMDemangle is the lowest LLVM library and cannot depend on LLVMSupport).
-
Prem Chintalapudi authored
PrintIRInstrumentation::shouldPrintAfterPass accepts a pass ID instead of a pass name Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D147394
-
Arthur Eubanks authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D148358
-
Paul Kirth authored
After enabling ArgPromotion at lower opt levels, the body of this test was optimized away, and the CHECK lines no longer functioned. Setting -O0 is a hammer, but gets the test passing again, until code owners can find a better solution. Reviewed By: fmayer Differential Revision: https://reviews.llvm.org/D148396
-
Vitaly Buka authored
Future patch will set the current context as well. Existing callsite requires additional lock to find context. Differential Revision: https://reviews.llvm.org/D148390
-
Nick Desaulniers authored
Fixes diagnostics reported against https://reviews.llvm.org/D148384 https://lab.llvm.org/buildbot/#/builders/127/builds/46749/steps/4/logs/stdio Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D148392
-
Noah Goldstein authored
Alive2 Link: https://alive2.llvm.org/ce/z/mxZLJn Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D147898
-
Noah Goldstein authored
Previously only return `shl` non-zero if the shift value was `1`. We can expand this if we have some bounds on the shift count. For example: ``` %cnt = and %c, 16 ; Max cnt == 16 %val = or %v, 4 ; val[2] is known one %shl = shl %val, %cnt ; (val.known.one << cnt.maxval) != 0 ``` Differential Revision: https://reviews.llvm.org/D147897 -
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D147896
-
Daniel Hoekwater authored
PATCHABLE_* instructions expand to up to 36-byte sleds. Updating the size of PATCHABLE instructions causes them to be outlined, so we need to add a check to prevent the outliner from considering basic blocks that contain PATCHABLE instructions. Differential Revision: https://reviews.llvm.org/D147982
-
V Donaldson authored
The explicit `ignoring all compiler directives` reminder warning is no longer accurate. Any similar, more accurate message is best generated by the front end (change pending).
-
Fangrui Song authored
Catch accidentally used flags and match MCSectionELF.cpp `MCSectionELF::printSwitchToSection`. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D148386
-
Nick Desaulniers authored
This refactoring was waiting on converting LLVM to C++17. Leave StringView.h and cleanup around for subsequent cleanup. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D148384
-
Michael Jones authored
added getchar and getchar_unlocked which are just wrappers getc and getc_unlocked respectively. Reviewed By: sivachandra, lntue, michaelrj Differential Revision: https://reviews.llvm.org/D147919
-
Nick Desaulniers authored
Towards converting our use of llvm::StringView to std::string_view, remove a method that std::string_view doesn't have. This could be moved to the nascent llvm/ADT/StringViewExtras.h, but the use is highly localized to one TU. Move this to be a static function there. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D148375
-
Leonard Chan authored
This reverts commit 39ece758. Reverting because I suspect this is leading to the failures we see in fxbug.dev/125426. We're seeing unexpected OOMs and I suspect it's because this change makes c-style allocation functions use hwasan's allocator which might be worse than the default one (scudo). Reverting for now to see if this unblocks the clang roll.
-